scale param decay by sigma (prevents unlearning?)
This commit is contained in:
parent
31f153aec0
commit
49dfcfe5b3
1 changed files with 1 additions and 1 deletions
2
main.lua
2
main.lua
|
@ -294,7 +294,7 @@ local function learn_from_epoch()
|
|||
end
|
||||
if cfg.param_decay > 0 then
|
||||
for i, v in ipairs(base_params) do
|
||||
base_params[i] = v * (1 - es.param_rate * cfg.param_decay)
|
||||
base_params[i] = v * (1 - es.param_rate * cfg.param_decay * es.sigma)
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue