The field guide
Visual library
391 lessons · 10 books
391 lessons
No matching lessons.
I · FoundationsML foundations 9 chapters · 62 lessons
Linear algebra and geometry6 lessons
Probability and statistics14 lessons
- Expectation, variance, covariance, and correlation
- Probability distributions used in ML
- Entropy and mutual information: a noisy observation
- Epistemic vs aleatoric uncertainty
- Bayes' rule and the posterior
- Maximum likelihood estimation
- Bias and variance of estimators
- Central limit theorem: what becomes Gaussian?
- Hypothesis testing and confidence intervals
- Bootstrap and resampling
- Exponential family
- KL divergence: which distribution weights the error?
- Monte Carlo and importance sampling
- Markov chains
Supervised learning8 lessons
Unsupervised learning3 lessons
Neural network foundations6 lessons
Representations and architectures4 lessons
Probabilistic and latent-variable models8 lessons
Deep generative models5 lessons
Foundation interview questions8 lessons
- Walk me through the bias-variance tradeoff
- How do you choose a loss function?
- Explain backprop in your own words
- Why does dropout work?
- L1 versus L2: derive the zero coefficient
- How do you choose a learning rate?
- When would you not use cross-validation?
- Bayesian vs frequentist: a practitioner's framing
II · Training & researchModel training and research 9 chapters · 52 lessons
Objectives and regularization7 lessons
Optimization and schedules7 lessons
Numerics and training stability4 lessons
Efficiency, data, and scaling9 lessons
- Activation checkpointing
- Gradient accumulation
- Sequence packing with block-diagonal masks
- Foundation-model data curation
- Synthetic data generation and verification
- Design a foundation-model data platform
- Neural scaling laws and compute-optimal training
- Knowledge distillation
- Pruning: structured vs unstructured sparsity
Training recipe and case study2 lessons
Training and debugging questions5 lessons
ML implementation9 lessons
- Implement KNN efficiently
- Implement reverse-mode autodiff for scalar expressions
- Implement attention from scratch
- Implement a pre-norm Transformer decoder block
- Implement incremental decoding with a KV cache
- Implement beam search with EOS and length normalization
- Implement a LoRA adapter for a frozen linear layer
- Implement memory-bounded batched top-k retrieval
- Implement mergeable streaming classification metrics
Training code and codebase debugging2 lessons
Research methods and derivations7 lessons
- Derive logistic regression from MLE
- Why is softmax + cross-entropy the right pairing?
- Explain the reparameterization trick
- Defend an ML derivation when its assumptions change
- Design an ablation study that tests the claimed mechanism
- Critique an ML paper you have not seen before
- Investigate a black-box model behavior in 90 minutes
III · Evaluation & productEvaluation and product ML 4 chapters · 25 lessons
Metrics, calibration, and decisions6 lessons
Evaluation design and validity5 lessons
Model output evaluation8 lessons
- Perplexity and bits per token
- Ranking metrics: NDCG, MAP, MRR
- Model interpretability
- LLM-as-judge evaluation
- LLM Evals: The hardest part of shipping LLMs, and why most teams get it wrong
- How would you evaluate an LLM application you've built?
- How do you evaluate an agent?
- How would you build evals for a coding assistant?
Product and experimentation practice6 lessons
IV · LLMs & agentsLLMs, agents, and post-training 7 chapters · 42 lessons
Transformer architecture and attention8 lessons
- Transformer architecture: trace one complete block
- Multi-head attention: why one head is not enough
- Self-attention vs cross-attention
- Grouped-query and multi-query attention (GQA, MQA)
- FlashAttention
- Sparse attention (BigBird, Longformer)
- Linear attention (Linformer, Performer, kernel methods)
- Mixture of Experts (MoE)
Tokens, position, and long context4 lessons
Inference and decoding9 lessons
- Decoding strategies: greedy, beam, top-k, top-p, temperature
- KV cache: reuse past projections, retain growing reads
- Prefill vs. decode: the two phases of LLM inference
- PagedAttention and the vLLM serving model
- Continuous batching for LLM serving
- Speculative decoding
- Quantization: INT8, INT4, FP8, and the inference cost picture
- Test-time compute, search, and verifiers
- Walk me through speculative decoding
Post-training, alignment, and safety9 lessons
- RLHF, DPO, and the alignment training stack
- Preference data and reward models
- RL with verifiable rewards and GRPO
- Scalable oversight and AI control
- Model organisms of misalignment
- LLM security threat models
- Design post-training data, an RL environment, and its grader
- Design an LLM red-team and security evaluation program
- Design a safety control plane for high-impact agents
Interpretability and monitoring2 lessons
Fine-tuning and retrieval-augmented generation5 lessons
V · SystemsML systems and infrastructure 6 chapters · 31 lessons
Hardware and performance6 lessons
Distributed training and parallelism7 lessons
Training plans and reliability5 lessons
Inference systems and cost5 lessons
ML platforms and operations6 lessons
Applied ML system design2 lessons
VI · Retrieval & rankingRetrieval, ranking, and recommendations 4 chapters · 23 lessons
Retrieval foundations6 lessons
Recommendation models3 lessons
Retrieval and ranking practice6 lessons
Recommendation product design8 lessons
- Multi-task learning and objective interference
- Design YouTube's recommender
- Design short-form video recommendation for ecosystem health
- Annotated senior-principal mock: ecosystem ranking
- Design Spotify's homepage
- How would you do cold-start for a new user?
- Design a complementary purchase shelf
- Where an LLM belongs in a recommender
VII · RL & roboticsReinforcement learning and robotics 3 chapters · 13 lessons
RL foundations and value methods6 lessons
Policy optimization4 lessons
Environments, multiple agents, and robotics3 lessons
VIII · Vision, language & speechVision, language, and speech 4 chapters · 21 lessons
Vision and multimodal foundations7 lessons
Vision tasks3 lessons
Language representations and sequence models4 lessons
IX · Interview practiceInterview and career practice 3 chapters · 15 lessons
Roles and level calibration4 lessons
Frontier application and process2 lessons
Behavioral and leadership practice9 lessons
- How do you scope an ambiguous problem?
- How do you decide what to work on?
- Tell me about your most ambitious project
- Present a technical ML project and defend it under questions
- Tell me about a time you disagreed with someone senior
- Tell me about a time you advocated for quality or safety over speed
- Tell me about an ML project you killed or redirected
- Defend a values decision under ethical pressure
- What's the most over-rated technique in ML right now?
X · Coding practiceCoding interview practice 11 chapters · 107 lessons
Learn by rebuilding1 lessons
Remember the past6 lessons
Move boundaries10 lessons
Keep unfinished work4 lessons
Process the next best item5 lessons
Explore choices17 lessons
- Allocate one copy per original identity before following edges
- Count new component seeds and mark each whole region
- Reverse the edges when many starts share a few goals
- Return one subtree height after both children
- Compare aligned values and missing-child positions together
- Return transformed child roots, then reconnect them locally
- Balanced Binary Tree
- Subtree of Another Tree
- Save each increasing-index choice path, then undo the last choice
- Permutations
- Combination Sum
- Own visited cells only for the current word path
- Count disjoint final-move cases and retain only their dependencies
- Compare skipping the current item with its last compatible prefix
- Extend a snapshot of reachable sums to use each occurrence once
- Define two-prefix answers before compressing the table to rows
- Edit Distance
Create a useful order8 lessons
- Sort starts to keep only one open union component
- Insert Interval
- Keep the earliest finishing compatible range to preserve future room
- Track active end times to find peak room demand
- Compress all reachable forward choices into one prefix boundary
- Release a dependency only when its unmet-requirement count reaches zero
- Course Schedule II
- Reject an undirected edge whose endpoints already share a component
Change links6 lessons
- Save the remaining chain before reversing the current link
- Detect a cycle with one-link and two-link moves
- Keep a link gap until the leading pointer reaches the tail
- Attach the smaller sorted frontier and advance only its source
- Share prefix paths and mark complete words separately
- Branch at wildcards and require an exact terminal match
Complete core coverage32 lessons
- Contains Duplicate
- Maximum Subarray
- Best Time to Buy and Sell Stock
- Maximum Product Subarray
- Number of 1 Bits
- Counting Bits
- Missing Number
- Reverse Bits
- Sum of Two Integers
- Remove the final coin and reuse the best smaller total
- Longest Increasing Subsequence
- Launch words only from completely segmentable prefixes
- Combination Sum IV
- House Robber II
- Add parse counts only for valid final tokens
- Unique Paths
- Graph Valid Tree
- Number of Connected Components
- Meeting Rooms: Make Every Conflict an Adjacent Boundary
- Reorder List
- Set Matrix Zeroes
- Spiral Matrix
- Rotate Image
- Valid Palindrome
- Longest Palindromic Substring
- Palindromic Substrings
- Encode and Decode Strings
- Construct Tree From Preorder and Inorder Traversal
- Validate Binary Search Tree
- Kth Smallest Element in a BST
- Lowest Common Ancestor in a BST
- Join direct key lookup to a doubly linked recency order
Practical AI coding8 lessons
Hard problems10 lessons
- Minimum Window Substring
- Split Array Largest Sum
- Largest Rectangle in Histogram
- Binary Tree Maximum Path Sum
- Serialize and Deserialize Binary Tree
- Longest Increasing Path in a Matrix
- Infer only forced character precedences, then order the graph
- Traverse board paths and dictionary prefixes together
- Merge K Sorted Lists
- Find Median From Data Stream
Visual review
Review the complete library visually.
JavaScript adds one-visual navigation and the explanation panel. Every lesson remains available through the library.
Browse all books