Skip to content

Commit

Permalink
Merge pull request #614 from luotao1/release/v0.9.0
Browse files Browse the repository at this point in the history
merge bugfix #593 and # 597 from develop branch
  • Loading branch information
qingqing01 authored Nov 25, 2016
2 parents f3d816d + 68c5997 commit 5c76b26
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion demo/image_classification/train.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions demo/semantic_role_labeling/predict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ set -e
function get_best_pass() {
cat $1 | grep -Pzo 'Test .*\n.*pass-.*' | \
sed -r 'N;s/Test.* cost=([0-9]+\.[0-9]+).*\n.*pass-([0-9]+)/\1 \2/g' | \
sort | head -n 1
sort -n | head -n 1
}

log=train.log
LOG=`get_best_pass $log`
LOG=(${LOG})
best_model_path="output/pass-${LOG[1]}"


config_file=db_lstm.py
dict_file=./data/src.dict
label_file=./data/tgt.dict
Expand Down
3 changes: 2 additions & 1 deletion demo/semantic_role_labeling/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -e
function get_best_pass() {
cat $1 | grep -Pzo 'Test .*\n.*pass-.*' | \
sed -r 'N;s/Test.* cost=([0-9]+\.[0-9]+).*\n.*pass-([0-9]+)/\1 \2/g' |\
sort | head -n 1
sort -n | head -n 1
}

log=train.log
Expand All @@ -36,4 +36,5 @@ paddle train \
--job=test \
--use_gpu=false \
--config_args=is_test=1 \
--test_all_data_in_one_period=1 \
2>&1 | tee 'test.log'
2 changes: 1 addition & 1 deletion demo/sentiment/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/demo/quick_start/index_en.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Quick Start Tutorial
# Quick Start

This tutorial will teach the basics of deep learning (DL), including how to implement many different models in PaddlePaddle. You will learn how to:
- Prepare data into the standardized format that PaddlePaddle accepts.
Expand Down Expand Up @@ -477,7 +477,7 @@ The scripts of data downloading, network configurations, and training scrips are
<td class="left">Word embedding</td>
<td class="left"> 15MB </td>
<td class="left"> 8.484%</td>
<td class="left">trainer_config.bow.py</td>
<td class="left">trainer_config.emb.py</td>
</tr>

<tr>
Expand Down

0 comments on commit 5c76b26

Please sign in to comment.