[pmg-devel] [PATCH pmg-api 2/3] config: disable awl and bayes by default

Dominik Csapak d.csapak at proxmox.com
Fri Jun 23 14:21:01 CEST 2023


Since most often they don't help in a default setup without manually
training with many examples.

Note that this is a breaking change, and a config rewrite will
trigger a deletion of bayes and awl databases.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/PMG/Config.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm
index 20afd71..dc28c02 100755
--- a/src/PMG/Config.pm
+++ b/src/PMG/Config.pm
@@ -177,12 +177,12 @@ sub properties {
 	use_bayes => {
 	    description => "Whether to use the naive-Bayesian-style classifier.",
 	    type => 'boolean',
-	    default => 1,
+	    default => 0,
 	},
 	use_awl => {
 	    description => "Use the Auto-Whitelist plugin.",
 	    type => 'boolean',
-	    default => 1,
+	    default => 0,
 	},
 	use_razor => {
 	    description => "Whether to use Razor2, if it is available.",
-- 
2.30.2





More information about the pmg-devel mailing list