8000 COSMIT · scikit-learn/scikit-learn@84f1758 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84f1758

Browse files
committed
COSMIT
1 parent 31baa1e commit 84f1758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/metrics/cluster/supervised.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def adjusted_rand_score(labels_true, labels_pred):
212212

213213
prod_comb = (sum_comb_c * sum_comb_k) / float(comb(n_samples, 2))
214214
mean_comb = (sum_comb_k + sum_comb_c) / 2.
215-
return float((sum_comb - prod_comb) / (mean_comb - prod_comb))
215+
return (sum_comb - prod_comb) / (mean_comb - prod_comb)
216216

217217

218218
def homogeneity_completeness_v_measure(labels_true, labels_pred):

0 commit comments

Comments
 (0)
0