modify test (anyway)
@@ -90,6 +90,8 @@ function init_test(){
DATASET_FORMAT_NUMBER=$5
TRAINING_DATASET_PATH=$6
VALIDATION_DATASET_PATH=$7
+ INITIAL_LEARNING_RATE=$8
+ TRAINING_LEARNING_RATE=$9
CONFIG_NAME=${TEST_CONFIG_PREFIX}_${TEST_CASE}
TEST_YML_CONFIG_FILE=./tests/config/${TEST_CASE}.yml
echo "## Test of ${TEST_CASE}"
@@ -126,6 +128,10 @@ function init_test(){
send \"\n\"
expect \"how many epochs do you run training (integer):\"
send \"\b\b\b1\n\"
+ expect \"initial learning rate:\"
+ send \"${INITIAL_LEARNING_RATE}\n\"
+ expect \"choose learning rate setting(tune1 / tune2 / tune3 / fixed):\"
+ send \"${TRAINING_LEARNING_RATE}\n\"
expect \"Next step:\"
" > /dev/null
assert $? 0
@@ -211,7 +217,9 @@ if [ "${YML_CONFIG_FILE}" == "" ]; then
do
TRAINING_DATASET_PATH=$(get_yaml_param train_path tests/config/${TEST_CASE}.yml)
VALIDATION_DATASET_PATH=$(get_yaml_param test_path tests/config/${TEST_CASE}.yml)
- init_test ${TEST_CASE} ${TASK_TYPE_NUMBER} 1 1 ${DATASET_FORMAT_NUMBER} ${TRAINING_DATASET_PATH} ${VALIDATION_DATASET_PATH}
+ INTIAL_LEARNING_RATE=$(get_yaml_param initial_leraning_rate tests/config/${TEST_CASE}.yml)
+ TRAINING_LEARNING_RATE=$(get_yaml_param training_leraning_rate tests/config/${TEST_CASE}.yml)
+ init_test ${TEST_CASE} ${TASK_TYPE_NUMBER} 1 1 ${DATASET_FORMAT_NUMBER} ${TRAINING_DATASET_PATH} ${VALIDATION_DATASET_PATH} ${INITIAL_LEARNING_RATE} ${TRAINING_LEARNING_RATE}
basic_test
if [ ${ADDITIONAL_TEST_FLAG} -eq 0 ]; then
# Run additional test only once
@@ -241,3 +249,4 @@ else
show_error_log
clean_exit 1
fi
+
