extractMetric.train: Extract accuracy metrics from a train model
Description
Extract the cross-validated accuracy metrics and their SDs from caret.
Usage
# S3 method for train
extractMetric(x, metric = NULL, ...)
Value
A numeric representing the metric desired metric.
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.