diff --git a/doc/howto/cmd_parameter/detail_introduction.md b/doc/howto/cmd_parameter/detail_introduction.md index 28fc5870d20e736a9166056f5b0c8b9f93594bd9..510396b629e398cef2ccda2f1cec474160693219 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 2ffc3e18d96adf90c3eac114c6bc039b78363354..99bf45d247a9c61819ba92147616cb7ff75f89fb 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)