An interactive classification lab
SvenskaEach click adds more sample emails from a built-in bank. Vary the ratio to see how imbalanced training data affects the model.
SPAM,Your text here
HAM,Your text here
The label must be SPAM or HAM (uppercase).
Click a term to open its explanation. The same explanations pop up when you click underlined words in the text.
Before the model can calculate probabilities, the text has to be broken into individual words — that's called tokenization. Words that are too common to say anything about the class (stop words) and very short words are then filtered out. Only the remaining words are used in the classification.
Note: no lemmatization is performed — "winning" and "winner" are counted as different words. Real systems often reduce words to their root form to improve accuracy.