I made the ML Model using the Resnet9 algorithm. In this model, I have 38 classes.
After the prediction, It returns the tuple like this:
It is returning negative values. In the above case, the highest value is -204.0966 means it has the highest chance of being the correct one.
I want to make it in percentage to see what the confidence(Accuracy) of that image. If anyone wants to see the code please tell me.
>Solution :
Try:
import torch
torch.nn.functional.softmax(model_output) * 100
