-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT validate parameter in GaussianNB #23583
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
MAINT validate parameter in GaussianNB #23583
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 @Jitensid. Here are some suggestions
@jeremiedbb I have made changes as per your suggestion. |
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.
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 @Jitensid
Reference Issues/PRs
GaussianNB uses _validate_parameters as part of #23462
What does this implement/fix? Explain your changes.
_parameter_constraints
that defines the valid types and values for the parameters.fit
andpartial_fit
methods first call theself._validate_params()
method.Any other comments?
If there are any mistakes please let me know and I will fix them as soon as possible.