From 6dfba39c96cd1d485fdf3686816b3d346675850a Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Fri, 19 May 2017 16:17:15 +0800 Subject: [PATCH] resume file in sentiment demo. --- demo/sentiment/train_v2.py | 3 +-- python/setup.py.in | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/sentiment/train_v2.py b/demo/sentiment/train_v2.py index 5151444a862..1c856556bd0 100644 --- a/demo/sentiment/train_v2.py +++ b/demo/sentiment/train_v2.py @@ -103,7 +103,7 @@ def stacked_lstm_net(input_dim, if __name__ == '__main__': # init - paddle.init(use_gpu=False, log_clipping=True) + paddle.init(use_gpu=False) #data print 'load dictionary...' @@ -131,7 +131,6 @@ if __name__ == '__main__': # create optimizer adam_optimizer = paddle.optimizer.Adam( learning_rate=2e-3, - gradient_clipping_threshold=0.003, regularization=paddle.optimizer.L2Regularization(rate=8e-4), model_average=paddle.optimizer.ModelAverage(average_window=0.5)) diff --git a/python/setup.py.in b/python/setup.py.in index 5dfb46192ae..7d9438e3f81 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -18,6 +18,7 @@ setup(name='paddle', "numpy", "protobuf==${PROTOBUF_VERSION}", "matplotlib", + "opencv-python", ], packages=packages, package_dir={ -- GitLab