powered by
EvaluationMeasures.MCC(Real = NULL, Predicted = NULL, Positive = 1, TP = NULL, TN = NULL, FP = NULL, FN = NULL)
Positive One means perfect prediction,Zero means random prediction, Negative one means total disagreement.
By getting the predicted and real values or number of TP,TN,FP,FN return the Matthews Correlation Coefficient of model
EvaluationMeasures.MCC(c(1,0,1,0,1,0,1,0),c(1,1,1,1,1,1,0,0))
Run the code above in your browser using DataLab