Multinomial vs Bernoulli Models
Pick the right variant for text.
Two Flavors of NB
Naive Bayes for text comes in two main variants. Picking the right one between Multinomial and Bernoulli can quietly boost your accuracy.
Multinomial Counts
The Multinomial model cares how many times each word appears. A word that shows up five times counts as stronger evidence than one that appears once.
All lessons in this course
- The Intuition Behind Naive Bayes
- Building a Spam Detector
- Multinomial vs Bernoulli Models
- Reading the Model's Predictions