I am training a model to perform a binary classification through Keras. After my model is trained, I tried evaluate it, like this:
# Evaluate the model
print('Evaluate on test data')
loss, acc = model.evaluate(X_test, y_test, verbose=2)
print('Test loss: %.4f' % loss)
print('Test accuracy: %.4f' % acc)
And I got this result:
Evaluate on test data
116/1 - 0s - loss: 0.3099 - accuracy: 0.8793
Test loss: 0.2802
Test accuracy: 0.8793
My question is, why the loss values reported are different? i.e, 0.3099
and 0.2802
? Is this some kind of bug? Or am I missing something here?