-
Notifications
You must be signed in to change notification settings - Fork 341
[ENH] defer trailing underscore attribute assignment in fit() for imputers and discretisers #917
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
Open
direkkakkar319-ops
wants to merge
26
commits into
feature-engine:main
Choose a base branch
from
direkkakkar319-ops:issue#586
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7d23f87
added test case `def test_raises_non_fitted_error_when_error_during_f…
direkkakkar319-ops e1439cb
fixing test case test_style
direkkakkar319-ops f33a85a
fixing test case test_style
direkkakkar319-ops 7a0e8f5
fixing test case test_style
direkkakkar319-ops 59c8bd1
fix: defer trailing underscore attribute assignment in fit() for impu…
direkkakkar319-ops fef5a3f
base transformers
direkkakkar319-ops 2d3f734
discretisation
direkkakkar319-ops f95cb7f
scaling
direkkakkar319-ops 9b2fa4c
creation
direkkakkar319-ops 64c9e74
imputation
direkkakkar319-ops 50075fb
transformation
direkkakkar319-ops f2e944f
tests
direkkakkar319-ops ca9241e
creation
direkkakkar319-ops d813e2d
verified changes for checks
direkkakkar319-ops 519ca1d
verified changes for checks
direkkakkar319-ops 44f75c0
value error
direkkakkar319-ops 7b3c592
ADDED:`test_raises_non_fitted_error_when_error_during_fit`
direkkakkar319-ops 6babea2
added:`test_raises_non_fitted_error_when_error_during_fit`
direkkakkar319-ops c945dee
addEd:`test_raises_non_fitted_error_when_error_during_fit`
direkkakkar319-ops b631f63
tranformers
direkkakkar319-ops 0c681f5
left
direkkakkar319-ops 6898a3d
Updated the `Decisiontreefeatures` and `GeoDIstanceFeatures`
direkkakkar319-ops b807ef4
fixed `geo_features.py`
direkkakkar319-ops 3de9968
Improved failure triggers
direkkakkar319-ops 9a5973d
Improved failure triggers
direkkakkar319-ops aa75e97
fixed
direkkakkar319-ops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I can see that the logic that is here and we were calling with super().fit(), you are now not using and passing it on to the transformer, which makes sense for the requested change.
So i think we should remove the fit method from base numerical altogether. Like this, we ensure we don't use it as legacy anywhere else in the source code.