Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Machine Learning by (4k points)
Every time I use binary_crossentropy there's ~80% acc and when I use categorical_crossentrop there's ~50% acc. And I am doing it to train a CNN categorize text by topic.

What do these results actually mean, which one should I use?

1 Answer

0 votes
by (108k points)

The accuracy calculated from the Keras method evaluation is wrong when using binary_crossentropy when you are using more than 2 labels. You can verify that by recomputing the accuracy yourself. For that, you have to first call the Keras function named "predict" and then calculate the number of correct answers returned by predict. You will get the true accuracy, which is much lower than the Keras "evaluate" one.

For more information regarding the same, do refer to the Machine Learning course.

Browse Categories

...