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

Unexpected arrays #5

Open
PhysBoom opened this issue Dec 1, 2018 · 1 comment
Open

Unexpected arrays #5

PhysBoom opened this issue Dec 1, 2018 · 1 comment

Comments

@PhysBoom
Copy link

PhysBoom commented Dec 1, 2018

When running the code, I got the error:
ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 array(s), but instead got the following list of 5910 arrays: [array([[0.51136364, 0.47244094, 0. ],
[0.56818182, 0.57480315, 0. ],
[0.47727273, 0.47244094, 0. ],
[0.23863636, 0.4488189 , 0. ],
[0.15909091,...

@ye-yu
Copy link

ye-yu commented Jun 2, 2019

the solution is to add

X = np.array(X)
Y = np.array(Y)

right before the model fitting

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