diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-15 16:41:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-15 16:41:46 +0100 |
commit | d61bd5017d8899defac876df4da2cfaacd0f3272 (patch) | |
tree | 2b93b36a86bad8275408a01adb96642e768f2d36 /test/functional/configs/neural.conf | |
parent | 834573afd5cb9495d12d5945bea07f64a6cae540 (diff) | |
download | rspamd-d61bd5017d8899defac876df4da2cfaacd0f3272.tar.gz rspamd-d61bd5017d8899defac876df4da2cfaacd0f3272.zip |
[Test] Add functional tests for neural plugin
Diffstat (limited to 'test/functional/configs/neural.conf')
-rw-r--r-- | test/functional/configs/neural.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/configs/neural.conf b/test/functional/configs/neural.conf new file mode 100644 index 000000000..a8b30b197 --- /dev/null +++ b/test/functional/configs/neural.conf @@ -0,0 +1,26 @@ +neural { + rules { + SHORT { + train { + learning_rate = 0.001; + max_usages = 2; + spam_score = 1; + ham_score = -1; + max_trains = 10; + max_iterations = 250; + } + symbol_spam = "NEURAL_SPAM_SHORT"; + symbol_ham = "NEURAL_HAM_SHORT"; + ann_expire = 86400; + watch_interval = 0.1; + } + + } + allow_local = true; + +} +redis { + servers = "${REDIS_ADDR}:${REDIS_PORT}"; + expand_keys = true; +} +lua = ${LUA_SCRIPT};
\ No newline at end of file |