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

Negative samples #3

Closed
snash4 opened this issue May 5, 2020 · 2 comments
Closed

Negative samples #3

snash4 opened this issue May 5, 2020 · 2 comments

Comments

@snash4
Copy link

snash4 commented May 5, 2020

Hi,
DistMult uses negative sampling for the training...
I couldn't find Negative sampling parameter in the algo.
How did you generate the negative samples and how many NS per positive triplet?

@xiaoyuxin1002
Copy link
Collaborator

This implementation of DistMult essentially considers all the nodes not linked to the targeting node as negative triplets.
You can find the corresponding codes (function name: TargetIdx2MultiTarget) in the spodernet package https://github.com/TimDettmers/spodernet/blob/master/spodernet/preprocessing/processors.py used in the implementation.
Thanks!

@snash4
Copy link
Author

snash4 commented May 5, 2020

thanks for the answer and for the quick responses.

@snash4 snash4 closed this as completed May 5, 2020
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