Zero accuracy training a neural network in Keras

前端 未结 5 670
别那么骄傲
别那么骄傲 2021-01-17 08:17

I train a Neural Network of Regression Problem in Keras. Why the output is only one Dimension, the accuracy in each Epoch always show acc: 0.0000e+00?

like this:

5条回答
  •  情书的邮戳
    2021-01-17 09:20

    I ran into a similar problem, after trying all the suggestions and none of them working, I figured something must be wrong somewhere else.

    After looking at my data distribution, I realized that I was not shuffling my data. So my training data was the majority of one class and my testing data was 100% another class. After shuffling the data the accuracy was no longer 0.0000e+00, it was something more meaningful.

提交回复
热议问题