From 1ef541ddffeb499b1d02340d6bc183beab4f3570 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 20 Nov 2016 21:44:33 +0100 Subject: [PATCH] Add train.sh for paddle --- .../{config.py => dataprovider.py} | 0 examples/paddle/sentiment_bilstm/train.sh | 14 ++++++++++++++ 2 files changed, 14 insertions(+) rename examples/paddle/sentiment_bilstm/{config.py => dataprovider.py} (100%) create mode 100755 examples/paddle/sentiment_bilstm/train.sh diff --git a/examples/paddle/sentiment_bilstm/config.py b/examples/paddle/sentiment_bilstm/dataprovider.py similarity index 100% rename from examples/paddle/sentiment_bilstm/config.py rename to examples/paddle/sentiment_bilstm/dataprovider.py diff --git a/examples/paddle/sentiment_bilstm/train.sh b/examples/paddle/sentiment_bilstm/train.sh new file mode 100755 index 000000000..ffc6dd4bd --- /dev/null +++ b/examples/paddle/sentiment_bilstm/train.sh @@ -0,0 +1,14 @@ +config=config.py +output=./model_output +paddle train --config=$config \ + --save_dir=$output \ + --job=train \ + --use_gpu=false \ + --trainer_count=4 \ + --num_passes=10 \ + --log_period=20 \ + --dot_period=20 \ + --show_parameter_stats_period=100 \ + --test_all_data_in_one_period=1 \ + --config_args=batch_size=100 \ + 2>&1 | tee 'train.log'_