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

🐛 fixed bug with get_params method when capping_values=None #311

Merged

Conversation

davidhopkinson26
Copy link
Contributor

@davidhopkinson26 davidhopkinson26 commented Oct 3, 2024

Fixes issue raised in #292

Moved setting of self.capping_values out of conditional block so it still happens when capping_values= None.

The lack of a capping_values attribute was causing issues with the get_params method inherited from sklearn.

Added a test for just this transformer. Arguably should add for rest of package too via base_tests.OtherBaseBehaviour but this would be more involved as it requires iterating through all optional attributes set to None. I suspect this would require a configuration somewhere as there are probably quite a few cases where args cannot be optional at the same time.

@davidhopkinson26 davidhopkinson26 linked an issue Oct 3, 2024 that may be closed by this pull request
1 task
@davidhopkinson26 davidhopkinson26 merged commit 04c54e9 into main Oct 8, 2024
12 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.

[Bug]: Capping transformer get_params() method error
2 participants