这是我的代码。当我运行它的时候,脊线是正常的,但是对于套索,我得到了错误消息:
ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations.
请帮帮忙。
from sklearn.linear_model import LinearRegression, Lasso, Ridge, RidgeCV, LassoCV
from sklearn.model_selection import cross_val_score
import numpy as np