Skip to content

DOC fix description of tolerance in OMP #26823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 12, 2023
Merged

Conversation

fuglede
Copy link
Contributor

@fuglede fuglede commented Jul 12, 2023

The phrasing of the documentation suggested that the result was so that the resulting regression coefficients had the property that the norm of the residual was less than tol, when in fact all that was guaranteed was that the norm square would be less than tol. Looking at the implementation, the latter is very much the intended behavior, so we change the documentation instead of the implementation.

The phrasing of the documentation suggested that the result was so that the resulting regression coefficients had the property that the norm of the residual was less than `tol`, when in fact all that was guaranteed was that the norm square would be less than `tol`. Looking at the implementation, the latter is very much the intended behavior, so we change the documentation instead of the implementation.
@github-actions
Copy link

github-actions bot commented Jul 12, 2023

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: bf16a93. Link to the linter CI: here

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @fuglede. I agree that from the implementation, checking the squared norm of the residuals is clearly intended, so I'm +1 to fix the docstring. LGTM

@jeremiedbb jeremiedbb merged commit 57dde82 into scikit-learn:main Jul 12, 2023
punndcoder28 pushed a commit to punndcoder28/scikit-learn that referenced this pull request Jul 29, 2023
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants