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

Add Reuters-21578 dataset #147

Merged
merged 7 commits into from
Oct 3, 2018
Merged

Add Reuters-21578 dataset #147

merged 7 commits into from
Oct 3, 2018

Conversation

achyudh
Copy link
Member

@achyudh achyudh commented Sep 25, 2018

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.

@daemon daemon requested review from daemon and Impavidity and removed request for daemon September 25, 2018 15:15
# Using binary accuracy
for tensor1, tensor2 in zip(scores.round().long().data, batch.label.data):
print(tensor1, tensor2)
if np.array_equal(tensor1, tensor2):
Copy link
Member

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 ?

Copy link
Member Author

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Copy link
Member Author

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.

Copy link
Member

@Impavidity Impavidity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Impavidity Impavidity merged commit 1b817d3 into castorini:master Oct 3, 2018
@achyudh achyudh changed the title WIP: Add Reuters-21578 dataset Add Reuters-21578 dataset Oct 3, 2018
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

Successfully merging this pull request may close these issues.

2 participants