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

Returned Y_train from load_train_data is all one #4

Open
ductri opened this issue Jan 10, 2018 · 0 comments
Open

Returned Y_train from load_train_data is all one #4

ductri opened this issue Jan 10, 2018 · 0 comments

Comments

@ductri
Copy link

ductri commented Jan 10, 2018

I think it may relate to python version, I'm using version 3.6
When I run x, y = load_train_data()
x looks ok, but y is a matrix of 1 (with shape [73257, 10]).

Then I figure the problem comes from this line:
Y_train = to_categorical(Y_train,10)
I has changed it to:
Y_train = to_categorical(Y_train[:, 0],10)
and the problem is fixed.

Hope this helpful

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