Zero accuracy training a neural network in Keras

前端 未结 5 675
别那么骄傲
别那么骄傲 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:17

    There can be few issues with your model, Check and fix

    1. Check your batch_size if it's too large or too small
    2. Check if the learning rate is too high or low
    3. if it's text dataset, check the length of sentences, if too large then trim with an average length
    4. Check if there are NaN values in your dataset, fix it
    5. Check if the dataset doesn't contain special symbols or characters
    6. If values are continuous, Normalize it before sending to the network ( check batch normalization )
    7. Try regularization techniques
    8. Check the activation functions
    9. Shuffle the data

提交回复
热议问题