R 包是否对模型和模型进行caret
交叉验证?运行这段代码,alpha
lambda
glmnet
eGrid <- expand.grid(.alpha = (1:10) * 0.1,
.lambda = (1:10) * 0.1)
Control <- trainControl(method = "repeatedcv",repeats = 3,verboseIter =TRUE)
netFit <- train(x =train_features, y = y_train,
method = "glmnet",
tuneGrid = eGrid,
trControl = Control)
训练日志如下所示。
Fold10.Rep3: alpha=1.0, lambda=NA
是什么lambda=NA
意思?