config tweaks and fixes

This commit is contained in:
Connor Olding 2018-05-07 09:20:01 +02:00
parent ce64801368
commit 3e7aeb3c91

View file

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