提交 6dfba39c 编写于 作者: D dangqingqing

resume file in sentiment demo.

上级 fd46fe38
...@@ -103,7 +103,7 @@ def stacked_lstm_net(input_dim, ...@@ -103,7 +103,7 @@ def stacked_lstm_net(input_dim,
if __name__ == '__main__': if __name__ == '__main__':
# init # init
paddle.init(use_gpu=False, log_clipping=True) paddle.init(use_gpu=False)
#data #data
print 'load dictionary...' print 'load dictionary...'
...@@ -131,7 +131,6 @@ if __name__ == '__main__': ...@@ -131,7 +131,6 @@ if __name__ == '__main__':
# create optimizer # create optimizer
adam_optimizer = paddle.optimizer.Adam( adam_optimizer = paddle.optimizer.Adam(
learning_rate=2e-3, learning_rate=2e-3,
gradient_clipping_threshold=0.003,
regularization=paddle.optimizer.L2Regularization(rate=8e-4), regularization=paddle.optimizer.L2Regularization(rate=8e-4),
model_average=paddle.optimizer.ModelAverage(average_window=0.5)) model_average=paddle.optimizer.ModelAverage(average_window=0.5))
......
...@@ -18,6 +18,7 @@ setup(name='paddle', ...@@ -18,6 +18,7 @@ setup(name='paddle',
"numpy", "numpy",
"protobuf==${PROTOBUF_VERSION}", "protobuf==${PROTOBUF_VERSION}",
"matplotlib", "matplotlib",
"opencv-python",
], ],
packages=packages, packages=packages,
package_dir={ package_dir={
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册