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

ml_steps.ipynb model_baseline requires self? #46

Open
i-namekawa opened this issue Jul 8, 2019 · 0 comments
Open

ml_steps.ipynb model_baseline requires self? #46

i-namekawa opened this issue Jul 8, 2019 · 0 comments

Comments

@i-namekawa
Copy link

In my installation (I did not use Docker as instructed, but I used Ubuntu 18.04 Anaconda Python 3.7.2), the jupyter notebook model_baseline did not make prediction due to an error expecting two args for the line below:

y_predict_baseline = model_v1.predict(df[['r', 'g', 'b']])

If I put self in the definition of predict function, the error was fixed.

 `def predict(self, X: pd.DataFrame) -> np.array:`
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