You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method "lasso" in caret fails from time to time with
Errorin { :task1failed-"arguments imply differing number of rows: 3, 2"
example code
# load caret and DT the cars data set
require(caret); require(DT);
# define x and y for regression of a synthetic dataset# defined in lasso
set.seed(123); training_data<- SLC14_1(10)
set.seed(123); testing_data<- SLC14_1(100)
# all the training data (just named x and y)y<-training_data$yx<-training_data[, -ncol(training_data)]
train(x,y,"lasso")
train(x,y,"lasso")
train(x,y,"lasso")
Method "lasso" in caret fails from time to time with
example code
results in
The text was updated successfully, but these errors were encountered: