I cant find proper description of metrics outputs.
For example if I use
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
then I get loss and accuracy tr_loss, tr_acc = model.train_on_batch(X, Y)
if I compile with metrics=['categorical_accuracy'] then I get 2 numbers as well,
but what are they ?
EDIT: I did this: print(model.metrics_names) and got: ['loss', 'categorical_accuracy']
The
accuracymetric is actually a placeholder and keras chooses the appropriate accuracy metric for you, betweenbinary_accuracyif you usebinary_crossentropyloss, andcategorical_accuracyif you usecategorical_crossentropyloss.So in this specific case, both metrics (
accuracyandcategorical_accuracy) are literally the same, andmodel.evaluatereturn loss and accuracy.