Description Usage Arguments Value Examples
Creates a Metric Curve dataset, that can be used to create a metric plot, like a ROC plot or a Precision-recall plot, and calculate AUC. ROC is a special, widely used case of the MC.
1 | metricCurve(p, actual, x, y, res = NULL)
|
p |
Vector of predicted probabilities |
actual |
Vector of actual scores |
x |
A function operating on the 2x2 confusion matrix, yielding a score. Common functions are precision, recall, fallout and accuracy. |
y |
A function operating on the 2x2 confusion matrix, yielding a score. Common functions are precision, recall, fallout and accuracy. |
res |
Specification of the threshold resolution of the curve. Either a single number, a vector of numbers, or NULL. If a single number, it will be used as an interval to create thresholds between 0 and 1. If a vector, it will be used as the vector of thresholds. If NULL, thresholds will be based on the unique values of p. |
A data-frame of metric scores, that can be used to create an interesting plot, or to calculate the AUC.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.