From d0c999e0ad26c0c8565b1fe119fd5761adac3a33 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 20 Nov 2016 23:24:51 +0100 Subject: [PATCH] Add config.py for paddle example --- examples/paddle/sentiment_bilstm/config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/paddle/sentiment_bilstm/config.py diff --git a/examples/paddle/sentiment_bilstm/config.py b/examples/paddle/sentiment_bilstm/config.py new file mode 100644 index 000000000..311359f2c --- /dev/null +++ b/examples/paddle/sentiment_bilstm/config.py @@ -0,0 +1,14 @@ +from paddle.trainer_config_helpers import * + +define_py_data_sources2(train_list='train.list', + test_list='test.list', + module="dataprovider", + obj="process") + +settings( + batch_size=128, + learning_rate=2e-3, + learning_method=AdamOptimizer(), + regularization=L2Regularization(8e-4), + gradient_clipping_threshold=25 +)