extractModelName: Extract the method name associated with a single train object

View source: R/helper_functions.R

extractModelNameR Documentation

Extract the method name associated with a single train object

Description

Extracts the method name associated with a single train object. Note that for standard models (i.e. those already prespecified by caret), the "method" attribute on the train object is used directly while for custom models the "method" attribute within the model$modelInfo attribute is used instead.

Usage

extractModelName(x)

Arguments

x

a single caret train object

Value

Name associated with model


caretEnsemble documentation built on Sept. 20, 2023, 5:08 p.m.