From 3e7aeb3c91ad5630fd1a3fded045d97263edf171 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 7 May 2018 09:20:01 +0200 Subject: [PATCH] config tweaks and fixes --- config.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.lua b/config.lua index 01c3d6c..f890e10 100644 --- a/config.lua +++ b/config.lua @@ -26,6 +26,8 @@ local common_cfg = { det_epsilon = false, -- take random actions with probability eps. layernorm = false, + learning_rate = 1.0, + init_zeros = true, -- instead of he_normal noise or whatever. graycode = false, unperturbed_trial = true, -- do a trial without any noise. @@ -65,7 +67,9 @@ local cfg = { setmetatable(cfg, { __index = function(t, n) if common_cfg[n] ~= nil then return common_cfg[n] end + if n == 'log_fn' then return nil end if n == 'params_fn' then return nil end + if n == 'stats_fn' then return nil end error("cannot use undeclared config '" .. tostring(n) .. "'", 2) end })