summaryrefslogtreecommitdiffstats
path: root/conf/statistic.conf
diff options
context:
space:
mode:
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