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

Evaluation scheme for larger KBs #93

Closed
vardaan123 opened this issue May 15, 2020 · 4 comments
Closed

Evaluation scheme for larger KBs #93

vardaan123 opened this issue May 15, 2020 · 4 comments

Comments

@vardaan123
Copy link

vardaan123 commented May 15, 2020

In the paper, section 5.3, it is mentioned that for the entire Freebase KB, you use a modified evaluation strategy in which

we use only 2000 negative triplets; 1000 sampled uniformly from the entire set of negative
samples and 1000 sampled proportionally to the degree of the corrupted entities;

Is this evaluation supported in the dgl-ke library? If so, which arguments can be used to enable this?

@classicsong
Copy link
Contributor

you can use this argument --neg_sample_size_eval=1000 and neg_deg_sample_eval=True

@vardaan123
Copy link
Author

Thanks for your response!

@vardaan123
Copy link
Author

Hi, for evaluation, I understand that the corrupted entities are a mix of uniformly sampled entities and those sampled based on degree (if I use --neg_sample_size_eval=1000 and neg_deg_sample_eval=True). Is there a way if I want to use just degree-based sampling and no uniformly sampled negative triples for evaluation?

@vardaan123 vardaan123 reopened this Jan 14, 2021
@classicsong
Copy link
Contributor

Currently, it does not support certain sampling method. You have to implement it your self.

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