Learn Before
Concept

Training the naive Bayes Classifier

While training, we first consider maximum likelihood estimate. We first concatenate all documents with category c into one big “category c” text. Then we use the frequency of wi in this concatenated document to give a maximum likelihood estimate of the probability: P(wic)=count(wi,c)wVcount(w,c)P(w_i|c) = \frac{count(w_i,c)}{\sum_{w\in V}count(w,c)}

0

1

Updated 2021-09-25

Tags

Data Science

Learn After