summaryrefslogtreecommitdiffstats
path: root/conf/statistic.conf
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-10-10 09:52:08 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-10-10 09:52:08 +0200
commit89633ab46c08c1a05b7a8c6f2f0974b33bcb3f56 (patch)
treeb95d19edea86d8f46b6b0b52ec4c3e686ccc7864 /conf/statistic.conf
parentba01e88c8520cc09be7c2f0a387d76c6be04b08f (diff)
downloadrspamd-89633ab46c08c1a05b7a8c6f2f0974b33bcb3f56.tar.gz
rspamd-89633ab46c08c1a05b7a8c6f2f0974b33bcb3f56.zip
[Fix] Fix bayes learn_condition
Diffstat (limited to 'conf/statistic.conf')
-rw-r--r--conf/statistic.conf5
1 files changed, 1 insertions, 4 deletions
diff --git a/conf/statistic.conf b/conf/statistic.conf
index 17aa29d4b..26e73c4d2 100644
--- a/conf/statistic.conf
+++ b/conf/statistic.conf
@@ -56,10 +56,7 @@ return function(task, is_spam, is_unlearn)
in_class = prob <= 0.05
end
- if is_unlearn and (not in_class) then
- return false,string.format('not in class %s; probability %.2f%%',
- cl, math.abs((prob - 0.5) * 200.0))
- elseif (not is_unlearn) and in_class then
+ if in_class then
return false,string.format('already in class %s; probability %.2f%%',
cl, math.abs((prob - 0.5) * 200.0))
end