Learn R Programming

caretEnsemble (version 1.0.0)

getMetric: Extract a model accuracy metric from an S3 object.

Description

Extract a model accuracy metric from an S3 object.

Extract a model accuracy metric from a train object.

Extract the AUC metric from a train object.

Extract the RMSE metric from a model object.

Usage

getMetric(x, metric)

## S3 method for class 'train': getMetric(x, metric = c("AUC", "RMSE"))

getAUC(x)

getRMSE(x)

Arguments

x
an object with model performanc metrics
metric
a character, either "RMSE" or "AUC" indicating which metric to extract

Value

  • A numeric representing the metric desired metric.

    A numeric for the AUC of the best model

    A numeric for the RMSE of the best model