diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-06 18:29:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-06 18:29:38 +0000 |
commit | de0f27b5f39c5999cb8558cbc81188e12242c9de (patch) | |
tree | 2f6f71e70800680272deb5b2cd1e4ca1f994b7ad /lualib/rspamadm | |
parent | e1901b85b62d1c7c49045b770bf017e03f5ee7b8 (diff) | |
download | rspamd-de0f27b5f39c5999cb8558cbc81188e12242c9de.tar.gz rspamd-de0f27b5f39c5999cb8558cbc81188e12242c9de.zip |
[Minor] Fix variable name
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r-- | lualib/rspamadm/rescore.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/rspamadm/rescore.lua b/lualib/rspamadm/rescore.lua index c1b7a620e..16b7cf8b8 100644 --- a/lualib/rspamadm/rescore.lua +++ b/lualib/rspamadm/rescore.lua @@ -269,7 +269,7 @@ local function train(dataset, opt, model, criterion, epoch, -- penalties (L1 and L2): local l1 = tonumber(opt.l1) or 0 - local l2 = tonumber(opt.l1) or 0 + local l2 = tonumber(opt.l2) or 0 if l1 ~= 0 or l2 ~= 0 then -- locals: local norm,sign= torch.norm,torch.sign |