Skip to content Skip to sidebar Skip to footer

How To Apply Softmax On An Array/vector With Huge Positive And Negative Values In Tensorflow?

I train a convolutional neural network (CNN) with MNIST data set in TensorFlow. I calculate the accuracy for each image from the MNIST test images and looking for the values of the

Solution 1:

This seems like an issue of numerical stability mentioned here. I don't think that the answer mentioned in the link will help in your case though, as the differences between your numbers are extremely large. Basically, it seems that your model predict the value of 7 with probability 0.999999999....


Post a Comment for "How To Apply Softmax On An Array/vector With Huge Positive And Negative Values In Tensorflow?"