-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
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
FEA Add metadata routing for TransformedTargetRegressor #29136
Conversation
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.
otherwise LGTM.
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. cc @glemaitre
@@ -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 |
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.
Interesting. I would have think that we have a circular import but apparently this is not the case anymore.
Reference Issues/PRs
Towards #22893
What does this implement/fix? Explain your changes.
Any other comments?
CC: @adrinjalali