Adam vs SGD with momentum on a controlled quadratic
Compare optimizer updates from the same initial point, record objective traces and distinguish update budgets from wall-clock or general model benchmarks.
comparison4 min read
Practical guides to learning AI and machine learning, written by Gaurav Jain. Worked examples, projects with complete code and learning plans you can follow.
Compare optimizer updates from the same initial point, record objective traces and distinguish update budgets from wall-clock or general model benchmarks.
comparison4 min read
Train a two-to-one-to-two linear autoencoder, compare held-out reconstruction with PCA and expose an unusual point that reconstruction error misses.
tutorial4 min read
Calculate and simulate a binomial count, relate it to Bernoulli trials and test what fails when outcomes share a common cause.
tutorial4 min read
Enumerate a small bootstrap distribution, calculate a percentile interval and explain what its uncertainty does and does not represent.
tutorial4 min read
Define answerable and unsupported questions, expected evidence, a scoring rubric and deterministic failure fixtures for a closed factual task.
tutorial4 min read
Create category, time-series and paired-observation charts from explicit data, and check how aggregation can hide the story.
tutorial4 min read
Calculate P(flagged | faulty) and P(faulty | flagged) from a small inspection table, then connect them through Bayes’ rule.
tutorial4 min read
Rank a small catalogue with TF-IDF and cosine similarity, exclude the seed item and score top-k precision and recall against authored relevance labels.
tutorial4 min read
Calculate a CNN's spatial dimensions by hand, verify them in PyTorch and repair a mismatched linear layer after flattening.
tutorial4 min read
Calculate both measures on the same vectors, explain their different rankings, and connect normalized distance to cosine similarity.
comparison4 min read
The courses take each idea from the intuition and the maths to code you write yourself, from your first line of Python to machine learning.