After the last training epoch, I get this output:
Epoch 100/100
89254/89254 - 24s - loss: 0.1935 - acc: 0.9281 - val_loss: 0.2182 - val_acc: 0.9219
But the problem is, once I conduct model.evaluate()
on training data and validation data, I get different results:
Train accuracy: 0.929661
Validation accuracy: 0.921859
How does this make sense? And why does parameter batch_size
exist for the model.evaluate()
function despite test mode? https://keras.io/models/model/#evaluate
If I have trained the model in batches, would I need to define the batch size for test mode as well?