Last chance! 50% off unlimited learning
Sale ends in
createGrid(method, len = 3, data = NULL, pp = NULL)
train
for a full list.method
is cforest
, earth
, bagEarth
, fda
, bagFDA
, rpart
, svmRadial
, pam
, lars2
.mtry
)NA
are returned. Columns are named the same as the parameter name, but preceded by a period.For some models (see list above), the data should be passed to the function via the data
argument. In these cases, the outcome should be included in a column named .outcome
.
train
createGrid("rda", 4)
createGrid("lm")
createGrid("nnet")
## data needed for SVM with RBF:
tmp <- iris
names(tmp)[5] <- ".outcome"
head(tmp)
createGrid("svmRadial", data = tmp, len = 4)
Run the code above in your browser using DataLab