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

./ex2/ex2_reg.py data format is pandas dataFrame, not numpy array. #10

Open
aerinkim opened this issue Jul 8, 2017 · 1 comment
Open

Comments

@aerinkim
Copy link

aerinkim commented Jul 8, 2017

This causes few issues like

  1. being unable to broadcast
  2. need to write different version of cost function calculation: (1-y).values.flatten() instead of (1-y)

It's better to unify the data type as numpy array to reduce confusion from users.

@aerinkim
Copy link
Author

aerinkim commented Jul 8, 2017

One quick fix would be using

from sklearn.preprocessing import PolynomialFeatures

PolynomialFeatures(6)

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

No branches or pull requests

1 participant