updated post
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)
updated post
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)