quantranhong1999 commented on code in PR #1269:
URL: https://github.com/apache/james-project/pull/1269#discussion_r1003128895
##########
third-party/rspamd/sample-configuration/statistic.conf:
##########
@@ -5,20 +5,20 @@ classifier "bayes" {
cache {
}
new_schema = true; # Always use new schema
- store_tokens = true; # Redefine if storing of tokens is desired
- signatures = true; # Store learn signatures
+ store_tokens = false; # Redefine if storing of tokens is desired
+ signatures = false; # Store learn signatures
per_user = true; # Enable per user classifier
users_enabled = true;
- min_tokens = 10;
+ min_tokens = 11;
backend = "redis";
- min_learns = 0;
+ min_learns = 50; // Should not be bias by too small learning set
statfile {
- symbol = "BAYES_HAM_USER";
+ symbol = "BAYES_HAM";
spam = false;
}
statfile {
- symbol = "BAYES_SPAM_USER";
+ symbol = "BAYES_SPAM";
spam = true;
}
Review Comment:
The main difference makes per-user Bayes work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]