8000 DOC for n_nonzero_coefs_ attribute in OrthogonalMatchingPursuit by marenwestermann · Pull Request #18756 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

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

Merged

Conversation

marenwestermann
Copy link
Member

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?

Copy link
Member
@adrinjalali adrinjalali left a 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.

Copy link
Member
@NicolasHug NicolasHug left a 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

Comment on lines 592 to 594
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.
Copy link
Member

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.

Suggested change
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.

@marenwestermann
Copy link
Member Author

@NicolasHug thank you for your feedback. I implemented your suggested changes.

@NicolasHug NicolasHug changed the title DOC n_nonzero_coefs_ attribute documentation of class OrthogonalMatchingPursuit DOC for n_nonzero_coefs_ attribute in OrthogonalMatchingPursuit Nov 5, 2020
@NicolasHug NicolasHug merged commit b5d63e3 into scikit-learn:master Nov 5, 2020
@NicolasHug
Copy link
Member

Thanks @marenwestermann

@marenwestermann marenwestermann deleted the orthogonalmatchingpursuit branch November 5, 2020 14:41
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.

3 participants
0