Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-learn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian Johnson
scikit-learn
Commits
748fa6e7
Commit
748fa6e7
authored
14 years ago
by
Olivier Grisel
Browse files
Options
Downloads
Patches
Plain Diff
cosmit
parent
9f2057d5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scikits/learn/metrics.py
+3
-4
3 additions, 4 deletions
scikits/learn/metrics.py
with
3 additions
and
4 deletions
scikits/learn/metrics.py
+
3
−
4
View file @
748fa6e7
...
@@ -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
==========
==========
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment