Skip to content

Commit

Permalink
Fix/document average range values across the board
Browse files Browse the repository at this point in the history
  • Loading branch information
bmgdc committed Feb 8, 2024
1 parent 97d5b4d commit d181bda
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sklearn/linear_model/_stochastic_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ class SGDClassifier(BaseSGDClassifier):
an int greater than 1, averaging will begin once the total number of
samples seen reaches `average`. So ``average=10`` will begin
averaging after seeing 10 samples.
Integer values must be in the range `[1, n_samples]`.
Integer values must be in the range `[0, n_samples]`.
Attributes
----------
Expand Down Expand Up @@ -1915,6 +1915,7 @@ class SGDRegressor(BaseSGDRegressor):
an int greater than 1, averaging will begin once the total number of
samples seen reaches `average`. So ``average=10`` will begin
averaging after seeing 10 samples.
Integer values must be in the range `[0, n_samples]`.
Attributes
----------
Expand Down Expand Up @@ -2130,6 +2131,7 @@ class SGDOneClassSVM(BaseSGD, OutlierMixin):
averaging will begin once the total number of samples seen reaches
average. So ``average=10`` will begin averaging after seeing 10
samples.
Integer values must be in the range `[0, n_samples]`.
Attributes
----------
Expand Down

0 comments on commit d181bda

Please sign in to comment.