Default to 0 gradient noise

This commit is contained in:
Matthew Honnibal 2016-08-06 16:23:59 +02:00
parent d3b0447898
commit ad8f851faa

View File

@ -213,7 +213,7 @@ def _train_epoch(nlp, gold_tuples, eg_seen, itn, dev_loc, micro_eval):
neural=("Use neural network?", "flag", "N")
)
def main(train_loc, dev_loc, model_dir, n_iter=15, neural=False, batch_norm=False,
learn_rate=0.001, gradient_noise=0.1, update_step='sgd_cm'):
learn_rate=0.001, gradient_noise=0.0, update_step='sgd_cm'):
with io.open(train_loc, 'r', encoding='utf8') as file_:
train_sents = list(read_conll(file_))
# Preprocess training data here before ArcEager.get_labels() is called