We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebcbd56 commit fa315a9Copy full SHA for fa315a9
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
75
for i in range(n_samples):
76
for j in range(n_features):
77
centers[labels[i], j] += X[i, j]
78
- num_in_cluster[labels[i]] += 1
+ num_in_cluster[labels[i]] = num_in_cluster[labels[i]] + 1
79
80
for i in range(n_classes):
81
0 commit comments