-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT validate parameter in VarianceThreshold #23581
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 VarianceThreshold #23581
Conversation
Remove variance threshold from to be validated
Add parameter validation for variance threshold.
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 @SangamSwadiK. You can now remove the validation on line 118 elif self.threshold < 0.0:
, and the corresponding test test_variance_negative
in test_variance_threshold.py
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
All good. Merging. Thanks @SangamSwadiK |
Co-authored-by: Sangam Swadi K <sangamswadik@users.noreply.github.com> Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Reference Issues/PRs
Issue: #23462 validating estimator params
What does this implement/fix? Explain your changes.
Any other comments?
Please let me know if I missed something/did it incorrectly, ill fix it asap.