From ea0e37892ae70357305da3b1fbae617215a25778 Mon Sep 17 00:00:00 2001 From: txh18 Date: Sat, 5 Dec 2015 19:04:11 +0800 Subject: small bug fix in lm training script --- nerv/examples/lmptb/bilstmlm_ptb_main.lua | 14 +++++++------- nerv/examples/lmptb/lstmlm_ptb_main.lua | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/nerv/examples/lmptb/bilstmlm_ptb_main.lua b/nerv/examples/lmptb/bilstmlm_ptb_main.lua index 48bc636..9100d0d 100644 --- a/nerv/examples/lmptb/bilstmlm_ptb_main.lua +++ b/nerv/examples/lmptb/bilstmlm_ptb_main.lua @@ -346,12 +346,12 @@ global_conf = { end -local lr_half = false --can not be local, to be set by loadstring -local start_iter = -1 -local ppl_last = 100000 -local commands_str = "train:test" -local commands = {} -local test_iter = -1 +lr_half = false --can not be local, to be set by loadstring +start_iter = -1 +ppl_last = 100000 +commands_str = "train:test" +commands = {} +test_iter = -1 --for testout(question) local q_file = "ptb.test.txt.q10rs1_Msss.adds" @@ -393,7 +393,7 @@ nerv.printf("%s printing training scheduling options...\n", global_conf.sche_log nerv.printf("lr_half:\t%s\n", tostring(lr_half)) nerv.printf("start_iter:\t%s\n", tostring(start_iter)) nerv.printf("ppl_last:\t%s\n", tostring(ppl_last)) -nerv.printf("commds_str:\t%s\n", commands_str) +nerv.printf("commands_str:\t%s\n", commands_str) nerv.printf("test_iter:\t%s\n", tostring(test_iter)) nerv.printf("%s printing training scheduling end.\n", global_conf.sche_log_pre) nerv.LMUtil.wait(2) diff --git a/nerv/examples/lmptb/lstmlm_ptb_main.lua b/nerv/examples/lmptb/lstmlm_ptb_main.lua index 887993d..2751ec8 100644 --- a/nerv/examples/lmptb/lstmlm_ptb_main.lua +++ b/nerv/examples/lmptb/lstmlm_ptb_main.lua @@ -331,12 +331,12 @@ global_conf = { end -local lr_half = false --can not be local, to be set by loadstring -local start_iter = -1 -local ppl_last = 100000 -local commands_str = "train:test" -local commands = {} -local test_iter = -1 +lr_half = false --can not be local, to be set by loadstring +start_iter = -1 +ppl_last = 100000 +commands_str = "train:test" +commands = {} +test_iter = -1 --for testout(question) local q_file = "ptb.test.txt.q10rs1_Msss.adds" @@ -378,7 +378,7 @@ nerv.printf("%s printing training scheduling options...\n", global_conf.sche_log nerv.printf("lr_half:\t%s\n", tostring(lr_half)) nerv.printf("start_iter:\t%s\n", tostring(start_iter)) nerv.printf("ppl_last:\t%s\n", tostring(ppl_last)) -nerv.printf("commds_str:\t%s\n", commands_str) +nerv.printf("commands_str:\t%s\n", commands_str) nerv.printf("test_iter:\t%s\n", tostring(test_iter)) nerv.printf("%s printing training scheduling end.\n", global_conf.sche_log_pre) nerv.LMUtil.wait(2) -- cgit v1.2.3-70-g09d2