diff options
author | txh18 <cloudygooseg@gmail.com> | 2015-11-10 15:44:08 +0800 |
---|---|---|
committer | txh18 <cloudygooseg@gmail.com> | 2015-11-10 15:44:08 +0800 |
commit | 8f8ad5da3d178bdd74c76cea37946f5c950ed5c0 (patch) | |
tree | c10db183df8cfb01bb03334633928a1051b7d866 /nerv/examples/lmptb/m-tests | |
parent | 12fb5f1f473a04fc2472ce5cc9273ba1afa6176d (diff) |
bug fix : changed zero-filling across borders
Diffstat (limited to 'nerv/examples/lmptb/m-tests')
-rw-r--r-- | nerv/examples/lmptb/m-tests/tnn_test.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nerv/examples/lmptb/m-tests/tnn_test.lua b/nerv/examples/lmptb/m-tests/tnn_test.lua index ac9f570..40e332c 100644 --- a/nerv/examples/lmptb/m-tests/tnn_test.lua +++ b/nerv/examples/lmptb/m-tests/tnn_test.lua @@ -297,6 +297,7 @@ prepare_parameters(global_conf, true) --randomly generate parameters print("===INITIAL VALIDATION===") local tnn, paramRepo = load_net(global_conf) local result = lm_process_file(global_conf, global_conf.valid_fn, tnn, false) --false update! +nerv.LMUtil.wait(3) ppl_rec = {} lr_rec = {} ppl_rec[0] = result:ppl_net("rnn") ppl_last = ppl_rec[0] @@ -316,7 +317,7 @@ for iter = 1, global_conf.max_iter, 1 do ppl_rec[iter] = result:ppl_net("rnn") lr_rec[iter] = global_conf.lrate if (ppl_last / ppl_rec[iter] < 1.03 or lr_half == true) then - global_conf.lrate = (global_conf.lrate / 2) + global_conf.lrate = (global_conf.lrate * 0.6) lr_half = true end if (ppl_rec[iter] < ppl_last) then |