You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
The test accuracy is computed using acc = 100.*correct/total in train.py. Since both "correct" and "total" are integers, the expression returns an integer, so the test accuracy is rounded down to nearest integer.
This can be solved by using this instead: acc = 100.*correct.float()/total
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The test accuracy is computed using
acc = 100.*correct/total
intrain.py
. Since both "correct" and "total" are integers, the expression returns an integer, so the test accuracy is rounded down to nearest integer.This can be solved by using this instead:
acc = 100.*correct.float()/total
The text was updated successfully, but these errors were encountered: