@v.vicky000 wrote:
I was trying to solve Big Mart Sales problem and found below in one of the blog.I am unable to understand if below is the syntax for Lasso Regression
my_control = trainControl(method=“cv”, number=5)
Grid = expand.grid(alpha = 0, lambda = seq(0.001,0.1,by = 0.0002))lasso_linear_reg_mod3 = train(x = Train[, -c(1,2)], y = Train$Item_Outlet_Sales,
method=‘glmnet’, trControl= my_control, tuneGrid = Grid)
Posts: 3
Participants: 2