Description Usage Arguments Examples
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
1 | get.caret.model.spec(method, tuning = NULL, preProcess = NULL, ...)
|
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. |
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.