config tweaks and fixes
This commit is contained in:
parent
ce64801368
commit
3e7aeb3c91
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,8 @@ local common_cfg = {
|
||||||
det_epsilon = false, -- take random actions with probability eps.
|
det_epsilon = false, -- take random actions with probability eps.
|
||||||
layernorm = false,
|
layernorm = false,
|
||||||
|
|
||||||
|
learning_rate = 1.0,
|
||||||
|
|
||||||
init_zeros = true, -- instead of he_normal noise or whatever.
|
init_zeros = true, -- instead of he_normal noise or whatever.
|
||||||
graycode = false,
|
graycode = false,
|
||||||
unperturbed_trial = true, -- do a trial without any noise.
|
unperturbed_trial = true, -- do a trial without any noise.
|
||||||
|
@ -65,7 +67,9 @@ local cfg = {
|
||||||
setmetatable(cfg, {
|
setmetatable(cfg, {
|
||||||
__index = function(t, n)
|
__index = function(t, n)
|
||||||
if common_cfg[n] ~= nil then return common_cfg[n] end
|
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 == 'params_fn' then return nil end
|
||||||
|
if n == 'stats_fn' then return nil end
|
||||||
error("cannot use undeclared config '" .. tostring(n) .. "'", 2)
|
error("cannot use undeclared config '" .. tostring(n) .. "'", 2)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue