powered by
mcc(preds = NULL, actuals = NULL, TP = NULL, FP = NULL, TN = NULL, FN = NULL)
preds
actuals
TP
FP
TN
FN
preds <- c(1,1,1,0,1,1,0,0) actuals <- c(1,1,1,1,0,0,0,0) mcc(preds, actuals) mcc(actuals, actuals) mcc(TP=3, FP=2, TN=2, FN=1)
Run the code above in your browser using DataLab