Skip to content
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

[MRG] Bug-Fix in Polynomial-Features #417

Merged
merged 2 commits into from
Oct 30, 2018

Conversation

datajanko
Copy link
Contributor

While working on #366 I realized that the PolynomialFeatures transformer does not respect the passed parameters correctly. The PR fixes this and provides a test

@jrbourbeau
Copy link
Member

Opened dask/dask-glm#72 in relation to some of the test failures here. Usage of dask.set_options and get= in dask-glm are causing errors to be raised here.

@jrbourbeau jrbourbeau mentioned this pull request Oct 23, 2018
@datajanko
Copy link
Contributor Author

I'll rebase hopefully, later today

@jrbourbeau
Copy link
Member

@datajanko it should be okay to rebase now, the errors showing up here have been fixed in master. Thanks for your patience.

J42994 added 2 commits October 25, 2018 21:52
parameters are not recognized during fitting
@datajanko datajanko changed the title Bug-Fix in Polynomial-Features [MRG] Bug-Fix in Polynomial-Features Oct 25, 2018
@datajanko datajanko changed the title [MRG] Bug-Fix in Polynomial-Features [MRG] ,Bug-Fix in Polynomial-Features Oct 25, 2018
@datajanko datajanko changed the title [MRG] ,Bug-Fix in Polynomial-Features [MRG] Bug-Fix in Polynomial-Features Oct 26, 2018
degree=self.degree,
interaction_only=self.interaction_only,
include_bias=self.include_bias,
)
Copy link
Contributor Author

@datajanko datajanko Oct 26, 2018

Choose a reason for hiding this comment

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

can this be made more elegant using super?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so. We're composing our class with a separate scikit-learn PolynomialFeatures. Using super would be a way to call a method of the parent class, passing ourself as the self.

@TomAugspurger TomAugspurger merged commit 33c9438 into dask:master Oct 30, 2018
@TomAugspurger
Copy link
Member

Thanks for the patience with the CI.

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.

3 participants