Skip to content

DOC Added references to the Matthews correlation coefficient function in the user guide #19958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 6, 2024
8 changes: 8 additions & 0 deletions doc/modules/model_evaluation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ When there are more than two labels, the value of the MCC will no longer range
between -1 and +1. Instead the minimum value will be somewhere between -1 and 0
depending on the number and distribution of ground true labels. The maximum
value is always +1.
For additional information, see [WikipediaMCC2021]_.

Here is a small example illustrating the usage of the :func:`matthews_corrcoef`
function:
Expand All @@ -1277,6 +1278,13 @@ function:
>>> matthews_corrcoef(y_true, y_pred)
-0.33...

.. topic:: References:

.. [WikipediaMCC2021] Wikipedia contributors. Phi coefficient.
Wikipedia, The Free Encyclopedia. April 21, 2021, 12:21 CEST.
Available at: https://en.wikipedia.org/wiki/Phi_coefficient
Accessed April 21, 2021.

.. _multilabel_confusion_matrix:

Multi-label confusion matrix
Expand Down
Loading