-
Notifications
You must be signed in to change notification settings - Fork 15
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
edited MeanResponseTransformer to convert category to float, fixed tests #174
edited MeanResponseTransformer to convert category to float, fixed tests #174
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 contribution @limlam96! Idea and implementation look sound. This transformer is already a bit overcomplicated resulting in some difficult to interpret code and tests so most of my comments relate to avoiding making tests harder to read.
…_encoder_coerce_float
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.
Happy with changes, thanks!
Fixed issue where category dtypes were preserved by this transformer, which is not desired behaviour. Edited to coerce outputs to float, as converting to numeric is ultimately the goal of this one.
Fixed tests, and edited some to put a category column through as part of testing.