You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InvalidParameterError: The 'tol' parameter of SGDRegressor must be a float in the range [0, inf) or None. Got -inf instead.
Expected behavior
Since we are doing the early stopping manually, i think the tolerance should be None i.e. in a way saying that "don't use tolerance". I am new to ML and i am only guessing this.
Versions:
OS: Windows 10.0.22621
Python: 3.10.11
Scikit-Learn: 1.2.2
The text was updated successfully, but these errors were encountered:
Description
Chapter 4:
Notebook name:
04_training_linear_models.ipynb
,Cell 47
,line 11
:tol = -np.infty
is not defined according to the documentation. It can only take the valuesNone
or[0, np.infty)
.Scikit-learn version 1.2.2
To Reproduce
Error:
Expected behavior
Since we are doing the early stopping manually, i think the tolerance should be
None
i.e. in a way saying that "don't use tolerance". I am new to ML and i am only guessing this.Versions:
The text was updated successfully, but these errors were encountered: