[Rspamd-Users] [ext] Is my neural module working after updating from 1.9.4 to 2.0
Ralf Hildebrandt
Ralf.Hildebrandt at charite.de
Thu Oct 17 12:32:16 UTC 2019
* Tamás Németh <nt1277 at gmail.com>:
> Doesn't mean that "no ANN for default:default in Redis key
> rn_default_default_boeduyc4_0" message mean that something goes wrong
> with neural learning, or can I just ignore it. Is it a warning
> anyways?
I'm also under the impression it's not working as it should:
Oct 17 14:27:29 mail-cbf rspamd[56117]: <ac8e09>; neural; neural.lua:337: LONG:default:14 ann score: nan
Oct 17 14:27:29 mail-cbf rspamd[56117]: <ac8e09>; neural; neural.lua:337: SHORT:default:522 ann score: nan
Oct 17 14:27:29 mail-cbf rspamd[56117]: <ac8e09>; lua; neural.lua:455: cannot learn ANN LONG:default: too many ham samples: 5501
Oct 17 14:27:29 mail-cbf rspamd[56117]: <ac8e09>; lua; neural.lua:455: cannot learn ANN SHORT:default: too many ham samples: 111
# fgrep -c "LONG:default: too many ham samples" /var/log/mail.log
10105
# fgrep -c "LONG:default: too many spam samples" /var/log/mail.log
1000
# fgrep -c "SHORT:default: too many ham samples" /var/log/mail.log
11536
# fgrep -c "SHORT:default: too many spam samples" /var/log/mail.log
2647
Maybe expiry is not working?
===== CONFIG ======
# local.d/neural.conf
use_settings = true;
# local.d/neural.conf
rules {
"LONG" {
train {
max_trains = 5000;
max_usages = 200;
max_iterations = 25;
learning_rate = 0.01,
spam_score = 8;
ham_score = -2;
}
symbol_spam = "NEURAL_SPAM_LONG";
symbol_ham = "NEURAL_HAM_LONG";
ann_expire = 100d;
}
"SHORT" {
train {
max_trains = 100;
max_usages = 2;
max_iterations = 25;
learning_rate = 0.01,
spam_score = 8;
ham_score = -2;
}
symbol_spam = "NEURAL_SPAM_SHORT";
symbol_ham = "NEURAL_HAM_SHORT";
ann_expire = 1d;
}
}
===== CONFIG ======
Ralf Hildebrandt
Charité - Universitätsmedizin Berlin
Geschäftsbereich IT | Abteilung Netzwerk
Campus Benjamin Franklin (CBF)
Haus I | 1. OG | Raum 105
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155
ralf.hildebrandt at charite.de
https://www.charite.de
More information about the Users
mailing list