Home > Net >  AxisError: axis -1 is out of bounds
AxisError: axis -1 is out of bounds

Time:11-17

I already referred the posts enter image description here

updated post

enter image description here

CodePudding user response:

Try this code, give alpha in nump array

reg = LassoCV(alphas=np.array([0.5]), cv=5, random_state=0).fit(x_train, y_train)
  • Related