]> source.dussan.org Git - rspamd.git/commitdiff
[Conf] Show autolearn sample
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Jul 2019 14:05:26 +0000 (15:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 24 Jul 2019 14:05:26 +0000 (15:05 +0100)
conf/statistic.conf

index 396564a2349c98f636c16cdfd7dfe18b8dab244d..0d76cd399319b5cffd8e60c0e884188b5a521fb2 100644 (file)
@@ -43,6 +43,14 @@ classifier "bayes" {
   }
   learn_condition = 'return require("lua_bayes_learn").can_learn';
 
+  # Autolearn sample
+  # autolearn {
+  #  spam_threshold = 6.0; # When to learn spam (score >= threshold)
+  #  ham_threshold = -0.5; # When to learn ham (score <= threshold)
+  #  check_balance = true; # Check spam and ham balance
+  #  min_balance = 0.9; # Keep diff for spam/ham learns for at least this value
+  #}
+
   .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/classifier-bayes.conf"
   .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/classifier-bayes.conf"
 }