| Model | Idea | Word counts | Embeddings |
|---|---|---|---|
| kNN | copy the label of the closest examples | weak | good |
| Logistic regression | a weight per column, summed, turned into a probability | strong | strongest |
| Decision tree | yes/no questions, one column at a time | fair | weak |
| Random forest | many trees, majority vote | fair | fair |
The embedding model learned the language on its own; our few labels only have to teach it good and bad.
phrasebank.csv and embeddings.npy just stay in the same folder: you do not open them, the program reads them.___ and replace it. Some steps ask for a whole line.Steps: 1 first look · 2 bag of words · 3 cosine by hand · 4 embeddings · 5 closest sentences, two ways · 6 classifier on words · 7 classifier on embeddings · 8 🖼 how many labels? · 9 the four models
★ 10 the "negative" words · 11 the confusion matrix · 12 kNN with cosine, by hand