linear regression with SGD and Scikit-Learn

from sklearn.linear_model import SGDRegressor

sgdreg = SGDRegressor(maxiter=1000, tol=1e-3, penalty=None, eta0=0.1)

sgd_reg.fit(X, y.ravel())

sgdreg.intercept, sgdreg.coef


You'll only receive email when they publish something new.

More from Juan Márquez
All posts