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

confused about implementation of 1-1, 1-n, n-1, n-n #6

Open
junkangwu opened this issue May 16, 2021 · 1 comment
Open

confused about implementation of 1-1, 1-n, n-1, n-n #6

junkangwu opened this issue May 16, 2021 · 1 comment

Comments

@junkangwu
Copy link

hi, thanks a lot for your work in knowledge graph completion, but I still am confused about the implementation of the table4 in your paper.

  1. as for the relation category, Following Wang et al. (2014), for each relation r, we compute the average number of tails per head (tphr) and the average number of head per tail (hptr). If tphr < 1.5 and hptr < 1.5, r is treated as one-to-one; if tphr ≥ 1.5 and hptr ≥ 1.5, r is treated as a many-to-many; if tphr < 1.5 and hptr ≥ 1.5, r is treated as one-to-many. So should we take the valid dataset and test dataset into consideration in this process? Or should we only classify them in the training dataset?
  2. take tail prediction in the 1-n relation category as an example, should we choose all 1-n relations prediction scores and take all the results into mean?

I'm confused to re-implement this part of the experiment. It would be best if you could take a script as an example. Thanks a lot in advance!

@hitmancx
Copy link

hitmancx commented Jun 8, 2021

The author seems to have confused the 1-n and n-1 data sets.

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