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

Fix bug with consistency of RegressionEstimator one-hot encoding #1112

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

drawlinson
Copy link
Contributor

Fix bug with consistency of RegressionEstimator one-hot encoding by switching from pandas get_dummies to sklearn OneHotEncoder.

See issue #1111

…witching from pandas get_dummies to sklearn OneHotEncoder.

Signed-off-by: DAVID RAWLINSON <[email protected]>
@bloebp
Copy link
Member

bloebp commented Dec 11, 2023

Hi, thanks for addressing this! Can you also add a unit test to cover this?

…nd consistency on new data.

Signed-off-by: DAVID RAWLINSON <[email protected]>
@drawlinson
Copy link
Contributor Author

No problem, unit test added. NB Apologies in advance - will not be able to update PR from 14 to 27 Dec, away from computer!

Copy link
Member

@amit-sharma amit-sharma left a comment

Choose a reason for hiding this comment

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

Thanks @drawlinson The changes look good to me.

@amit-sharma amit-sharma linked an issue Dec 21, 2023 that may be closed by this pull request
@amit-sharma amit-sharma merged commit 63c66fe into py-why:main Dec 21, 2023
30 checks passed
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.

Add accessor to CausalModel._estimator_cache
3 participants