Description Usage Arguments Details Value Examples
Makes metricCurve
data using bootstrapping, which makes it
possible to calculate the standard deviation, and the quantiles of
the results.
1 2 | bootstrappedMetricCurve(pred, actual, x, y, res = 0.1, draws = 100,
parallel = FALSE)
|
pred |
Probability predictions |
actual |
Outcomes |
res |
Resolution of ROC thresholds. A float between 0 and 1. |
draws |
Number of times to randomly sample the data for bootstrapping. Larger numbers yield better results, but also increase runtime. |
parallel |
Boolean. Run in parallel? Uses ncores - 1 CPU cores. |
probs |
Vector of quantiles to return |
Note that the function requires specification of the resolution of the
metricCurve
. This is because each bootstrap iteration must have the
same dimensions, since it must be possible to collapse these into an array.
A list containing ROC data and AUC with confidence intervals.
1 2 | tdat <- examplePredictions()
bootstrappedMetricCurve(tdat$pred,tdat$actual,roc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.