MAINT rename base_estimator in _BaseChain subclasses#30152
MAINT rename base_estimator in _BaseChain subclasses#30152glemaitre merged 58 commits intoscikit-learn:mainfrom
base_estimator in _BaseChain subclasses#30152Conversation
|
@adrinjalali , please help me fix the issue with changelog. This is my first time making this kind of pull request. I added my changes to |
|
We've changed our changelog system, here's the new info: https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md You also need to enable pre-commit hooks so that the linters run before you commit. |
|
@glemaitre, I would appreciate it if you could review my pull request |
|
Could you fix the CI. |
|
You should follow the instructions in the contributing guideline: https://scikit-learn.org/dev/developers/contributing.html#how-to-contribute |
|
@glemaitre there was a bug in the new code. I fixed it. The code passes |
|
You need to run the tests with You should read the log of the CI to see where the issue comes from. The stack trace of the CI shows you where the issue is. Maybe @StefanieSenger could pair with you to help you move forward. |
|
Hi @SuccessMoses, In order to make the CI tests pass, you need to fix the failing tests (use Let me know if that doesn't work or you run into problems. |
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
thomasjpfan
left a comment
There was a problem hiding this comment.
Minor nits to update the versions, otherwise LGTM
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
|
@thomasjpfan thanks for the review. I fixed the version number |
|
You've got merge conflicts here @SuccessMoses |
|
Just pushing to fix the test. It was one remaining |
glemaitre
left a comment
There was a problem hiding this comment.
LGTM if the CI get through this time.
Reference Issues/PRs
Fixes #29620 using the process followed in a similar pull request #23819
What does this implement/fix? Explain your changes.
This PR continues from the stalled PR #29682.
base_estimatorparameter toestimatorinRegressorChainandClassifierChainfor consistency, see base_estimator vs estimator for meta-estimators #9104. The former parameter is deprecated and will be removed in 1.7.fitmethod of the_BaseChainclass so that for classes that inherit from_BaseChain, a warning message is displayed anytime.fitis called withbase_estimator.RegressorChainandClassifierChain.base_estimatorandbase_estimator_in ensemble classes #23819, to ensure no error.