Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ShehanAT
Copy link
Contributor

@ShehanAT ShehanAT commented Aug 1, 2022

I updated the documentation to reflect the changes stated in this issue #23390

t_ : int
Number of weight updates performed during training.
Same as ``(n_iter_ * n_samples + 1)``.

Fixes #23390

@thomasjpfan thomasjpfan changed the title DOC: Added Doc Update Regarding sklearn.linear_model.Perceptron.t_ DOC Updates linear_model.Perceptron regarding t_ Aug 1, 2022
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

I think this impacts all subclasses of BaseSGDRegressor. Can you update the following places as well:

git grep "n_iter_ \* n_samples"

sklearn/linear_model/_passive_aggressive.py:        Same as ``(n_iter_ * n_samples)``.
sklearn/linear_model/_passive_aggressive.py:        Same as ``(n_iter_ * n_samples)``.
sklearn/linear_model/_stochastic_gradient.py:        Same as ``(n_iter_ * n_samples)``.
sklearn/linear_model/_stochastic_gradient.py:        Same as ``(n_iter_ * n_samples)``.
sklearn/linear_model/_stochastic_gradient.py:        Same as ``(n_iter_ * n_samples)``.

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmarmo cmarmo added the Quick Review For PRs that are quick to review label Aug 3, 2022
Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you, @ShehanAT.

@thomasjpfan: I think it is fair to merge DOC PRs with only one review from a maintainer.

@jjerphan jjerphan merged commit 99ae8f8 into scikit-learn:main Aug 5, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Perceptron.t_ appears off by 1

4 participants