diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-10-10 09:52:08 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-10-10 09:52:08 +0200 |
commit | 89633ab46c08c1a05b7a8c6f2f0974b33bcb3f56 (patch) | |
tree | b95d19edea86d8f46b6b0b52ec4c3e686ccc7864 /conf/statistic.conf | |
parent | ba01e88c8520cc09be7c2f0a387d76c6be04b08f (diff) | |
download | rspamd-89633ab46c08c1a05b7a8c6f2f0974b33bcb3f56.tar.gz rspamd-89633ab46c08c1a05b7a8c6f2f0974b33bcb3f56.zip |
[Fix] Fix bayes learn_condition
Diffstat (limited to 'conf/statistic.conf')
-rw-r--r-- | conf/statistic.conf | 5 |
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 |