Decay learn rate for parser

This commit is contained in:
Matthew Honnibal 2016-09-04 16:57:10 +02:00
parent 2bfe184692
commit cf2131d649

View File

@ -12,6 +12,7 @@ import time
import gzip
import re
import numpy
from math import sqrt
import plac
import cProfile
@ -211,6 +212,7 @@ def _train_epoch(nlp, gold_tuples, eg_seen, itn, dev_loc, micro_eval):
train_uas, dev_uas,
nr_weight, nr_feat))
loss = 0
nlp.parser.model.learn_rate *= 0.99
return eg_seen