From f8a7edce9476de88ec176fab95638dd4f853a674 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 10 Mar 2018 14:30:44 +0000 Subject: [Conf] Adjust names and weights for neural network plugin --- src/plugins/lua/neural.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 -- cgit v1.2.3