Re: [BULK] New plugin: NeuralNetwork.pm

[email protected] Fri, 27 Feb 2026 17:50:09 +0100
Newsgroups gmane.mail.spam.spamassassin.devel
Message-ID <[email protected]>
Current implementation, after latest fixes/improvements, works with incremental training, if just one item is added to the training set the model is trained incrementally but the whole file must be rewritten,
there is no way to save the model to a different structure other then a file atm.'
I have the plugin in production with few thousands mailboxes and it looks promising even if it needs a bit to train, maybe neuralnetwork_min_spam_count and neuralnetwork_min_ham_count default values are too low.
I will verify accuracy improvements of the model and tweaks default values if needed.
  Giovanni

On 2/25/26 2:59 AM, Kent Oyer wrote:
> I haven't had time to play with this plugin, but my understanding of this type of NN is that it doesn't work well with incremental training. Meaning that if just one item is added to the training set, the whole learning process needs to be re-run. Otherwise the model adjusts it's weights to match the new sample at the expense of all previous samples. I'm just wondering if you've run into this and if you have any preliminary accuracy statistics from this plugin.
> 
> 
> 
> On Tue, Dec 30, 2025 at 03:33 AM, Giovanni Bechis <[email protected]> wrote:
> 
>     ------------------------------------------------------------------------------------------------------------------
>     CAUTION: External email from: gbechis@‌apache.‌org
>     Use caution before clicking on links or opening attachments.
>     ------------------------------------------------------------------------------------------------------------------
>     Hi,
>     I've just committed to my Github repo the first version of a SpamAssassin plugin that uses Neural Networks to detect spam messages.
>     Code is available at https://github.com/bigio/spamassassin-NeuralNetwork <https://github.com/bigio/spamassassin-NeuralNetwork> , if the community is interested I can work on merging it to the Apache SpamAssassin src tree.
>     Testers are always welcome.
>     Cheers
>     Giovanni
>     -- 
>     Giovanni Bechis
>     V.P. Apache SpamAssassin
>     [email protected] <mailto:[email protected]>
>
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEqg3TnG6R3qYMxl94+r7qCYlyWOUFAmmhy0EFAwAAAAAACgkQ+r7qCYlyWOUB
1Q/+Khf1AoCuh35004otY4zazMeW2mcHFYF7XqkjQx5q066LYp3htWIFZwcjamo4wRaXEHJzhuHG
+v9IP3esi2Nx/bLu8uQT/KQePUSGaZTQme6q2NYV/e6szgwllsABxsRrelxVa8YiakMgu4WYOZUX
EzE/N44yEYbTADOe0dT1nygG2GKsQkIGEflqbLUGDQRPgCx0T7wAy98gRK7JbZ3IXbX4HEjrJ42m
02Mf+LUsZNFvnZO/5PwyafU5xRlGKk0/dldJn9k1lUdYztnHl9oJbPFCgj5n2Rh505hZE+nSAVjb
GqvzrQf2MRG/mm4aWOCJuHrG+2kONcRh2qYovdpkA0cOuu/QxTM+4FZIFbNeuUQ8VRBs1I537g9X
Y+QLDNhn9quKJstG94A6Qi+k1CKq+0esw+j+Ws9C9jjUrfEdaysG0fdMi7ypig5aBLf+aQMgtwSr
3SpZhVHwvXJ+a0P6HyuWSiTYEnlvw558BdAWPbEKlUwiqyF/C72P2n9qNfPfcexbPMbySwPPpxbn
JqUmVMoeLpntKRoaLM3SFHGyqQk4G1zfDVpY/BvOLHGI53zJ3r3JT49LYdk288Eclby8U3IFsAoq
M7F/OGrYKr849/1EHqIXtjbLZ+NqJtydYdwAj2YzJg1bAyMfp36CcDdcFDYwt+KBO3LvYygpVbfY
hSQ=
=13hz
-----END PGP SIGNATURE-----