Difference between Accuracy and CategoricalAccuracy?

Greetings, I am running a text classification task that tries to classify a text as belonging to one (and only one) of 25 classes.

I’ve used two accuracy metrics: tf.keras.metrics.Accuracy(), which was set as the default on the code I’m reusing, and tf.keras.metrics.CategoricalAccuracy(), as it seemed more appropriate.

CategoricalAccuracy is reporting a fairly good result of around 0.90, but the other Accuracy is reporting only 0.17. What exactly are the differences between these two, and am I doing something wrong?

submitted by /u/Portugal_Stronk
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *