Home>

Since the learning rate of python does not come out, I want to make it visible.

Error message
ConvergenceWarning: Maximum number of iteration reached before convergence.Consider increasing max_iter to improve the fit.
  ConvergenceWarning)
Applicable source code
from sklearn.linear_model import SGDRegressor
sgd_reg = SGDRegressor (max_iter = 100) .fit (x, y.ravel ())
sgd_reg.intercept_, sgd_reg.coef_
sgd_reg_00001 = SGDRegressor (eta0 = 0.0001, max_iter = 100) .fit (x, y.ravel ())
sgd_reg_00001.intercept_, sgd_reg_00001.coef _

I just imitated a youtube video. However, I thought that the text editor is different, so there might be a cause, but I don't understand. (Video editor for text: Jupyter My text editor: spyder)

Supplemental information (FW/tool version etc.)

Please provide more detailed information here.