Naive Bayes and Decision Tree_朴素贝叶斯分类器_决策树

这里写自定义目录标题欢迎使用Markdown编辑器Bayes rule appliede to documents and classesNaive Bayes ClassifierMultinomial Naive Bayes Independence AssumptionsMultinomial Naive Bayes modelSummaryDecision TreeExpressivenessDecision Tree learningChoosing an attributeWhat to do
摘要由CSDN通过智能技术生成

Bayes rule appliede to documents and classes

For a document d and a class c:
在这里插入图片描述

Naive Bayes Classifier

The

Then we use a bunch of features to represent document:
在这里插入图片描述
Then how to estimate these two terms separately?
在这里插入图片描述

Multinomial Naive Bayes Independence Assumptions

  • Bag of Words assumption: Assume position doesn’t matter
  • Conditional Independence: Assume the feature
    probabilities P(xi|cj) are independent given the class c
    在这里插入图片描述
    The difference between naive bayes and unigram model (possible):
    Unigram model multiply poriori probability
    Naive Bayes multiply conditional probability under different classifications

Multinomial Naive Bayes model

  • Initial: MLE
    simply use frequencies in the data
    Interpretation:
    Interpretation: fraction of times word w i w_i wi appears among all words in documents of topic c j c_j cj
    Create mega-document for topic j by concatenating all docs in this topic
    Problem: null value of certain attribute – no training documents with the certain word
    在这里插入图片描述
    Zero probabilities cannot be conditioned away, no matter the other evidence.
  • Laplace (add-1) smoothing for Naïve Bayes
    在这里插入图片描述
  • Learning
  1. From training corpus, extract Vocabulary
    •Calculate P ( c j ) P(c_j) P(cj) terms
    • For each
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值