From 1f2423a9191dc13ada9b97b29699b6d7bd57dda9 Mon Sep 17 00:00:00 2001 From: wangyanfei01 Date: Mon, 5 Dec 2016 15:22:53 +0800 Subject: [PATCH] follow comments: more docs --- doc/howto/cmd_parameter/detail_introduction.md | 2 +- paddle/trainer/Trainer.cpp | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/howto/cmd_parameter/detail_introduction.md b/doc/howto/cmd_parameter/detail_introduction.md index 28fc5870d20..510396b629e 100644 --- a/doc/howto/cmd_parameter/detail_introduction.md +++ b/doc/howto/cmd_parameter/detail_introduction.md @@ -110,7 +110,7 @@ - type: int32 (default: -1). * `--test_period` - - if equal 0, do test on all test data at the end of each pass while if equal non-zero, do test on all test data once each test_period batches passed while training is going on. + - if equal 0, do test on all test data at the end of each pass. While if equal non-zero, do test on all test data every test_period batches. - type: int32 (default: 0). * `--test_wait` diff --git a/paddle/trainer/Trainer.cpp b/paddle/trainer/Trainer.cpp index 2ffc3e18d96..99bf45d247a 100644 --- a/paddle/trainer/Trainer.cpp +++ b/paddle/trainer/Trainer.cpp @@ -42,9 +42,8 @@ P_DEFINE_string(config, "", "Trainer config file"); P_DEFINE_int32(test_period, 0, "if equal 0, do test on all test data at the end of " - "each pass while if equal non-zero, do test on all test " - "data once each test_period batches passed while " - "training is going on"); + "each pass. While if equal non-zero, do test on all test " + "data every test_period batches"); P_DEFINE_bool(test_all_data_in_one_period, false, "This option was deprecated, since we will always do " "test on all test set "); @@ -634,9 +633,8 @@ std::unique_ptr Trainer::createTesterConfig() { LOG(WARNING) << "The meaning of --test_period is changed: " << "if equal 0, do test on all test data at the end of " - << "each pass while if equal non-zero, do test on all test " - << "data once each test_period batches passed while " - << "training is going on"; + << "each pass. While if equal non-zero, do test on all test " + << "data every test_period batches "; } if (FLAGS_test_all_data_in_one_period) { LOG(WARNING) -- GitLab