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 })