model.compile(loss='categorical_crossentropy', optimizer='rmsprop')
model.fit(X_train, y_train, nb_epoch=3, batch_size=16, validation_split=0.1, show_accuracy=True, verbose=1)
Train on 19645 samples, validate on 2183 samples
Epoch 1/3
19645/19645 [==============================] - 4s - loss: 1.3710 - acc: 0.2767 - val_loss: 1.7293 - val_acc: 0.0000e+00
Epoch 2/3
19645/19645 [==============================] - 5s - loss: 1.3690 - acc: 0.2751 - val_loss: 1.6536 - val_acc: 0.0000e+00
Epoch 3/3
19645/19645 [==============================] - 5s - loss: 1.3685 - acc: 0.2771 - val_loss: 1.7274 - val_acc: 0.0000e+00
Any idea what's going on behind the scenes resulting in the 0.0000e+00 validation accuracy? Nothing appears to be NaN so I'd expect accuracy to be non-zero.
Tomi
Is your data shuffled? If not, it could it be possible that your validation set is taken from a chunk of your data where the targets are all of the same class.
--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/b287e9ac-fb45-40f5-ab2c-34639ccd2c57%40googlegroups.com.