Skip to content

Instantly share code, notes, and snippets.

@Habitats
Last active March 4, 2016 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Habitats/f0ac6068b4a23d647c0a to your computer and use it in GitHub Desktop.
Save Habitats/f0ac6068b4a23d647c0a to your computer and use it in GitHub Desktop.
For a binary classification with two outputs, eihter [1,0] or [0,1],
and the Evalution object, the following outputs are generated ...
The following confusion matrix:
Predicted Class
0 1 Total
Actual Class 0 1500 2 1502
1 68 131 199
Total 1568 133
And the following counts:
TP FP FN TN
1631 70 70 1631
--> TP == TN == (confusionTP + confusionTN) and FN == FP == (confusionFP + confusionFN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment