July 2016
Beginner to intermediate
462 pages
9h 14m
English
The Matthews correlation coefficient (MCC) or phi coefficient is an evaluation metric for binary classification invented by Brian Matthews in 1975. The MCC is a correlation coefficient for target and predictions and varies between -1 and 1 (best agreement). MCC is a very good way to summarize the confusion matrix (refer to the Getting classification straight with the confusion matrix recipe) as it uses all four numbers in it. The MCC is given by the following equation:

import dautil as dl from sklearn import metrics import numpy as np import ch10util from ...
Read now
Unlock full access