summaryrefslogtreecommitdiffstats
path: root/conf/modules.d
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-12 23:24:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-12 23:24:15 +0000
commit9106fba8f60aa344a2258fadb4a456589360fae0 (patch)
tree1fb4b8aa4d8c15781537e966f7fcfe6397f2b876 /conf/modules.d
parentc10f4cf4169a8d0ad9709f8c7b6b187edc207b1f (diff)
downloadrspamd-9106fba8f60aa344a2258fadb4a456589360fae0.tar.gz
rspamd-9106fba8f60aa344a2258fadb4a456589360fae0.zip
[Minor] Tune default parameters for fann module
Diffstat (limited to 'conf/modules.d')
-rw-r--r--conf/modules.d/fann_redis.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/conf/modules.d/fann_redis.conf b/conf/modules.d/fann_redis.conf
index 36e9e3743..f12224d48 100644
--- a/conf/modules.d/fann_redis.conf
+++ b/conf/modules.d/fann_redis.conf
@@ -15,12 +15,14 @@
fann_redis {
#servers = 127.0.0.1:6379; # Redis server to store learning data and ANN
+
train {
- max_train = 10k; # Number of trains per epoch
- max_usages = 10; # Number of learn iterations while ANN data is valid
+ max_train = 1k; # Number of trains per epoch
+ max_usages = 20; # Number of learn iterations while ANN data is valid
spam_score = 8; # Score to learn spam
ham_score = -2; # Score to learn ham
}
+
timeout = 20; # Increase redis timeout
enabled = false; # Explicitly disable module
use_settings = false; # If enabled, then settings-id could switch this module to another FANN