Skip to content

[WIP] we do not transform y #9075

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

Closed
wants to merge 10 commits into from

Conversation

agramfort
Copy link
Member

do not transform or inverse_transform y

now I have problem with a number of function signatures:

transform(self, X, Y=None, copy=True)

thoughts on how to address this?

@amueller
Copy link
Member

amueller commented Jun 9, 2017

didn't I merge this yesterday? Or are these other classes?

@vene
Copy link
Member

vene commented Jun 9, 2017

thoughts on how to address this?

argh... we add *args, **kwargs and raise deprecationwarning if they're nonempty?

@GaelVaroquaux
Copy link
Member

Failing tests that should be addressed

@jnothman
Copy link
Member

Is there a reason to prefer this over #8403?

@agramfort
Copy link
Member Author

agramfort commented Jun 12, 2017 via email

@agramfort
Copy link
Member Author

agramfort commented Jun 13, 2017 via email

@jnothman
Copy link
Member

Tests failing. Please mark MRG when ready

@@ -390,6 +391,12 @@ def transform(self, X, Y=None, copy=True):
-------
x_scores if Y is not given, (x_scores, y_scores) otherwise.
"""
# XXX : don't know what to do with Y
Copy link
Member

Choose a reason for hiding this comment

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

Sorry I don't follow this comment? What you are doing below is the right thing. Correct?

Copy link
Member

Choose a reason for hiding this comment

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

(I understand this now)

@raghavrv
Copy link
Member

argh... we add *args, **kwargs and raise deprecationwarning if they're nonempty?

Are we settling on that?

@raghavrv
Copy link
Member

For the function transformer, do we want the user defined function to be able to pass y?

@glemaitre
Copy link
Member

@raghavrv it seems that the only case would be that we need to modify y given X and vice-versa. I personally do not see a use case.

@amueller
Copy link
Member

see #1963 and proposed (but then rejected) fix at #4393.

@amueller
Copy link
Member

amueller commented Jun 16, 2017

@GaelVaroquaux was still -1 in January: #8174 (comment)

@GaelVaroquaux it would be great if you could either be more consistent or at least remember your past decisions and if you change your opinion go back to the PRs that were rejected.

@glemaitre
Copy link
Member

@amueller let say that I had in mind (and certainly biased) a SamplerMixin for some of the use case stated in #4393 (comment) however I am not sure that we can cover all proposals thought

@jnothman
Copy link
Member

jnothman commented Jun 17, 2017 via email

@glemaitre
Copy link
Member

@jnothman I would keep the TransformerMixin to not take any y at fit. When referring to #4393 (comment) there is a couple of use cases which require for y and for resampling and data augmentation (at least), I would rather implement a new mixin like SamplerMixin in imbalanced-learn.

@jnothman
Copy link
Member

jnothman commented Jun 17, 2017 via email

@glemaitre
Copy link
Member

in fit and the equivalent of transform (sample in this case)

@jnothman
Copy link
Member

jnothman commented Jun 18, 2017 via email

@glemaitre
Copy link
Member

I am sorry to have make you confused. My statement is that I am in favor of deprecating y in transform and have another type of estimator which will take care about the use case where y needs to be modified.

@jnothman
Copy link
Member

jnothman commented Jun 18, 2017 via email

@jnothman jnothman added this to the 0.19 milestone Jun 18, 2017
@jnothman
Copy link
Member

@agramfort is this still meant to be WIP?

@agramfort
Copy link
Member Author

I have no time to continue on this :(

I asked @raghavrv to take over.

I just have a problem with pls transform method that actually uses Y... I don't understand this code so I don't really know what to do. Maybe leave for another PR?

@amueller
Copy link
Member

@jnothman didn't realize @GaelVaroquaux changed his opinion, that was after lectures started ;)
And what you mean by "become" ;)

@raghavrv
Copy link
Member

raghavrv commented Jun 20, 2017

(This is waiting for #9160 to be reviewed)

@agramfort
Copy link
Member Author

I am not sure how we will wait for #9160 to be reviewed.

I would say leave PLS out of it for you. We'll make it a special case in the docstring checks.

@raghavrv
Copy link
Member

Perfect then. Thx.

@raghavrv raghavrv closed this Jun 20, 2017
@amueller
Copy link
Member

@raghavrv did you mean to close it? What is is replaced by?

@raghavrv raghavrv mentioned this pull request Jun 20, 2017
1 task
@raghavrv
Copy link
Member

#9180 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants