-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Add abstract methods to _BaseDiscreteNB #22596
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
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
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 @avm19. Here are a few comments.
jeremiedbb's corrections Co-authored-by: Jérémie du Boisberranger <[email protected]>
jeremiedbb's corrections Co-authored-by: Jérémie du Boisberranger <[email protected]>
jeremiedbb's corrections Co-authored-by: Jérémie du Boisberranger <[email protected]>
jeremiedbb's corrections Co-authored-by: Jérémie du Boisberranger <[email protected]>
jeremiedbb's corrections Co-authored-by: Jérémie du Boisberranger <[email protected]>
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!
thomasjpfan's correction Co-authored-by: Thomas J. Fan <[email protected]>
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.
Minor comments, otherwise LGTM
thomasjpfan's corrections Co-authored-by: Thomas J. Fan <[email protected]>
thomasjpfan's corrections Co-authored-by: Thomas J. Fan <[email protected]>
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
Co-authored-by: avm19 <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Jérémie du Boisberranger <[email protected]>
Reference Issues/PRs
PR #22565 has been split in two. This is the second part.
What does this implement/fix? Explain your changes.
Abstract methods
_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 maintenance of the code. Currently, the abstract methods aren't mentioned anywhere in plain English, but they are called, and their effects are expected by concrete methods of the same class.Any other comments?
Edits by maintainers are allowed.