linear regression with SGD and Scikit-Learn
December 15, 2020•14 words
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
December 15, 2020•14 words
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