powered by
Evaluate model performance for binary tasks
performance.metrics(actual, pred, return_contingency = FALSE)
Prediction performance metrics (Precision, Recall, MCC) between actual and predicted cell type labels.
Logical or numeric binary vector giving the actual cell labels.
Logical or numeric binary vector giving the predicted cell labels.
Logical indicating if contingency table must be returned.
results <- performance.metrics(actual= sample(c(1,0),20,replace=TRUE), pred = sample(c(1,0),20,replace=TRUE,prob = c(0.65,0.35) ) )
Run the code above in your browser using DataLab