8000 DOC Clarified variation in confusion_matrix axes (#11334) · wdevazelhes/scikit-learn@8083ea4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8083ea4

Browse files
maxcopelandjnothman
authored andcommitted
DOC Clarified variation in confusion_matrix axes (scikit-learn#11334)
fixes scikit-learn#11326
1 parent a7e1711 commit 8083ea4

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ sudo: false
33

44
language: python
55

6-
cache:
7-
apt: true
8-
directories:
9-
- $HOME/.cache/pip
10-
- $HOME/.ccache
6+
# cache:
7+
# apt: true
8+
# directories:
9+
# - $HOME/.cache/pip
10+
# - $HOME/.ccache
1111

1212
dist: trusty
1313

doc/modules/model_evaluation.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,11 @@ Confusion matrix
523523
----------------
524524

525525
The :func:`confusion_matrix` function evaluates
526-
classification accuracy by computing the `confusion matrix
526+
classification accuracy by computing the confusion matrix
527+
with each row corresponding to the true class
527528
<https://en.wikipedia.org/wiki/Confusion_matrix>`_.
529+
(Wikipedia and other references may use different convention for axes.)
530+
528531

529532
By definition, entry :math:`i, j` in a confusion matrix is
530533
the number of observations actually in group :math:`i`, but

sklearn/metrics/classification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def confusion_matrix(y_true, y_pred, labels=None, sample_weight=None):
223223
----------
224224
.. [1] `Wikipedia entry for the Confusion matrix
225225
<https://en.wikipedia.org/wiki/Confusion_matrix>`_
226+
(Wikipedia and other references may use a different
227+
convention for axes)
226228
227229
Examples
228230
--------

0 commit comments

Comments
 (0)
0