Skip to content
Snippets Groups Projects
Commit 748fa6e7 authored by Olivier Grisel's avatar Olivier Grisel
Browse files

cosmit

parent 9f2057d5
Branches
Tags
No related merge requests found
...@@ -10,10 +10,9 @@ import numpy as np ...@@ -10,10 +10,9 @@ import numpy as np
def confusion_matrix(y_true, y_pred, labels=None): def confusion_matrix(y_true, y_pred, labels=None):
"""Compute confusion matrix to evaluate the accuracy of a classification """Compute confusion matrix to evaluate the accuracy of a classification
By definition a confusion matrix cm is such that: By definition a confusion matrix cm is such that cm[i, j] is equal
to the number of observations known to be in group i but predicted
cm[i,j] is equal to the number of observations known to be in group i to be in group j
but predicted to be in group j
Parameters Parameters
========== ==========
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment