Skip to content
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

Merged
merged 2 commits into from Jun 3, 2022

Conversation

freddyaboulton
Copy link
Contributor

@freddyaboulton freddyaboulton commented Jun 3, 2022

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.

@@ -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():
Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed!

@codecov
Copy link

codecov bot commented Jun 3, 2022

Codecov Report

Merging #3540 (0d7d84b) into main (0377407) will increase coverage by 0.1%.
The diff coverage is 100.0%.

@@           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             
Impacted Files Coverage Δ
...components/transformers/encoders/target_encoder.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0377407...0d7d84b. Read the comment docs.

Copy link
Contributor

@jeremyliweishih jeremyliweishih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@freddyaboulton freddyaboulton merged commit 7dbc2ab into main Jun 3, 2022
@freddyaboulton freddyaboulton deleted the fix-nightlies-surpress-targetencoder-warnings branch June 3, 2022 17:41
@freddyaboulton freddyaboulton mentioned this pull request Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants