extractMetric.train {caretEnsemble} | R Documentation |
Extract accuracy metrics from a train
model
Description
Extract the cross-validated accuracy metrics and their SDs from caret.
Usage
## S3 method for class 'train'
extractMetric(x, metric = NULL, ...)
Arguments
x |
a train object |
metric |
a character string representing the metric to extract. |
... |
ignored If NULL, uses the metric that was used to train the model. |
Value
A numeric representing the metric desired metric.
[Package caretEnsemble version 4.0.1 Index]