-
Notifications
You must be signed in to change notification settings - Fork 85
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
Surpress warnings in target encoder #3540
Surpress warnings in target encoder #3540
Conversation
@@ -65,9 +67,14 @@ def __init__( | |||
"category_encoders", | |||
error_msg="category_encoders not installed. Please install using `pip install category_encoders`", | |||
) | |||
# Supress warnings for now due to problems discussion here: | |||
# https://github.com/scikit-learn-contrib/category_encoders/issues/327 | |||
with warnings.catch_warnings(): |
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.
We could also change the default value of smoothing
and add min_samples_leaf
parameter but there is still some discussion as to what the new defaults should be so figured it was better to suppress the warnings
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.
agreed!
Codecov Report
@@ Coverage Diff @@
## main #3540 +/- ##
=======================================
+ Coverage 99.7% 99.7% +0.1%
=======================================
Files 335 335
Lines 33263 33267 +4
=======================================
+ Hits 33135 33139 +4
Misses 128 128
Continue to review full report at Codecov.
|
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.
thank you!
Pull Request Description
Fix nightlies. Surpress warnings in target encoder due to scikit-learn-contrib/category_encoders#327
After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of
docs/source/release_notes.rst
to include this pull request by adding :pr:123
.