AI & Machine Learning Cheat Sheet
The AI and machine learning track on one page — landscape, classical models, evaluation, a little deep learning, language and generative ideas, and MLOps. Sketches are pure Python; a library call is marked as a sketch and is not required.
Projects to build
The fastest way to make this stick. Build one, then put it in your portfolio.
Cosine on three sentences
Turn three short sentences into word-count vectors with the standard library. Rank them against a query using your own dot product and cosine. No NumPy.
Score a guess
Type two short lists, y and yhat. Print MAE, RMSE, and R² from the formulas on this page, and say which error worries you more.
k-NN on a dozen rows
Hand-label about twelve rows with two numeric features. Hold out three. Predict them with the pure-Python k-NN sketch and describe one mistake.
Imbalanced evaluation card
Invent a yes/no problem where "no" is common. From made-up truth and predictions, compute precision and recall and write why accuracy would green-light a bad model. Mention calibration in one sentence.
One-page system design
Write the decision, the features, the split, the metric, where drift would show up, and what triggers a retrain. Optional: ten pure-Python steps of gradient descent for y ≈ w·x on a handful of points. Do not import a training framework.
