use CNN for handwritten digit.
Asked
Active
Viewed 167 times
-2
-
1Please include the stack trace as text, not an image – gilleain Dec 06 '17 at 10:22
-
You need to provide more details – Rachit Agrawal Apr 03 '18 at 12:37
1 Answers
1
Without any code it's not easy to help but in Keras > 2.0 the parameters for to_categorial are y and num_classes but it seems that you are trying to pass nb_classes instead.
For more details please check the api documentation. https://keras.io/utils/#to_categorical

Tobias Scheck
- 643
- 8
- 16
-
X_train=X_train.reshape(-1,1,28,28) X_test=X_test.reshape(-1,1,28,28) y_train=np_utils.to_categorical(y_train,nb_classes=10) y_test=np.utils.to_categorical(y_test,nb_classes=10) This is specific code – 代朝阳 Dec 06 '17 at 10:44
-
-