Classifying documents with multinomial naive Bayes
Multinomial naive Bayes combines term counts with class-conditional word probabilities and class priors to compare document labels.
MultinomialNB in practice
Repeated mentions of “invoice” can favor an expense category. Smoothing handles unseen term counts, while correlated words may make the model overconfident.
中文
多项式朴素贝叶斯怎样给文本分类?
多项式朴素贝叶斯将词项计数与类别条件下的词概率结合,用先验和证据比较各类别。
MultinomialNB 应用实例
“发票”反复出现可能增加报销类得分。平滑可避免未见词产生零概率,但重复出现的高度相关词也可能让模型过度自信。