8000 Remove trailing whitespace · scikit-learn/scikit-learn@26e2064 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26e2064

Browse files
committed
Remove trailing whitespace
1 parent bdc8ba9 commit 26e2064

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sklearn/metrics/cluster/_supervised.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -725,22 +725,22 @@ def mutual_info_score(labels_true, labels_pred, *, contingency=None):
725725
a permutation of the class or cluster label values won't change the
726726
score value in any way.
727727
728-
This metric is furthermore symmetric: switching :math:`U` (i.e
729-
``label_true``) with :math:`V` (i.e. ``label_pred``) will return the
730-
same score value. This can be useful to measure the agreement of two
731-
independent label assignments strategies on the same dataset when the
728+
This metric is furthermore symmetric: switching :math:`U` (i.e
729+
``label_true``) with :math:`V` (i.e. ``label_pred``) will return the
730+
same score value. This can be useful to measure the agreement of two
731+
independent label assignments strategies on the same dataset when the
732732
real ground truth is not known.
733733
734734
Read more in the :ref:`User Guide <mutual_info_score>`.
735735
736736
Parameters
737737
----------
738738
labels_true : int array, shape = [n_samples]
739-
A clustering of the data into disjoint subsets, called :math:`U` in
739+
A clustering of the data into disjoint subsets, called :math:`U` in
740740
the above formula.
741741
742742
labels_pred : int array-like of shape (n_samples,)
743-
A clustering of the data into disjoint subsets, called :math:`V` in
743+
A clustering of the data into disjoint subsets, called :math:`V` in
744744
the above formula.
745745
746746
contingency : {ndarray, sparse matrix} of shape \
@@ -814,9 +814,9 @@ def adjusted_mutual_info_score(labels_true, labels_pred, *,
814814
a permutation of the class or cluster label values won't change the
815815
score value in any way.
816816
817-
This metric is furthermore symmetric: switching :math:`U` (``label_true``)
818-
with :math:`V` (``labels_pred``) will return the same score value. This can
819-
be useful to measure the agreement of two independent label assignments
817+
This metric is furthermore symmetric: switching :math:`U` (``label_true``)
818+
with :math:`V` (``labels_pred``) will return the same score value. This can
819+
be useful to measure the agreement of two independent label assignments
820820
strategies on the same dataset when the real ground truth is not known.
821821
822822
Be mindful that this function is an order of magnitude slower than other
@@ -827,11 +827,11 @@ def adjusted_mutual_info_score(labels_true, labels_pred, *,
827827
Parameters
828828
----------
829829
labels_true : int array, shape = [n_samples]
830-
A clustering of the data into disjoint subsets, called :math:`U` in
830+
A clustering of the data into disjoint subsets, called :math:`U` in
831831
the above formula.
832832
833833
labels_pred : int array-like of shape (n_samples,)
834-
A clustering of the data into disjoint subsets, called :math:`V` in
834+
A clustering of the data into disjoint subsets, called :math:`V` in
835835
the above formula.
836836
837837
average_method : str, default='arithmetic'

0 commit comments

Comments
 (0)
0