diff options
Diffstat (limited to 'ansible/roles/rspamd/files/rspamd/local.d/neural.conf')
-rw-r--r-- | ansible/roles/rspamd/files/rspamd/local.d/neural.conf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ansible/roles/rspamd/files/rspamd/local.d/neural.conf b/ansible/roles/rspamd/files/rspamd/local.d/neural.conf new file mode 100644 index 0000000..7fc7bd2 --- /dev/null +++ b/ansible/roles/rspamd/files/rspamd/local.d/neural.conf | |||
@@ -0,0 +1,33 @@ | |||
1 | servers = "localhost"; | ||
2 | enabled = true; # Important after 1.7 | ||
3 | |||
4 | # use_settings = true; | ||
5 | |||
6 | rules { | ||
7 | "LONG" { | ||
8 | train { | ||
9 | max_trains = 5000; | ||
10 | max_usages = 200; | ||
11 | max_iterations = 25; | ||
12 | learning_rate = 0.01, | ||
13 | spam_score = 8; | ||
14 | ham_score = -2; | ||
15 | } | ||
16 | symbol_spam = "NEURAL_SPAM_LONG"; | ||
17 | symbol_ham = "NEURAL_HAM_LONG"; | ||
18 | ann_expire = 100d; | ||
19 | } | ||
20 | "SHORT" { | ||
21 | train { | ||
22 | max_trains = 100; | ||
23 | max_usages = 2; | ||
24 | max_iterations = 25; | ||
25 | learning_rate = 0.01, | ||
26 | spam_score = 8; | ||
27 | ham_score = -2; | ||
28 | } | ||
29 | symbol_spam = "NEURAL_SPAM_SHORT"; | ||
30 | symbol_ham = "NEURAL_HAM_SHORT"; | ||
31 | ann_expire = 1d; | ||
32 | } | ||
33 | } | ||