Data Science, Machine Learning, Data Analytics, Knowledgebase Analytics, Regularization.
the model with Ridge (alpha = 0), with normalization set.seed(123) ridgeModel <- train( Salary ~ ., data = trainData, method = "glmnet", trControl = trainControl, tuneGrid = expand.grid(alpha = 0, lambda = seq(0.001, 0.1, length = 10)), preProc = c("center", "scale"), # Normalize (center and scale)