8000 FEA Add metadata routing for TransformedTargetRegressor by OmarManzoor · Pull Request #29136 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

FEA Add metadata routing for TransformedTargetRegressor #29136

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

Merged
merged 5 commits into from
Jun 10, 2024

Conversation

OmarManzoor
Copy link
Contributor

Reference Issues/PRs

Towards #22893

What does this implement/fix? Explain your changes.

  • Adds metadata routing to TransformedTargetRegressor

Any other comments?

CC: @adrinjalali

Copy link
github-actions bot commented May 30, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: e3b42a7. Link to the linter CI: here

Copy link
Member
@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

otherwise LGTM.

Copy link
Member
@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

LGTM. cc @glemaitre

@glemaitre glemaitre self-requested a review June 6, 2024 08:22
@@ -274,14 +290,13 @@ def fit(self, X, y, **fit_params):
if y_trans.ndim == 2 and y_trans.shape[1] == 1:
y_trans = y_trans.squeeze(axis=1)

if self.regressor is None:
from ..linear_model import LinearRegression
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. I would have think that we have a circular import but apparently this is not the case anymore.

@glemaitre glemaitre merged commit 8a5d8c3 into scikit-learn:main Jun 10, 2024
30 checks passed
@OmarManzoor OmarManzoor deleted the target_regressor_routing branch June 20, 2024 08:23
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0