scikit learn ridge regression

Solutions on MaxInterview for scikit learn ridge regression by the best coders in the world

showing results for - "scikit learn ridge regression"
Humphrey
11 Feb 2020
1from sklearn.linear_model import Ridge
2clf = Ridge(alpha=1.0)
3clf.fit(X, y) #Fit Ridge regression model
4clf.predict(y) #Predict using the model