mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 17:44:49 +02:00
rspamd: add neural module config (#3833)
Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
parent
05fbcf6889
commit
45935f5fb8
7 changed files with 105 additions and 1 deletions
42
target/rspamd/local.d/neural.conf
Normal file
42
target/rspamd/local.d/neural.conf
Normal file
|
@ -0,0 +1,42 @@
|
|||
#https://github.com/rspamd/rspamd/issues/3099
|
||||
rules {
|
||||
"NEURAL_WEEK_1000" {
|
||||
train {
|
||||
max_trains = 1000;
|
||||
max_usages = 50;
|
||||
max_iterations = 25;
|
||||
learning_rate = 0.01,
|
||||
spam_score = 8;
|
||||
ham_score = -2;
|
||||
}
|
||||
symbol_spam = "NEURAL_WEEK_SPAM";
|
||||
symbol_ham = "NEURAL_WEEK_HAM";
|
||||
ann_expire = 300d;
|
||||
}
|
||||
"NEURAL_DAYS_200" {
|
||||
train {
|
||||
max_trains = 200;
|
||||
max_usages = 10;
|
||||
max_iterations = 25;
|
||||
learning_rate = 0.01,
|
||||
spam_score = 8;
|
||||
ham_score = -2;
|
||||
}
|
||||
symbol_spam = "NEURAL_DAYS_SPAM";
|
||||
symbol_ham = "NEURAL_DAYS_HAM";
|
||||
ann_expire = 100d;
|
||||
}
|
||||
"NEURAL_HALF_DAY_50" {
|
||||
train {
|
||||
max_trains = 50;
|
||||
max_usages = 4;
|
||||
max_iterations = 25;
|
||||
learning_rate = 0.01,
|
||||
spam_score = 8;
|
||||
ham_score = -2;
|
||||
}
|
||||
symbol_spam = "NEURAL_HALF_DAY_SPAM";
|
||||
symbol_ham = "NEURAL_HALF_DAY_HAM";
|
||||
ann_expire = 13d;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue