View source: R/performance.calculation.R
This function exports confusion matrix (i.e., true positive, false positive, true negative, and false negative) and calculates 11 performance measures. The performance measures are AUC, Precision, Recall, False Positive Rate, True Negative Rate, F-measure, Accuracy, MCC, G-mean, G-measure, and Balance.
1 | performance.calculation(outcome, prob, threshold = 0.5)
|
outcome |
a vector of the outcome labels. |
prob |
a numeric vector of the predicted probability. |
threshold |
a numeric threshold for the predicted probability. A predicted probability of above a threshold is considered a positive prediction. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.