@@ -725,22 +725,22 @@ def mutual_info_score(labels_true, labels_pred, *, contingency=None):
725
725
a permutation of the class or cluster label values won't change the
726
726
score value in any way.
727
727
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
732
732
real ground truth is not known.
733
733
734
734
Read more in the :ref:`User Guide <mutual_info_score>`.
735
735
736
736
Parameters
737
737
----------
738
738
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
740
740
the above formula.
741
741
742
742
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
744
744
the above formula.
745
745
746
746
contingency : {ndarray, sparse matrix} of shape \
@@ -814,9 +814,9 @@ def adjusted_mutual_info_score(labels_true, labels_pred, *,
814
814
a permutation of the class or cluster label values won't change the
815
815
score value in any way.
816
816
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
820
820
strategies on the same dataset when the real ground truth is not known.
821
821
822
822
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, *,
827
827
Parameters
828
828
----------
829
829
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
831
831
the above formula.
832
832
833
833
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
835
835
the above formula.
836
836
837
837
average_method : str, default='arithmetic'
0 commit comments