aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nerv/examples/lmptb/bilstmlm_ptb_main.lua14
-rw-r--r--nerv/examples/lmptb/lstmlm_ptb_main.lua14
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)