From de0f27b5f39c5999cb8558cbc81188e12242c9de Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Mar 2018 18:29:38 +0000 Subject: [PATCH] [Minor] Fix variable name --- lualib/rspamadm/rescore.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5