public class NaiveBayesModel extends AbstractModel
| Modifier and Type | Field and Description |
|---|---|
int |
c
类别数
|
int |
d
特征数
|
Map<Integer,Map<Integer,Double>> |
logLikelihoods
似然对数值 log( P(x|c) )
|
Map<Integer,Double> |
logPriors
先验概率的对数值 log( P(c) )
|
int |
n
训练样本数
|
catalog, tokenizer, wordIdTrie| Constructor and Description |
|---|
NaiveBayesModel() |
Copyright © 2014–2021 码农场. All rights reserved.