📅  最后修改于: 2022-03-11 14:46:16.642000             🧑  作者: Mango
from sklearn.linear_model import Ridge
clf = Ridge(alpha=1.0)
clf.fit(X, y) #Fit Ridge regression model
clf.predict(y) #Predict using the model