Skip to content

Is there a bug in skipgram part ? #24

@lunanzhao

Description

@lunanzhao

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions