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

Early stop #2

Open
tareksakakini opened this issue Feb 4, 2016 · 2 comments
Open

Early stop #2

tareksakakini opened this issue Feb 4, 2016 · 2 comments

Comments

@tareksakakini
Copy link

Hello Mr. Ling,

Thank you for this work.

I'm having the following issue and was wondering if you might know the reason. I'm running the following command:

./word2vec -train Corpus.txt -output vectors.bin -type 2 -size 300 -window 5 -negative 10 -nce 0 -hs 0 -sample 1e-4 -threads 8 -binary 1 -iter 5 -cap 0

And it's stopping here: Alpha: 0.047280 Progress: 5.44% Words/thread/sec: 19.99k.

I had no such issues with lower dimensions (100,200) or when training with -type 3

Thank you

@wlin12
Copy link
Owner

wlin12 commented Feb 4, 2016

Hi,

It seems that the gradients got too high at some point, try setting -cap 1, this will cap the gradients.

Wang Ling

On Feb 4, 2016, at 6:37 PM, Tarek Sakakini notifications@github.com wrote:

Hello Mr. Ling,

Thank you for this work.

I'm having the following issue and was wondering if you might know the reason. I'm running the following command:

./word2vec -train Corpus.txt -output vectors.bin -type 2 -size 300 -window 5 -negative 10 -nce 0 -hs 0 -sample 1e-4 -threads 8 -binary 1 -iter 5 -cap 0

And it's stopping here: Alpha: 0.047280 Progress: 5.44% Words/thread/sec: 19.99k.

I had no such issues with lower dimensions (100,200) or when training with -type 3

Thank you


Reply to this email directly or view it on GitHub #2.

@tareksakakini
Copy link
Author

Thank you. For now decreasing the initial step size alpha seems to be working. If it didn't work I'll try using a cap of 1.

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