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

model.predict => AttributeError: 'list' object has no attribute 'shape' #85

Closed
icefoxhz opened this issue Sep 2, 2020 · 2 comments
Closed

Comments

@icefoxhz
Copy link

icefoxhz commented Sep 2, 2020

pred_results = model.predict(pred_coords, pred_X, scale, residuals)

pred_coords is a list, must modify the code as follows:

image

@ljwolf
Copy link
Member

ljwolf commented Sep 2, 2020

Please use numpy arrays for input (X, y, and coordinates). Lists are not supported.

@icefoxhz
Copy link
Author

icefoxhz commented Sep 3, 2020

ok , thanks

@icefoxhz icefoxhz closed this as completed Sep 3, 2020
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

2 participants