Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hey should 'correct' only be if the final prediction was correct? Same for accuracy? #15

Open
colinator opened this issue Sep 19, 2020 · 1 comment

Comments

@colinator
Copy link

correct1 = torch.sum(torch.eq(torch.argmax(self.softmax(total), dim=0), torch.arange(0, batch))) # correct is a tensor

Meaning, should that correct variable be += ?

@NeteeraAF
Copy link

I noticed that too.

I think you're right, and after the loop over the timesteps, the sum should be divided by batch_size*num_of_timesteps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants