From fa315a9d98ac012a3440b9c5e9e7b629083ce513 Mon Sep 17 00:00:00 2001 From: Timothee Mathieu Date: Tue, 5 Nov 2024 12:07:56 +0100 Subject: [PATCH] try fix windows --- sklearn_extra/robust/_robust_weighted_estimator_helper.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn_extra/robust/_robust_weighted_estimator_helper.pyx b/sklearn_extra/robust/_robust_weighted_estimator_helper.pyx index 78522d6..abd427b 100644 --- a/sklearn_extra/robust/_robust_weighted_estimator_helper.pyx +++ b/sklearn_extra/robust/_robust_weighted_estimator_helper.pyx @@ -75,7 +75,7 @@ cpdef np.ndarray[floating] _kmeans_loss(np.ndarray[floating, ndim=2, mode='c'] X for i in range(n_samples): for j in range(n_features): centers[labels[i], j] += X[i, j] - num_in_cluster[labels[i]] += 1 + num_in_cluster[labels[i]] = num_in_cluster[labels[i]] + 1 for i in range(n_classes): for j in range(n_features):