Skip to content

Commit

Permalink
Change expected modularity in python and c test
Browse files Browse the repository at this point in the history
  • Loading branch information
Naim committed Nov 16, 2023
1 parent 5b6b59e commit ad9d018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cpp/tests/c_api/louvain_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ int test_louvain_no_weight()
vertex_t h_src[] = {0, 1, 1, 2, 2, 2, 3, 4, 1, 3, 4, 0, 1, 3, 5, 5};
vertex_t h_dst[] = {1, 3, 4, 0, 1, 3, 5, 5, 0, 1, 1, 2, 2, 2, 3, 4};
vertex_t h_result[] = {1, 1, 1, 2, 0, 0};
weight_t expected_modularity = 0.0859375;
weight_t expected_modularity = 0.125;

// Louvain wants store_transposed = FALSE
return generic_louvain_test(h_src,
Expand Down
4 changes: 2 additions & 2 deletions python/cugraph/cugraph/tests/community/test_leiden.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"input_type": "COO",
"expected_output": {
"partition": [1, 0, 1, 2, 2, 2],
"modularity_score": 0.1757322,
"modularity_score": 0.215969,
},
},
"data_2": {
Expand Down Expand Up @@ -88,7 +88,7 @@
"partition": [6, 6, 3, 3, 1, 5, 5, 3, 0, 3, 1, 6, 3, 3, 4, 4, 5, 6, 4, 6, 4,
6, 4, 4, 2, 2, 4, 4, 2, 4, 0, 2, 4, 4],
# fmt: on
"modularity_score": 0.3468113,
"modularity_score": 0.41880345,
},
},
}
Expand Down

0 comments on commit ad9d018

Please sign in to comment.