Data Science, Machine Learning, Data Analytics, Knowledgebase Analytics, Regularization.
method = "glmnet", trControl = trainControl, tuneGrid = expand.grid(alpha = 1, lambda = seq(0.001, 0.1, length = 10)), preProc = c("center", "scale"), # Normalize (center and scale) the data metric = "RMSE" ) # Coefficients Plot coef <- as.matrix(coef(lassoModel$finalModel, s =