Skip to content

Commit

Permalink
Fix doc validation error for
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Maladiere committed Aug 3, 2022
1 parent 934c918 commit 61965d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
24 changes: 12 additions & 12 deletions sklearn/metrics/cluster/_supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,18 @@ def rand_score(labels_true, labels_pred):
See Also
--------
adjusted_rand_score: Adjusted Rand Score
adjusted_mutual_info_score: Adjusted Mutual Information
adjusted_rand_score: Adjusted Rand Score.
adjusted_mutual_info_score: Adjusted Mutual Information.
References
----------
.. L. Hubert and P. Arabie, Comparing Partitions, Journal of
Classification 1985
https://link.springer.com/article/10.1007%2FBF01908075
.. https://en.wikipedia.org/wiki/Simple_matching_coefficient
.. https://en.wikipedia.org/wiki/Rand_index
Examples
--------
Expand All @@ -282,16 +292,6 @@ def rand_score(labels_true, labels_pred):
>>> rand_score([0, 0, 1, 2], [0, 0, 1, 1])
0.83...
References
----------
.. L. Hubert and P. Arabie, Comparing Partitions, Journal of
Classification 1985
https://link.springer.com/article/10.1007%2FBF01908075
.. https://en.wikipedia.org/wiki/Simple_matching_coefficient
.. https://en.wikipedia.org/wiki/Rand_index
"""
contingency = pair_confusion_matrix(labels_true, labels_pred)
numerator = contingency.diagonal().sum()
Expand Down
1 change: 0 additions & 1 deletion sklearn/tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"sklearn.metrics.cluster._supervised.mutual_info_score",
"sklearn.metrics.cluster._supervised.normalized_mutual_info_score",
"sklearn.metrics.cluster._supervised.pair_confusion_matrix",
"sklearn.metrics.cluster._supervised.rand_score",
"sklearn.metrics.cluster._supervised.v_measure_score",
"sklearn.metrics.pairwise.pairwise_distances_chunked",
"sklearn.preprocessing._data.maxabs_scale",
Expand Down

0 comments on commit 61965d7

Please sign in to comment.