createGrid {caret} | R Documentation |
This function creates a data frame that contains a grid of complexity parameters specific methods.
createGrid(method, len = 3, data = NULL)
method |
a string specifying which classification model to use. Possible values are: lm , rda , lda , gbm , rf , nnet , multinom , gpls , lvq , rpart , knn , pls , pam , nb , earth , treebag ,
svmpoly , svmradial , fda , bagEarth , bagFDA , glmboost , gamboost , blackboost , ada , ctree and cforest |
len |
an integer specifying the number of points on the grid for each tuning parameter. |
data |
the training data (only needed in the case where the method is rpart , rf or pls . |
A grid is created with rows corresponding to complexity parameter combinations. If the model does not use tuning parameters (like a linear model), values of NA
are returned. Columns are named the same as the parameter name, but preceded by a period.
A data frame
Max Kuhn
createGrid("rda", 4) createGrid("lm") createGrid("nnet")