Naive Bayes from Scratch in Python: 2. Step of the Algorithm

Опубликовано: 17 Февраль 2026
на канале: Sebastian Mantey
1,101
21

In this series, we are going to code a Naive Bayes classifier from scratch in Python. And in this video, we are going to write the code that is going to execute the second step of the Naive Bayes algorithm.

Links:
Corresponding blog post: https://www.sebastian-mantey.com/code...
GitHub repo: https://github.com/SebastianMantey/Na...
the "problem of rare values":    • Naive Bayes explained: Why "naive"?, the p...  
"Naive Bayes from scratch" playlist:    • Naive Bayes from Scratch in Python: Introd...  

Timestamps:
0:00 - Introduction
1:11 - Code for 2. step of the algorithm
12:35 - Handling the "problem of rare values"
17:52 - Determining accuracy of the algorithm
19:17 - Comparison to Sklearn