The conversation between human and AI assistant.
How do I use a training set combined with confidence level to classify the samples in a test set?
How do I calculate the confidence level for each prediction?
One way to do this is to use the probability that the model calculates for each class. For example, if the model predicts that an image belongs to class A with probability 0.8 and class B with probability 0.2, you can say that the confidence level for that prediction is 0.8.