ridge regression implementation python

Solutions on MaxInterview for ridge regression implementation python by the best coders in the world

showing results for - "ridge regression implementation python"
Hanna
29 Mar 2016
1from sklearn.linear_model import Ridge
2X_train, X_test, y_train, y_test = train_test_split(X_crime, y_crime,
3                                                   random_state = 0)
4
5linridge = Ridge(alpha=20.0).fit(X_train, y_train)
6