Plot Ridge coefficients as a function of the regularization
from sklearn import linear_model
reg = linear_model.Ridge(alpha =0.5)
reg.fit([[0,0],[1,1],[2,2]],[0,1,2])
reg.coef_ #coeficients
reg.intercept_
#Plot Ridge coefficients as a functionof the regularization
import numpy as np
import matplotlib.pyplot as plt
from sklearn import linear_model
x =1/(np.arange(1,11