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

embedding matrix initialization #20

Open
zyxue opened this issue Apr 4, 2018 · 1 comment
Open

embedding matrix initialization #20

zyxue opened this issue Apr 4, 2018 · 1 comment

Comments

@zyxue
Copy link

zyxue commented Apr 4, 2018

Could anyone please point me to where the embedding matrix is initialized in the code? I would like to know how it is initialized. If random, what random distribution are weights sampled from? Thank you!

@zyxue
Copy link
Author

zyxue commented Apr 4, 2018

I think it's these two lines, https://github.com/zyxue/word2vec/blob/master/src/word2vec.c#L385, is that uniform random distribution? I couldn't understand the c code very well.

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