distillation icon indicating copy to clipboard operation
distillation copied to clipboard

IndexError: index 26 is out of bounds for axis 1 with size 26

Open molyswu opened this issue 6 years ago • 1 comments

Hi, I try to "python3.6 train.py --file /disk2/wts/distillation/distillation/data/matlab/emnist-letters.mat --model cnn"

IndexError: index 26 is out of bounds for axis 1 with size 26

Thanks for you!

molyswu avatar May 24 '18 01:05 molyswu

y_train = to_categorical(y_train-1, nb_classes)
y_test = to_categorical(y_test-1, nb_classes)

source: https://github.com/rstudio/keras/issues/53

Good luck :-)

CBHealth avatar Apr 24 '19 13:04 CBHealth