03-pytorch_computer_vision: question about calculating test accuracy (timestamp = 16:08:10) #152
Replies: 2 comments
-
|
I specifically came here to ask the same question. Looking at output format of y_pred=Model(X), it seems softmax() and argmax() need to be applied first? y_pred and y are definitely not the same format. |
Beta Was this translation helpful? Give feedback.
-
|
Hey @davidfelipeb, Yes, you're right that is a valid option: logits -> prediction probabilities ( But you can actually skip the middle step: logits -> labels ( Confusing, yes. The first option is probably more right. The second option is more of a shortcut. However, you'll notice they both give the same results. You could try experimenting using it and not using it and seeing what happens. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Thanks for this videos, they are really helpful! I have a question regarding the calculation of test accuracy in the
FashionMNISTModelV0. In the video (see exact timestamp in title), you say that we should doin order to correctly calculate the accuracy, that is because the variable
test_predcontains logits, and not label predictions, and hence we should apply theargmaxvalues on them. My question is: shouldn't we first converttest_predfrom logits to prediction probabilities and then use argmax to find the maximum value? Something like this:Or am I missing something here? Thanks for any help provided!
Beta Was this translation helpful? Give feedback.
All reactions