diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-01-29 17:46:26 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-01-29 17:46:26 +0300 |
commit | 32a96e82d075bdba6e9e567080977a76830cbce2 (patch) | |
tree | 028ebfd9118e5c9d33c07593eef7ea4c8b37108e /src/cfg_utils.c | |
parent | 24e7403974f65b788ad81071d30c092adde97f4e (diff) | |
download | rspamd-32a96e82d075bdba6e9e567080977a76830cbce2.tar.gz rspamd-32a96e82d075bdba6e9e567080977a76830cbce2.zip |
* Do another rework of filters/metrics and statfiles processing
* Add 'probability' normalizing to winnow algorithm and calculate not pure weight but normalized probability
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 99e7881b8..68c1a1174 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -19,6 +19,7 @@ #include "cfg_file.h" #include "main.h" #include "filter.h" +#include "classifiers/classifiers.h" #ifndef HAVE_OWN_QUEUE_H #include <sys/queue.h> #else @@ -189,6 +190,7 @@ init_defaults (struct config_file *cfg) def_metric->func_name = "factors"; def_metric->func = factor_consolidation_func; def_metric->required_score = DEFAULT_SCORE; + def_metric->classifier = get_classifier ("winnow"); g_hash_table_insert (cfg->metrics, "default", def_metric); LIST_INIT (&cfg->perl_modules); |