From 7256cbe1de900906f7c3be5d34a75a9ae5176978 Mon Sep 17 00:00:00 2001 From: Kexin Zhao Date: Fri, 20 Oct 2017 14:11:50 -0700 Subject: [PATCH] add default value to epsilon --- python/paddle/v2/framework/optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/framework/optimizer.py b/python/paddle/v2/framework/optimizer.py index 51d435668ce..ba2713e34db 100644 --- a/python/paddle/v2/framework/optimizer.py +++ b/python/paddle/v2/framework/optimizer.py @@ -279,7 +279,7 @@ class AdagradOptimizer(Optimizer): """ _moment_acc_str = "moment" - def __init__(self, learning_rate, epsilon): + def __init__(self, learning_rate, epsilon=1.0e-6): assert learning_rate is not None assert epsilon is not None super(AdagradOptimizer, self).__init__() -- GitLab