[Rspamd-Users] [ext] Is my neural module working after updating from 1.9.4 to 2.0

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Fri Oct 18 11:29:31 UTC 2019


* Tamás Németh <nt1277 at gmail.com>:
> How did you get so verbose legging from the neural module? Have you
> enabled debugging for it?

Yes. 

logging.inc:

debug_modules = ["neural"];

> Anyway, despite not knowing what these "too
> many X samples" messages mean, they don't cause harm according to my
> experiences. Is your neural module already tagging messages or is it
> still in early phases of learning?

It's reporting errors like:

Oct 18 13:24:57 mail-cbf rspamd[33645]: <e748a9>; task; insert_metric_result: detected NaN score for symbol NEURAL_HAM_LONG, replace it with zero
Oct 18 13:24:57 mail-cbf rspamd[33645]: <e748a9>; task; insert_metric_result: detected NaN score for symbol NEURAL_HAM_SHORT, replace it with zero

although I set:

# local.d/neural_group.conf

symbols = {
  "NEURAL_SPAM_LONG" {
    weight = 3.0; # sample weight
    description = "Neural network spam (long)";
  }
  "NEURAL_HAM_LONG" {
    weight = -3.0; # sample weight
    description = "Neural network ham (long)";
  }
  "NEURAL_SPAM_SHORT" {
    weight = 2.0; # sample weight
    description = "Neural network spam (short)";
  }
  "NEURAL_HAM_SHORT" {
   weight = -1.0; # sample weight
   description = "Neural network ham (short)";
  }
}
  
( Also see https://github.com/rspamd/rspamd/issues/3099 )

But it's adding symbols:

Oct 18 13:27:43 mail-cbf rspamd[33646]: <84d288>; task; rspamd_task_write_log: id: <5da99f4c8103b_41fb10c79b016035cf at i-09737d9bb7dd40ec6.email-worker.mail>, qid: <46vkKV1sCMz20lNq>, ip: 216.146.33.217, from: <bounces at dyn-return.seekingalpha.com>, (default: F (no action): [-1.65/14.00] [BAYES_HAM(-2.24){96.41%;},MV_CASE(0.50){},FORGED_SENDER(0.30){account at seekingalpha.com;bounces at dyn-return.seekingalpha.com;},MIME_HTML_ONLY(0.20){},R_DKIM_ALLOW(-0.20){seekingalpha.com:s=dyn4;},R_SPF_ALLOW(-0.20){+ip4:216.146.32.0/20;},MX_GOOD(-0.01){mx.dynect.net;mx.dynect.net;},ARC_NA(0.00){},ARC_SIGNED(0.00){i=1;},ASN(0.00){asn:33517, ipnet:216.146.33.0/24, country:US;},DKIM_TRACE(0.00){seekingalpha.com:+;},DMARC_NA(0.00){seekingalpha.com;},FROM_HAS_DN(0.00){},FROM_NEQ_ENVFROM(0.00){account at seekingalpha.com;bounces at dyn-return.seekingalpha.com;},HAS_REPLYTO(0.00){no-reply at seekingalpha.com;},MIME_TRACE(0.00){0:~;},NEURAL_HAM_LONG(-0.00){nan;},NEURAL_HAM_SHORT(-0.00){nan;},P0F(0.00){Linux 2.2.x-3.x;Ethernet or modem;distance:8;}




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