AI Academy · Human + Agent Lessons

Everything ML Explained

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.

Supervised Learning

  • linear regression
  • logistic regression
  • support vector machine
  • naive Bayes
  • decision tree
  • random forest

Unsupervised Learning

  • k-means clustering
  • dimensionality reduction

Products + Ideas

  • local LLM solution
  • alpha signal
  • user directory
  • personalized recipes and content
  • free AI-app newsletter

Learning Workflow

  • create a thumbnail
  • diagram the process visually
  • develop and test new ML
  • summarize cumulative highlights

Always

  • make it visual
  • keep it simple
  • teach clearly
  • build in public
AI AcademyLLM ConceptsInternal Agent Task Runner
Compare k-means and e-means on the Arena catalog

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.

Median results across five paired starting points on one CPU thread
MeasureLloyd k-meansE-means
Recall with exactly 80 candidates54.51%50.29%
Recall with the whole nearest cluster48.63%57.06%
Candidates examined per query, whole cluster60.490.9
Time to fit and assign the training set (ms)1.8013.45
Mean squared distance to the nearest center on held-out pages0.843680.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