getMetric | R Documentation |
Extract accuracy metrics from a model
Extract accuracy metrics SDs from a model
Extract a model accuracy metric from a train
object.
Extract the standard deviation from resamples for an accuracy metric from a model object.
getMetric(x, metric, ...)
getMetricSD(x, metric, ...)
## S3 method for class 'train'
getMetric(x, metric = NULL, ...)
## S3 method for class 'train'
getMetricSD(x, metric, ...)
x |
a train object |
metric |
which metric to get |
... |
passed through |
A numeric representing the metric desired metric.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.