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

关于hard negative samples的问题 #1

Closed
Chunwei-Wu opened this issue Jan 14, 2021 · 1 comment
Closed

关于hard negative samples的问题 #1

Chunwei-Wu opened this issue Jan 14, 2021 · 1 comment

Comments

@Chunwei-Wu
Copy link

作者您好,非常感谢您能公布代码。

在您论文Hard Sampling Strategy部分提到N_neg(i) = NM(i) − N (i),并且background set B(i) = N_neg(i) ∪ Nh(i)。但是在objective.py中background set只是减去了self_sim。

@WangFeng18
Copy link
Owner

Sorry for the late reply.
Thanks for the detailed observation. In our paper, we have stated in the end of 3.2 that we use the Nm(i) to approximate B(i), due to the computation inefficiency of set operation which will break the parallelism in GPU.
image
Feng.

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