8000 Doc numpydoc validation for docstrings in BernoulliNB by LauraLangdon · Pull Request #15513 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Doc numpydoc validation for docstrings in BernoulliNB #15513

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
Nov 6, 2019
Merged

Doc numpydoc validation for docstrings in BernoulliNB #15513

merged 2 commits into from
Nov 6, 2019

Conversation

LauraLangdon
Copy link
Contributor

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Fixed fit_prior data to be bool, and added "See Also" section.

Any other comments?

@eickenberg
Copy link
Contributor

Looks good to me pending CI.

Please check for overlap with #15508

@LauraLangdon
Copy link
Contributor Author

Looks good to me pending CI.

Please check for overlap with #15508

I don't see any overlap with #15508!

Copy link
Member
@rth rth left a comment

Choose a reason for hiding this comment

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

Thanks @G0g0Gadget ! LGTM, aside for 1 comment below,

[3]
See Also
----------
MultinomialNB: The multinomial Naive Bayes classifier is \
Copy link
Member

Choose a reason for hiding this comment

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

I think the backslash at the end is not needed.

Copy link
Contributor Author
@LauraLangdon LauraLangdon Nov 4, 2019

Choose a reason for hiding this comment

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

Thanks, @rth! I tried having that bit of text on one line, but the pytest failed. Splitting into two lines made the pytest succeed, but when I submitted the PR without the backslash at the end, the lint check failed. Adding it at the recommendation of @TomDLT made it pass the lint test.

Is there another approach I should try instead?

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough, the docstring renders fine in any case. Thanks!

@rth rth changed the title Doc fix to BernoulliNB Doc numpydoc validation for docstrings in BernoulliNB Nov 6, 2019
@rth rth merged commit 75e9bc0 into scikit-learn:master Nov 6, 2019
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.

4 participants
0