Moe Chizari

Projects

The write-up

Interactive demo, added

NewsClassifier: Automating News Categorization: try it.

A naive Bayes classifier trained in your browser on 42 made-up headlines: type a headline and see the category probabilities and the words that decided it.

Try it

Move the controls; the chart and the sentence under it update.

0%25%50%75%100%SportsSports: 82.7%83%PoliticsPolitics: 14.2%14%TechnologyTechnology: 3.2%3%

Words the model sees after cleaning: club, owner (not in training), run, mayor, record, season.

Predicted class: Sports (83%). Words that pushed it most toward Sports rather than Politics: club, record, season.

Trained in your browser on 42 made-up headlines, 14 per class. This is a tiny naive Bayes model to show the idea; it is not the original model or its data.

0%50%100%SportsSports: 82.7%83%PoliticsPolitics: 14.2%14%TechnologyTechnology: 3.2%3%

Words the model sees after cleaning: club, owner (not in training), run, mayor, record, season.

Predicted class: Sports (83%). Words that pushed it most toward Sports rather than Politics: club, record, season.

Trained in your browser on 42 made-up headlines, 14 per class. This is a tiny naive Bayes model to show the idea; it is not the original model or its data.

The write-up this goes with: NewsClassifier: Automating News Categorization.

All demos