Skip to content
Advertisement

Non-zero binary accuracy but 0 accuracy in Keras classifer

I’m trying to train an LSTM classifier in TensorFlow. Here is a reproducible example

JavaScript

Using BinaryAccuracy:

JavaScript

Using Accuracy:

JavaScript

I have used the ‘Accuracy’ metric for binary classification before, can someone explain why this is happening?

Advertisement

Answer

The metric is ‘accuracy’, not ‘Accuracy’.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement