diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-10 14:30:44 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-10 14:56:00 +0000 |
commit | f8a7edce9476de88ec176fab95638dd4f853a674 (patch) | |
tree | 8a39e7a83eccaa14a2ba5d10fe7e8c272c4fa855 /src | |
parent | 9559cd01e405f3e041fc6aad29afbffd69fcb1a7 (diff) | |
download | rspamd-f8a7edce9476de88ec176fab95638dd4f853a674.tar.gz rspamd-f8a7edce9476de88ec176fab95638dd4f853a674.zip |
[Conf] Adjust names and weights for neural network plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/neural.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 216a2800d..547751f93 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -57,8 +57,8 @@ local default_options = { lock_expire = 600, learning_spawned = false, ann_expire = 60 * 60 * 24 * 2, -- 2 days - symbol_spam = 'FANNR_SPAM', - symbol_ham = 'FANNR_HAM', + symbol_spam = 'NEURAL_SPAM', + symbol_ham = 'NEURAL_HAM', } local settings = { @@ -955,7 +955,7 @@ else end local id = rspamd_config:register_symbol({ - name = 'FANN_CHECK', + name = 'NEURAL_CHECK', type = 'postfilter,nostat', priority = 6, callback = ann_scores_filter @@ -1007,7 +1007,7 @@ else settings.rules[k] = def_rules rspamd_config:set_metric_symbol({ name = def_rules.symbol_spam, - score = 3.0, + score = 0.0, description = 'Neural network SPAM', group = 'neural' }) @@ -1019,7 +1019,7 @@ else rspamd_config:set_metric_symbol({ name = def_rules.symbol_ham, - score = -2.0, + score = -0.0, description = 'Neural network HAM', group = 'neural' }) @@ -1031,7 +1031,7 @@ else end rspamd_config:register_symbol({ - name = 'FANN_VECTOR_PUSH', + name = 'NEURAL_LEARN', type = 'idempotent,nostat', priority = 5, callback = ann_push_vector |