aboutsummaryrefslogtreecommitdiffstats
path: root/src/classifiers/classifiers.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-29 17:46:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-29 17:46:26 +0300
commit32a96e82d075bdba6e9e567080977a76830cbce2 (patch)
tree028ebfd9118e5c9d33c07593eef7ea4c8b37108e /src/classifiers/classifiers.c
parent24e7403974f65b788ad81071d30c092adde97f4e (diff)
downloadrspamd-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/classifiers/classifiers.c')
-rw-r--r--src/classifiers/classifiers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/classifiers/classifiers.c b/src/classifiers/classifiers.c
index aabdd7590..162b201c8 100644
--- a/src/classifiers/classifiers.c
+++ b/src/classifiers/classifiers.c
@@ -6,7 +6,13 @@
#include "classifiers.h"
struct classifier classifiers[] = {
- {"winnow", winnow_classify, winnow_learn, winnow_add_result },
+ {
+ .name = "winnow",
+ .init_func = winnow_init,
+ .classify_func = winnow_classify,
+ .learn_func = winnow_learn,
+ .result_file_func = winnow_result_file
+ },
};
struct classifier*