summaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm/rescore.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/rspamadm/rescore.lua')
-rw-r--r--lualib/rspamadm/rescore.lua2
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