get.caret.model.spec: Intended for use with caret; specifies a caret model...

Description Usage Arguments Examples

Description

Intended for use with caret; specifies a caret model specification for use by companion function caret.train.model.list There is a list of models here: http://topepo.github.io/caret/modelList.html

Usage

1
get.caret.model.spec(method, tuning = NULL, preProcess = NULL, ...)

Arguments

method

method to be passed to train caret

tuning

tuning method to be passed to train caret etiher a tuneGrid data frame or an integer to be passed to tuneLength

...

Values that will be passed directly to the function; in caret, these are values that aren't supported as tuning parameters.

Examples

1
2
get.caret.model.spec("knn",tuning = 5, preProcess = "pca")
#get a knn model spec, with 5 a tuneLength of 5, and use PCA pre-processing.

bjsmith/r-mvpa documentation built on May 30, 2019, 11:53 a.m.