-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
MAINT rename base_estimator
and base_estimator_
in ensemble classes
#23819
Conversation
…or has decision_function
Hi @EdAbati , thanks for your pull request! And thanks for giving a try to my first suggestion! I like your solution! :D |
Hi @cmarmo , thank you very much for the fast review. |
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.
In addition, we should add a test for the deprecation of base_estimator_
in test_iforest.py
.
base_estimator
and base_estimator_
in ensemble class
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
@glemaitre I think I added all your suggestion :) |
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 applied my small nitpick suggestion to be inline with our own way to find the deprecation to remove in the future.
On my side, this PR is good to go. We will need a second reviewer.
ping @jeremiedbb @thomasjpfan |
base_estimator
and base_estimator_
in ensemble classbase_estimator
and base_estimator_
in ensemble classes
Thank you very much @glemaitre for the help. :) And apologies for the long back-and-forth, I got a bit confused on what needed to be done. (I hope I didn't make you waste too much time.) |
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 PR @EdAbati ! Here are some comments/questions.
Hi @jeremiedbb , thank you for the review! I should have addressed everything. I have added a fix to the documentation of |
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.
LGTM. Thanks @EdAbati
Nice thanks @EdAbati |
…n ensemble classes (scikit-learn#23819) Co-authored-by: Adrian Trujillo Duron <adrian.td96@gmail.com> Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs
Closes #9104. See also #22145.
Closes #22145
What does this implement/fix? Explain your changes.
I continued the stalled PR #22145.
I decided to change
BaseBagging
as initially suggested by @cmarmo #9104, because bothBaggingRegressor
andBaggingClassifier
depend on it. With this, I had to make a small update in the__init__
of theIsolationForest
too, since it is also subclass ofBaseBagging
(I believe I should not make a deprecation cycle here, becauseestimator
is not a argument ofIsolationForest
, but please correct me if I am wrong).I should have addressed everything in the comments, but please let me know if I missed anything. :)
Any other comments
With this PR all the classes mentioned here #9104 (comment) should be renamed and (I think) #9104 can be closed