Я следую учебному пособию по caret
в R со встроенным набором данных Sonar
.Этот набор данных состоит из 208 строк и 61 объекта / переменных (60, если класс отбрасывается).
В шаге объясняются функции trainControl
и train
следующим образом:
# Model training controller (cross-validation with 3 reps)
control <- trainControl(method="repeatedcv", repeats=3)
myModel <- train (Class ~ .,
data=train_partition,
method="pls",
preProc=c("scale"),
trControl=control,
tuneLength=3)
Когда я показываю документацию train
, параметр tuneLength
задается как:
An integer denoting the amount of granularity in the tuning parameter grid.
By default, this argument is the number of levels for each tuning parameters that
should be generated by train. If trainControl has the option search = "random",
this is the maximum number of tuning parameter combinations that will be generated
by the random search. (NOTE: If given, this argument must be named.)
Что это за "настраиваемые параметры" метода "pls", указанные вПервая строка документации?
Почему я могу установить для этого параметра значение в диапазоне 1-50?Что означает этот параметр?