Before You Start
- Required knowledge
- Conditional probability, logarithms, and Python dictionaries.
- Libraries used
- NumPy
- Dataset and source
- Six spam/ham messages embedded in the notebook; no external text corpus.
- Expected output
- Token counts, a smoothed naive Bayes classifier, log-probability predictions, and informative tokens.