-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TST enable tests K-means for MacOS #21052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
in test_predict # With n_init > 1
# Due to randomness in the order in which chunks of data are processed when
# using more than one thread, there might be different rounding errors for
# the computation of the inertia between 2 runs. This might result in a
# different ranking of 2 inits, hence a different labeling, even if they
# give the same clustering. We only check the labels up to a permutation. This should have been fixed by #20200. Would you mind trying to replace |
@@ -804,8 +750,8 @@ def test_k_means_function(): | |||
assert cluster_centers.shape == (n_clusters, n_features) | |||
assert np.unique(labels).shape[0] == n_clusters | |||
|
|||
# check that the labels assignment are perfect (up to a permutation) | |||
assert_allclose(v_measure_score(true_labels, labels), 1.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this one we don't expect the labels to match perfectly since the true labels are manually defined. We can only try to remove the v_measure_score when comparing 2 kmeans run that should be identical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if green.
Edit: if green on a new [cd build] commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @glemaitre !
It is green then I will merge. |
Check if the tests are still failing in MacOS