-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC for n_nonzero_coefs_ attribute in OrthogonalMatchingPursuit #18756
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
DOC for n_nonzero_coefs_ attribute in OrthogonalMatchingPursuit #18756
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the failing tests are not related.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment LGTM , thanks @marenwestermann
sklearn/linear_model/_omp.py
Outdated
Desired number of non-zero entries in the solution. If n_nonzero_coefs | ||
is None and tol is None this value is either set to 10% of n_features | ||
or one, whichever is greater. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion: the current phrasing suggests that this is describing a parameter, but this is an attribute.
Desired number of non-zero entries in the solution. If n_nonzero_coefs | |
is None and tol is None this value is either set to 10% of n_features | |
or one, whichever is greater. | |
The number of non-zero coefficients in the solution. If `n_nonzero_coefs` | |
is None and `tol` is None this value is either set to 10% of `n_features` | |
or 1, whichever is greater. |
@NicolasHug thank you for your feedback. I implemented your suggested changes. |
Thanks @marenwestermann |
Reference Issues/PRs
References #14312
What does this implement/fix? Explain your changes.
Documents the attribute n_nonzero_coefs_ in class OrthogonalMatchingPursuit
Any other comments?