🌱 AI Engineering · AI Foundations (No Math Fear) · cozy lesson
Machine Learning in Plain English
12 min · 1 min read · no scary math, promise
Spam story
You collect 5k emails labeled spam/not. Features: contains ‘free’, exclamation count, sender known?
Training = find weights that separate spam. Prediction = apply to new mail.
Three flavors
- Supervised: labeled pairs (email → spam?)
- Unsupervised: no labels (cluster customers)
- Reinforcement: trial + reward (game play, RLHF)
Golden split
Train 70% / validate 15% / test 15%. Never tune on test. If test drops while train rises → overfitting. Fix: more data, simpler model, regularization.
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
vec = CountVectorizer()
X = vec.fit_transform(["free money now", "meeting notes"])
model = MultinomialNB().fit(X, [1, 0])
Check your understanding
Correct answers earn XP (once each).
1. What is a feature?
2. Overfitting means…
My notes (saved in this browser)
Select text above → Save selection, or write your own. AlgoMaster-style notebook, local-first for MVP.
No notes yet. Your highlights will live here.
Finished reading? Seal it with a tick ✅
The checkbox in the explorer turns green too — same progress.