word2vec icon indicating copy to clipboard operation
word2vec copied to clipboard

Is there a bug in skipgram part ?

Open lunanzhao opened this issue 7 years ago • 0 comments

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 ?

lunanzhao avatar Jun 21 '18 06:06 lunanzhao