From: Vsevolod Stakhov Date: Wed, 22 Feb 2017 17:45:31 +0000 (+0000) Subject: [Minor] One more tweak to start fann learning X-Git-Tag: 1.5.0~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=782871dfcbb4324d96df4962dc821bc7378cf5c2;p=rspamd.git [Minor] One more tweak to start fann learning --- diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index f57a43466..d2351c87d 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -48,6 +48,7 @@ local redis_lua_script_can_train = [[ local nspam = 0 local nham = 0 local lim = tonumber(KEYS[4]) + lim = lim + lim * 0.1 local exists = redis.call('SISMEMBER', KEYS[1], KEYS[2]) if not exists or exists == 0 then