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

Different test results when logging training accuracy #141

Open
blazejdolicki opened this issue Apr 16, 2020 · 0 comments
Open

Different test results when logging training accuracy #141

blazejdolicki opened this issue Apr 16, 2020 · 0 comments

Comments

@blazejdolicki
Copy link

I really liked the paper and I'm glad the code is published, but I have one minor problem.
When evaluating the model on a text classification task, I wanted to print not only validation accuracy but also training acc. To do that I added a line "corr_train, nbex_train = net.TestCorpus(train_loader, 'Train')" before line 247 in sent_classif.py. Surprisingly enough, after adding that line the results (on the test set) has changed. I am new to Pytorch, so I'm probably overlooking something, but I can't understand why adding this line has such impact. Would be great to hear if you have any idea @hoschwenk

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

1 participant