Tech
Naive Bayes From Scratch: A Spam Filter Built From Word Counts
Naive Bayes ran real spam filters for years, and it's the rare ML model whose "training" is just counting . No gradient descent, no iterations — count words, apply Bayes' rule, multiply. I built one from scratch and visualised exactly which words push a message toward spam.
📨 Interactive demo (type a message): https://dev48v.infy.uk/ml/day6-naive-bayes.html
This is Day 6 of MachineLearningFromZero — algorithms from scratch, no scikit-learn.
1. Bag of words — order doesn't ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to