-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add Reuters-21578 dataset #147
Conversation
The dataset path in args.py was made to point at the dataset folder rather than dataset/SST folder. Hence SST folder was added to paths in the SST dataset class
# Using binary accuracy | ||
for tensor1, tensor2 in zip(scores.round().long().data, batch.label.data): | ||
print(tensor1, tensor2) | ||
if np.array_equal(tensor1, tensor2): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So your evaluation criteria is that: give full credit when it is exact match otherwise, it get zero ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. Since only one or two in 90 classes would be the positive label, I'm not sure if something like hamming score would work. The fraction of labels that are incorrectly predicted would still be too small in that case,
scores = self.model(batch.text) | ||
# Using binary accuracy | ||
for tensor1, tensor2 in zip(scores.round().long().data, batch.label.data): | ||
print(tensor1, tensor2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. I made the change, forgot to push it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I hope the commit messages are descriptive enough of the changes made. This PR is complementary to https://git.uwaterloo.ca/jimmylin/Castor-data/merge_requests/7#note_71256 in the data repository.