No need for this line "test_pred = torch.softmax(test_logits, dim=1).argmax(dim=1)" in traning loop for the model #1044
aryamahadik
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hey @aryamahadik , You are correct, there is no need to add that line:
In the testing loop. You could do the same with:
This will give you the same result. However, if you want prediction probabilities, you can use:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As the work of softmax function to classify the output so there is no need to add "test_pred = torch.softmax(test_logits, dim=1).argmax(dim=1)" this line in traning loop, nothing to do with this line in the loop! if iam wrong pls corret me.
Beta Was this translation helpful? Give feedback.
All reactions