Supervised Learning
- linear regression
- logistic regression
- support vector machine
- naive Bayes
- decision tree
- random forest
This lesson track teaches ML visually for humans and structurally for agents. Humans get simple sketches and explanations; agents get categories, workflows, and product paths to test.
Arena catalog search matches words in routes, descriptions and concept IDs. This offline study asks whether grouping descriptions by their word use can help recover similar pages.
Lloyd k-means updates the cluster centers using the full training set each pass. E-means updates them in small batches using an exponential moving average. Both fitted 8 clusters to 406 distinct page descriptions. The other 102 descriptions served as search queries.
| Measure | Lloyd k-means | E-means |
|---|---|---|
| Recall with exactly 80 candidates | 54.51% | 50.29% |
| Recall with the whole nearest cluster | 48.63% | 57.06% |
| Candidates examined per query, whole cluster | 60.4 | 90.9 |
| Time to fit and assign the training set (ms) | 1.80 | 13.45 |
| Mean squared distance to the nearest center on held-out pages | 0.84368 | 0.83903 |
Recall measures how many of the ten closest descriptions a search recovered, using an exhaustive word-vector search as the reference. E-means recovered more when it could scan its whole nearest cluster, which on average held more pages. At the same 80-candidate budget, Lloyd recovered more and also built the index faster. Neither comparison measures how relevant people find the results.
Read the e-means preprint