You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: