I am implementing a neural network classifier to print out the loss and accuracy of this NN, which I use:
score = model.evaluate(x_test, y_test, verbose=False)
model.metrics_names
print('Test score: ', score[0])
print('Test accuracy: ', score[1])
I would like to know how Keras calculates the loss of a model. Especially if it is evaluated in the first (and only) step of the test suite. I have a search on keras.io but I haven't found anything about it.
source
share