Skip to content

Commit

Permalink
fix initial best_dev_score to avoid stop training
Browse files Browse the repository at this point in the history
  • Loading branch information
taishi-i committed Dec 30, 2019
1 parent 6897b07 commit 45342af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nagisa/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _start(hp, model, train_data, test_data, dev_data):
utils.dump_data(hp, hp['HYPERPARAMS'])

decay_counter = 0
best_dev_score = 0.
best_dev_score = -1.0
indice = [i for i in range(len(train_data.ws_data))]
for e in range(1, hp['EPOCH']+1):
t = time.time()
Expand Down

0 comments on commit 45342af

Please sign in to comment.