extractMetric.train: Extract accuracy metrics from a 'train' model

View source: R/caretPredict.R

extractMetric.trainR 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.


caretEnsemble documentation built on Sept. 13, 2024, 1:11 a.m.