Open brunoedcf opened 1 year ago
The logits variable gives you the probability of each class.
preds = torch.argmax(logits, dim = -1) is selecting the class with the highest value.
Yes, but what if I want the "brute" value of each probability instead of only the highest one.
For example:
12% for class A 7% for class B 0.5% for class C
@brunoedcf did you figure out how to? I think we can apply softmax on logits to get probability distribution. Any thoughts?
I have 3 classes and I want the probability of each one instead of the the higher one.