37
InteractiveHolds upSpam detection holds up
Yes. It scores 98.4% against 86.1% for 'always ham', catching 96% of spam with 93% precision. Ten-fold cross-validation agrees.
Read the audit
Loading project…
I turned 5,572 text messages into word counts, trained multinomial naive Bayes on two thirds of them, and checked one message I typed, which came back as spam.
Original tutorial by Aman Kharwal: Spam Detection (opens in a new tab)
| Output | Value | Cell # |
|---|---|---|
| Label for one typed message | spam |
Cell # counts every cell from the top of the notebook, Markdown included, starting at 1.
No accuracy, precision or recall was printed.
The SMS Spam Collection (UCI, CC BY 4.0), read from a re-upload.
37
InteractiveHolds upYes. It scores 98.4% against 86.1% for 'always ham', catching 96% of spam with 93% precision. Ten-fold cross-validation agrees.
Read the audit