Default batch size to 32

This commit is contained in:
Matthew Honnibal 2017-09-27 11:48:19 -05:00
parent 1a37a2c0a0
commit dcb86bdc43
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
util.env_opt('dropout_to', 0.2),
util.env_opt('dropout_decay', 0.0))
batch_sizes = util.compounding(util.env_opt('batch_from', 1),
util.env_opt('batch_to', 64),
util.env_opt('batch_to', 32),
util.env_opt('batch_compound', 1.001))
corpus = GoldCorpus(train_path, dev_path, limit=n_sents)
n_train_words = corpus.count_train()