extractMetric.train {caretEnsemble} | R Documentation |
train
modelExtract the cross-validated accuracy metrics and their SDs from caret.
## S3 method for class 'train'
extractMetric(x, metric = NULL, ...)
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. |
A numeric representing the metric desired metric.