Tensorflow & Keras prediction threshold
问题 What is the threshold value that is used by TF by default to classify an input image as being a certain class? For example, say I have 3 classes 0 , 1 , 2 , and the labels for images are one-hot encoded like so: [1, 0, 0] , meaning this image has label of class 0. Now when a model outputs a prediction after softmax like this one: [0.39, 0.56, 0.05] does TF use 0.5 as the threshold so the class it predicts is class 1? What if all the predictions were below 0.5 like [0.33, 0.33, 0.33] what