From e1b7f3ec0acfec7c9c9b4980d7cb77d0066d86d4 Mon Sep 17 00:00:00 2001 From: livc Date: Tue, 25 Apr 2017 11:13:21 +0800 Subject: [PATCH] Correct model average settings in sentiment --- demo/sentiment/trainer_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/sentiment/trainer_config.py b/demo/sentiment/trainer_config.py index 2defecd178..f1cadaa728 100644 --- a/demo/sentiment/trainer_config.py +++ b/demo/sentiment/trainer_config.py @@ -29,7 +29,7 @@ settings( batch_size=128, learning_rate=2e-3, learning_method=AdamOptimizer(), - average_window=0.5, + model_average=ModelAverage(0.5), regularization=L2Regularization(8e-4), gradient_clipping_threshold=25) -- GitLab