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

Code to handle polynomial regression without adding sinusoid features #11

Merged
merged 1 commit into from Jan 10, 2019
Merged

Conversation

buck06191
Copy link

Issue #10 fixed by adding conditionals to check if both datasets in add_polynomials have a column. In the case where there is only one column of data passed, this column alone is used to generate polynomial features.

@trekhleb trekhleb changed the base branch from master to issue-10 January 10, 2019 11:21
@trekhleb
Copy link
Owner

Thank you for PR @buck06191

@trekhleb trekhleb merged commit c8c2639 into trekhleb:issue-10 Jan 10, 2019
@trekhleb
Copy link
Owner

@buck06191 I've refactored add_polynomials() function a bit. Could you please take a look at its current implementation? I guess it should fix the issue you were trying to solve.

@buck06191
Copy link
Author

Hey @trekhleb - yeah that fixes what I was trying to solve but in a much more robust and testable format. Good inspiration for my own work!

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.

None yet

2 participants