diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-01 18:17:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-01 18:17:24 +0000 |
commit | 566f727b8c2386a614bb6909550c173357c39af6 (patch) | |
tree | 6425331365768bea8180c80c27bb9fad47c98396 /src/classifiers | |
parent | 2daf38ce8feb024175edd354b4e9933390fc74f4 (diff) | |
download | rspamd-566f727b8c2386a614bb6909550c173357c39af6.tar.gz rspamd-566f727b8c2386a614bb6909550c173357c39af6.zip |
Explicitly set in_class field while learning.
Diffstat (limited to 'src/classifiers')
-rw-r--r-- | src/classifiers/bayes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index 184a63802..ae291de24 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -472,6 +472,7 @@ bayes_learn_spam (struct classifier_ctx* ctx, statfile_pool_t *pool, data.pool = pool; data.now = time (NULL); data.ctx = ctx; + data.in_class = TRUE; data.processed_tokens = 0; if (ctx->cfg->opts && (value = g_hash_table_lookup (ctx->cfg->opts, "max_tokens")) != NULL) { |