-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Bug in BaseSearchCV.inverse_transform #8344
Labels
Comments
yes. whoops. PR welcome
…On 13 Feb 2017 2:58 am, "Cédric St-Jean" ***@***.***> wrote:
The delegating code
<https://github.com/scikit-learn/scikit-learn/blob/e5ceda88f2a24b3dd4f9a94404828f982cdf52ad/sklearn/utils/validation.py#L650>
for inverse_transform is
def inverse_transform(self, Xt):
self._check_is_fitted('inverse_transform')
return self.best_estimator_.transform(Xt)
Unless I'm mistaken, this should be .inverse_transform(Xt)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8344>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAEz69wCUxqHeSL4gqzwXwKAv5wLfL05ks5rbyw_gaJpZM4L-hsP>
.
|
@cstjean have you work on this issue ? |
@rishikksh20 If you want to make the PR, by all means go ahead. If not, I'll do it later this week. |
Thanks for spotting this!! |
Just curious, don't we have estimator checks that make sure that |
no, inverse_transform can only occasionally be perfect. consider the case
of feature selection. Besides, grid search is untested by common tests atm
…On 14 Feb 2017 9:02 pm, "Loïc Estève" ***@***.***> wrote:
Just curious, don't we have estimator checks that make sure that
estimator.inverse_transform(transform(X)) == X ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEz69svkP01odPTDp2NKG_OSstvI4J3ks5rcXu-gaJpZM4L-hsP>
.
|
Thanks for the answer, I kind of guessed there were subtleties involved but I figure I would ask and learn something ;-). |
Akshay0724
added a commit
to Akshay0724/scikit-learn
that referenced
this issue
Feb 17, 2017
Akshay0724
added a commit
to Akshay0724/scikit-learn
that referenced
this issue
Feb 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The delegating code for
inverse_transform
isUnless I'm mistaken, this should be
.inverse_transform(Xt)
The text was updated successfully, but these errors were encountered: