-
Notifications
You must be signed in to change notification settings - Fork 116
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
Training ended after 3 epochs even though 5 epochs is given as parameter #10
Comments
Hi @attardi Is this expected behavior ? |
It is called early stopping: if there is no progress in an epoch, the train stops. |
Thank you. Is there any randomness involved while training. with same training data and same parameters, do we always get same model ? If not, how to get same model with rest remains the same ? |
If you use the same initial embeddings and the same training data, you always get the same model, since the network is initialized with random values with a fixed seed.
|
got it. |
[ec2-user@ip-172-31-54-168 deepnl-master]$ time python bin/dl-ner.py ner.dnn -t ~/data/wiki_conll2.iob --vocab ~/data/vocab.txt --vectors ~/data/vectors.txt --caps --suffix --s
uffixes ~/data/suffix.lst --gazetteer ~/data/eng.list -e 5 --variant senna -l 0.0003 -w 5 -n 300 -v
Creating capitalization features...
Generated 5 feature vectors with 5 features each.
Loading suffix list...
Generated 457 feature vectors with 5 features each.
Following is the issue:
Loading gazetteers
Generated 3 feature vectors with 5 features each.
Generated 3 feature vectors with 5 features each.
Generated 3 feature vectors with 5 features each.
Generated 3 feature vectors with 5 features each.
Creating new network...
... with the following parameters:
Starting training with 286490 sentences
Training for up to 5 epochs
.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........
+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+........
.+.........+.........+.........+.........+.........+.........+.........+.........+.........+.......
....+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.........+.......
3 epochs Examples: 20576589 Error: 0.193514 Accuracy: 0.953445 48600 corrections skipped
Saving trained model ...
... to ner.dnn
The text was updated successfully, but these errors were encountered: