From e08c4b8ec1d579bf08a644a9f984b5fa1d67b58b Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Thu, 24 Nov 2016 16:24:17 +0800 Subject: [PATCH] Revise doc and some scripts for demo. --- demo/image_classification/train.sh | 2 +- demo/sentiment/test.sh | 2 +- doc/demo/quick_start/index_en.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/image_classification/train.sh b/demo/image_classification/train.sh index ed9b5220ff..db0a057bf3 100755 --- a/demo/image_classification/train.sh +++ b/demo/image_classification/train.sh @@ -24,7 +24,7 @@ paddle train \ --test_all_data_in_one_period=1 \ --use_gpu=1 \ --trainer_count=1 \ ---num_passes=200 \ +--num_passes=300 \ --save_dir=$output \ 2>&1 | tee $log diff --git a/demo/sentiment/test.sh b/demo/sentiment/test.sh index 098fbb9138..c8b12a0e89 100755 --- a/demo/sentiment/test.sh +++ b/demo/sentiment/test.sh @@ -17,7 +17,7 @@ set -e function get_best_pass() { cat $1 | grep -Pzo 'Test .*\n.*pass-.*' | \ sed -r 'N;s/Test.* classification_error_evaluator=([0-9]+\.[0-9]+).*\n.*pass-([0-9]+)/\1 \2/g' |\ - sort | head -n 1 + sort -n | head -n 1 } log=train.log diff --git a/doc/demo/quick_start/index_en.md b/doc/demo/quick_start/index_en.md index 80d816a768..659485d9be 100644 --- a/doc/demo/quick_start/index_en.md +++ b/doc/demo/quick_start/index_en.md @@ -477,7 +477,7 @@ The scripts of data downloading, network configurations, and training scrips are Word embedding 15MB 8.484% -trainer_config.bow.py +trainer_config.emb.py -- GitLab