diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-13 18:50:29 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-08-13 18:50:29 +0400 |
commit | 868842d9c133e8823365386200f5c48442a068b5 (patch) | |
tree | 9a6961134b6d5612e870142069166cdbb5ed2ca8 /src/classifiers/classifiers.c | |
parent | 9aa989ea76ee78107ed7ae02a3d1b8e297f57b4c (diff) | |
download | rspamd-868842d9c133e8823365386200f5c48442a068b5.tar.gz rspamd-868842d9c133e8823365386200f5c48442a068b5.zip |
* Add bayesian classifier (initial version)
Diffstat (limited to 'src/classifiers/classifiers.c')
-rw-r--r-- | src/classifiers/classifiers.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/classifiers/classifiers.c b/src/classifiers/classifiers.c index 219576870..6b0554e1b 100644 --- a/src/classifiers/classifiers.c +++ b/src/classifiers/classifiers.c @@ -36,6 +36,13 @@ struct classifier classifiers[] = { .classify_func = winnow_classify, .learn_func = winnow_learn, .weights_func = winnow_weights + }, + { + .name = "bayes", + .init_func = bayes_init, + .classify_func = bayes_classify, + .learn_func = bayes_learn, + .weights_func = bayes_weights } }; |