-2

use CNN for handwritten digit.

image

Sasikumar Murugesan
  • 4,412
  • 10
  • 51
  • 74
代朝阳
  • 1
  • 2

1 Answers1

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