Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ENH : add_parameter to keep dim in TransformedTargetRegressor #30363

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
wants to merge 1 commit into
base: main
Choose a base branch
Loading
from

Conversation

Irdasset
Copy link

Reference Issues/PRs

Fixes #26530

What does this implement/fix? Explain your changes.

This implement allow the user to preserve the output dim by adding a parameter preserve_y_dim

Copy link

✔️ Linting Passed

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

Generated for commit: 569b3a2. Link to the linter CI: here

@Irdasset Irdasset changed the title add_parameter to keep dim ENH : add_parameter to keep dim in TransformedTargetRegressor Nov 28, 2024
@OmarManzoor
Copy link
Contributor

@glemaitre What do you think about this?

@betatim
Copy link
Member

betatim commented Jan 29, 2025

From one of the comments #26530 (comment) it sounds like we change the number of dimensions. That feels like a bug to me -> can't we fix this without having to introduce a new parameter?

I'm not sure about the answer to that question, just started looking into this. But maybe someone already knows?

Copy link
Contributor

@OmarManzoor OmarManzoor left a 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 @Irdasset
Instead of adding a new parameter could you handle this by checking the original dimension of y as discussed in the comments on the issue?

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.

TransformedTargetRegressor forces 1d y shape to regressor
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.