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/classifiers/classifiers.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/classifiers/classifiers.c')
-rw-r--r-- | src/classifiers/classifiers.c | 8 |
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* |