]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Reduce the default thresholds for learning
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 May 2016 09:05:15 +0000 (10:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 6 May 2016 09:05:15 +0000 (10:05 +0100)
Issue: #624
Reported by: @moisseev

conf/statistic.conf

index e574d00271a8913872a469026bfbfa4ad010de72..513b0c5102360c4842af52f3608e7d4ea3e97788 100644 (file)
@@ -50,10 +50,10 @@ return function(task, is_spam, is_unlearn)
     local cl
     if is_spam then
       cl = 'spam'
-      in_class = prob >= 0.9
+      in_class = prob >= 0.95
     else
       cl = 'ham'
-      in_class = prob <= 0.1
+      in_class = prob <= 0.05
     end
 
     if is_unlearn and (not in_class) then