From e53fd5ab0ce04b6eddb7ef24a1fccfd013c705d0 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Fri, 6 May 2016 09:07:36 +0300 Subject: [PATCH] [Minor] Fix percent sign in statistics learning condition --- conf/statistic.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/statistic.conf b/conf/statistic.conf index e574d0027..5d3e1d7f2 100644 --- a/conf/statistic.conf +++ b/conf/statistic.conf @@ -57,10 +57,10 @@ return function(task, is_spam, is_unlearn) end if is_unlearn and (not in_class) then - return false,string.format('not in class %s; probability %.2f%%', + 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 - return false,string.format('already in class %s; probability %.2f%%', + return false,string.format('already in class %s; probability %.2f%%%%', cl, math.abs((prob - 0.5) * 200.0)) end end -- 2.39.5