Skip to content

Commit 5c76b26

Browse files
authored
Merge pull request #614 from luotao1/release/v0.9.0
merge bugfix #593 and # 597 from develop branch
2 parents f3d816d + 68c5997 commit 5c76b26

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

demo/image_classification/train.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ paddle train \
2424
--test_all_data_in_one_period=1 \
2525
--use_gpu=1 \
2626
--trainer_count=1 \
27-
--num_passes=200 \
27+
--num_passes=300 \
2828
--save_dir=$output \
2929
2>&1 | tee $log
3030

demo/semantic_role_labeling/predict.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ set -e
1818
function get_best_pass() {
1919
cat $1 | grep -Pzo 'Test .*\n.*pass-.*' | \
2020
sed -r 'N;s/Test.* cost=([0-9]+\.[0-9]+).*\n.*pass-([0-9]+)/\1 \2/g' | \
21-
sort | head -n 1
21+
sort -n | head -n 1
2222
}
2323

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

29-
3029
config_file=db_lstm.py
3130
dict_file=./data/src.dict
3231
label_file=./data/tgt.dict

demo/semantic_role_labeling/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -e
1818
function get_best_pass() {
1919
cat $1 | grep -Pzo 'Test .*\n.*pass-.*' | \
2020
sed -r 'N;s/Test.* cost=([0-9]+\.[0-9]+).*\n.*pass-([0-9]+)/\1 \2/g' |\
21-
sort | head -n 1
21+
sort -n | head -n 1
2222
}
2323

2424
log=train.log
@@ -36,4 +36,5 @@ paddle train \
3636
--job=test \
3737
--use_gpu=false \
3838
--config_args=is_test=1 \
39+
--test_all_data_in_one_period=1 \
3940
2>&1 | tee 'test.log'

demo/sentiment/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -e
1717
function get_best_pass() {
1818
cat $1 | grep -Pzo 'Test .*\n.*pass-.*' | \
1919
sed -r 'N;s/Test.* classification_error_evaluator=([0-9]+\.[0-9]+).*\n.*pass-([0-9]+)/\1 \2/g' |\
20-
sort | head -n 1
20+
sort -n | head -n 1
2121
}
2222

2323
log=train.log

doc/demo/quick_start/index_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Quick Start Tutorial
1+
# Quick Start
22

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

483483
<tr>

0 commit comments

Comments
 (0)