Learn R Programming

caretEnsemble (version 2.0.3)

caretModelSpec: Generate a specification for fitting a caret model

Description

A caret model specification consists of 2 parts: a model (as a string) and the arguments to the train call for fitting that model

Usage

caretModelSpec(method = "rf", ...)

Value

a list of lists

Arguments

method

the modeling method to pass to caret::train

...

Other arguments that will eventually be passed to caret::train

Examples

Run this code
caretModelSpec("rf", tuneLength=5, preProcess="ica")

Run the code above in your browser using DataLab