Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn ridge regression

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
 
PREVIOUS NEXT
Tagged: #scikit #learn #ridge #regression
ADD COMMENT
Topic
Name
5+2 =