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

code to calculate displacement factor for every test case in predict option #1

Open
wants to merge 167 commits into
base: master
Choose a base branch
from

Conversation

unmeshvrije
Copy link
Contributor

when we use trident with ./trident predict -i location/of/trident/db --algo transe ,
For every test case (i.e. for every triple <s,p,o>, we find out

  1. all possible objects for given s and p
  2. all possible subjects for given p and o

1.1 for all objects, say we find N objects o1, o2, o3,... oN
1.2 For each object, we find its position based on transe embeddings (p1, p2, ...pN)
1.3 Then we compute avg(p1-N, p2-N,..., PN - N)

2.1 for all subjects, say we find N subjects s1, s2,... oN
2.2 For each subject, we find its position based on transe embeddings (p1, p2, ...pN)
2.3 Then we compute avg(p1-N, p2-N,..., PN - N)

@unmeshvrije unmeshvrije changed the title Unmesh added code to calculate displacement factor for every test case in predict option code to calculate displacement factor for every test case in predict option Jul 9, 2018
@unmeshvrije unmeshvrije requested a review from jrbn July 9, 2018 14:08
unmeshvrije and others added 26 commits July 10, 2018 17:41
jrbn and others added 30 commits July 8, 2019 11:19
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.

3 participants