-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Clarifies comments and docstrings in _BaseDiscreteNB #22565
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
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.
Thanks for the PR @avm19!
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
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.
Thanks for the update! LGTM
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. Thanks @avm19
@thomasjpfan @jeremiedbb Thank you for reviewing. Please see the next one if you are still in the context: PR #22596 |
…n#22565) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Reference Issues/PRs
As far as I know, there was no issue for that. I briefly mentioned what I had on my mind in #22502, where @glemaitre gave me a general guidance, which I am trying to follow.
What does this implement/fix? Explain your changes.
All changes are private.
_BaseNB._joint_log_likelihood
is corrected: I included a detail, which is important for implementation of a naive Bayes meta-estimators I am working on now (PR is coming within a day or so). I don't think this docstring appears in the documentation.Abstract methodsAbstract methods will be added in a separated PR._count
and_update_feature_log_prob
are added to the abstract class_BaseDiscreteNB
, along with a minimal description of what these methods should do. I believe this addition will facilitate understanding and maintaining the code. Currently, the abstract methods aren't mentioned anywhere, but are called and their effects are expected by concrete methods of the same class.Any other comments?
None.