Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#1849 from reyoung/correct_model_avera…
Browse files Browse the repository at this point in the history
…ge_usage

Correct model average settings in crf
  • Loading branch information
reyoung authored Apr 21, 2017
2 parents 2cef071 + 07de602 commit 86bc4a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/sequence_tagging/linear_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
learning_method=MomentumOptimizer(),
batch_size=batch_size,
regularization=L2Regularization(batch_size * 1e-4),
average_window=0.5,
model_average=ModelAverage(0.5),
learning_rate=1e-1,
learning_rate_decay_a=1e-5,
learning_rate_decay_b=0.25, )
Expand Down
2 changes: 1 addition & 1 deletion demo/sequence_tagging/rnn_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
learning_method=MomentumOptimizer(),
batch_size=batch_size,
regularization=L2Regularization(batch_size * 1e-5),
average_window=0.5,
model_average=ModelAverage(0.5),
learning_rate=2e-3,
learning_rate_decay_a=5e-7,
learning_rate_decay_b=0.5, )
Expand Down

0 comments on commit 86bc4a6

Please sign in to comment.