From e866f3f8b07b086e70714d2ffe236467b54bf60e Mon Sep 17 00:00:00 2001 From: adamgayoso Date: Thu, 28 Dec 2023 16:29:21 +0000 Subject: [PATCH] kmeans test tolerance due to flakiness --- tests/test_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_metrics.py b/tests/test_metrics.py index 67ad6d2..52a1f35 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -146,7 +146,7 @@ def test_kmeans(): sk_means_labels = pairwise_distances_argmin(X, sk_means_cluster_centers) accuracy = (k_means_labels == sk_means_labels).sum() / len(k_means_labels) - assert accuracy > 0.999 + assert accuracy > 0.997 def test_kbet():