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

Ask about ConvE model #49

Open
oathaha opened this issue Jul 4, 2019 · 3 comments
Open

Ask about ConvE model #49

oathaha opened this issue Jul 4, 2019 · 3 comments
Labels

Comments

@oathaha
Copy link

oathaha commented Jul 4, 2019

I tried to follow code based on concept in the paper but I did not find any code that does dot product with object entity. Can you tell me where is object entity being fed during forward propagation?

@TimDettmers
Copy link
Owner

TimDettmers commented Jul 4, 2019

ConvE uses 1-N scoring, meaning that we take the subject and relation and score it against all other objects at once (subject, relation, E). This is done by multiplying by the transpose of the entire entity matrix. You can find the relevant line in the code in model.py in line 120.

@YuyangWei
Copy link

Hi!
You multiplied [subject, relation] by the transpose of the entire entity matrix, but I wonder how you supervise the learning process of the convolutional network? I am looking forward to your kind reply!

@thsno02
Copy link

thsno02 commented May 10, 2022

ConvE uses 1-N scoring, meaning that we take the subject and relation and score it against all other objects at once (subject, relation, E). This is done by multiplying by the transpose of the entire entity matrix. You can find the relevant line in the code in model.py in line 120.

Hi Tim,

Did you mean 1-N scoring trick is to compute the scores in the matrix multiplication manner instead of vector multiplication? If it is, why 1-N can boost the training pass as u mentioned in the paper (Fast Evaluation paragraph 2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants