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

Target Sample can be included in Noise sample #8

Closed
adonisues opened this issue Aug 17, 2018 · 1 comment
Closed

Target Sample can be included in Noise sample #8

adonisues opened this issue Aug 17, 2018 · 1 comment

Comments

@adonisues
Copy link

Hello. Thanks you for your NCE code in pytorch. It is very helpful.
I have some question about noise sampling.
In your code, target sample can be sampled as noise sample.
And "K" noise sample can be overlap. Is it OK ?
I think it is not valid in theory, but practically OK.
Do you have any idea for this ?

@Stonesjtu
Copy link
Owner

On the contrary, I think it's complete in theory because NCE only requires the noise distributed to mimic the real data distribution as close as possible. Removing the target word in noise samples, as well as removing redundant noise samples, could potentially distort the unigram distribution. But I actually haven't tested the effects of all these special treatments, do you have any experimental results to share?

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