I am tuning alpha coefficient in Lasso regularisation to get best result on cross-validation:
alphas = np.arange(1,200, 1)
from sklearn.linear_model import LassoCV
lasso=LassoCV(alphas=alphas)
r=lasso.fit(X,y)
plt.plot(alphas,lasso.mse_path_)
This gives me following picture:
I want to see minimum of the red curve,enlarge alpha interval twice (np.arange(1,400, 1)) and rerun the code:
Why curves' coorientations depend on alphas array size??