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

Is there a bug in skipgram part ? #24

Open
lunanzhao opened this issue Jun 21, 2018 · 0 comments
Open

Is there a bug in skipgram part ? #24

lunanzhao opened this issue Jun 21, 2018 · 0 comments

Comments

@lunanzhao
Copy link

lunanzhao commented Jun 21, 2018

In the skipgram part, when computing propagate hidden -> output , use this code :
for (c = 0; c < layer1_size; c++) f += syn0[c + l1] * syn1[c + l2]; while l1 = l1 = last_word * layer1_size; l2 = vocab[word].point[d] * layer1_size; which means the syn0 is input word , syn1 is output word.
the codes show . syn1 is the target word, syn0 is context(target word).
The skipgram is using w to predict context(w), but this code is use context(w) to predit w. is that right ?

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

1 participant