I wrote this function that takes in an image and generates a prediction. The level of confidence for the prediction that the function reports is greater than 100% many times. Sometimes the prediction is correct and reports a high level of confidence. Sometimes it is incorrect and still reports a high level of confidence. Can you please help me identify the error in my level of confidence code?
Final line of model structure:
outputs = tf.keras.layers.Dense(3)(x)