From 7c0c23853ea92c18b0efce7ee8e46160a879096e Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Sun, 7 Aug 2022 14:46:51 +0200 Subject: [PATCH] Remove neural network module - spam learned as ham when soft-rejected --- usr/local/etc/rspamd/local.d/neural.conf | 24 ------------------- .../etc/rspamd/local.d/neural_group.conf | 18 -------------- 2 files changed, 42 deletions(-) delete mode 100644 usr/local/etc/rspamd/local.d/neural.conf delete mode 100644 usr/local/etc/rspamd/local.d/neural_group.conf diff --git a/usr/local/etc/rspamd/local.d/neural.conf b/usr/local/etc/rspamd/local.d/neural.conf deleted file mode 100644 index f4658db..0000000 --- a/usr/local/etc/rspamd/local.d/neural.conf +++ /dev/null @@ -1,24 +0,0 @@ -rules { - "LONG" { - train { - max_trains = 200; - max_usages = 20; - max_iterations = 25; - learning_rate = 0.01, - } - symbol_spam = "NEURAL_SPAM_LONG"; - symbol_ham = "NEURAL_HAM_LONG"; - ann_expire = 45d; - } - "SHORT" { - train { - max_trains = 100; - max_usages = 10; - max_iterations = 15; - learning_rate = 0.01, - } - symbol_spam = "NEURAL_SPAM_SHORT"; - symbol_ham = "NEURAL_HAM_SHORT"; - ann_expire = 7d; - } -} diff --git a/usr/local/etc/rspamd/local.d/neural_group.conf b/usr/local/etc/rspamd/local.d/neural_group.conf deleted file mode 100644 index fca5cec..0000000 --- a/usr/local/etc/rspamd/local.d/neural_group.conf +++ /dev/null @@ -1,18 +0,0 @@ -symbols = { - "NEURAL_SPAM_LONG" { - weight = 3.7; # sample weight - description = "Neural network spam (long)"; - } - "NEURAL_HAM_LONG" { - weight = -4.0; # sample weight - description = "Neural network ham (long)"; - } - "NEURAL_SPAM_SHORT" { - weight = 2.5; # sample weight - description = "Neural network spam (short)"; - } - "NEURAL_HAM_SHORT" { - weight = -2.0; # sample weight - description = "Neural network ham (short)"; - } -}