AI Foundations and Experimental Thinking
12 lessons · About 4 h · Starts with “Meet AI: Patterns, Predictions, and Decisions”
Start with the basics of machine learning, then move through neural networks, language models, agents, and real AI systems. Each level builds on what you learned before.
Start at Level 0 →Start with prediction and machine learning, then learn how neural networks and representations work.
12 lessons · About 4 h · Starts with “Meet AI: Patterns, Predictions, and Decisions”
18 lessons · About 7 h · + optional Python ~2.8 h · Starts with “What Machine Learning Is Really Optimizing”
15 lessons · About 7 h · + optional Python ~1.8 h · Starts with “Why Neural Networks”
14 lessons · About 7 h · + optional Python ~1.3 h · Starts with “Representations: What Networks Learn”
Learn how text becomes tokens, how attention and Transformers work, then train a small language model.
14 lessons · About 5 h · + optional Python ~0.9 h · Starts with “Text Is Not Numbers Yet”
16 lessons · About 7 h · + optional Python ~0.9 h · Starts with “Why Attention”
14 lessons · About 6 h · + optional Python ~1.0 h · Starts with “Decoder-Only Language Models”
Practice prompting, fine-tuning, and retrieval-augmented generation, and learn when to use each approach.
13 lessons · About 7 h · Starts with “How Modern LLMs Behave”
14 lessons · About 9 h · Starts with “When to Fine-Tune”
14 lessons · About 9 h · Starts with “Why Retrieval-Augmented Generation”
Learn how models use tools, follow structured workflows, and run as agents with clear limits.
13 lessons · About 9 h · + optional Python ~1.3 h · Starts with “LLMs That Use Tools”
13 lessons · About 9 h · Starts with “What Makes an Agent”
13 lessons · About 9 h · + optional Python ~1.7 h · Starts with “Agent Harnesses and Runtime Structure”
Connect AI systems, serve them in production, evaluate their behavior, and handle safety and security.
12 lessons · About 9 h · Starts with “Why Interoperability Matters”
13 lessons · About 10 h · Starts with “From Notebook to Service”
13 lessons · About 11 h · Starts with “Evaluation as a System”
Already comfortable with Python? Each module starts with a skip check.
These non-numbered guides are optional and do not affect lesson progress or core level hours.
| Module | When | What you'll cover | Time | Link |
|---|---|---|---|---|
| P1 — Reading Python for ML Labs (Optional) | Before L1.1 | Python syntax, lists, loops, imports and NumPy reading | 55 min | Open guide |
| P2 — NumPy Arrays and Shapes (Optional) | Before L1.1 | NumPy arrays, indexing, shapes and axis operations | 55 min | Open guide |
| P4 — Reading scikit-learn Code (Optional) | Before L1.18 | fit/predict, data splits, pipelines and cross-validation | 55 min | Open guide |
| P3 — Writing Small Python Functions (Optional) | Before L2.3 | Functions, conditions, loops and writing TODO solutions | 110 min | Open guide |
| P5 — Reading PyTorch Code + Your First Colab Notebook (Optional) | Before L3.11 | PyTorch tensors, nn.Module, gradients and Colab | 80 min | Open guide |
| P6 — Text Processing in Python (Optional) | Before L4.1 | Strings, regex, counters and Unicode | 55 min | Open guide |
| P7 — Tensor Shapes for Transformers (Optional) | Before L5.7 | Tensor dimensions, multi-head attention and masking | 55 min | Open guide |
| P8 — Running Python Projects Locally (Optional) | Before L6.13 | Virtual environments, CLI arguments, paths and JSON | 60 min | Open guide |
| P9 — Writing Reliable Python: Contracts, Validation, Tests (Optional) | Before L10.1 | Function contracts, validation, exceptions and tests | 75 min | Open guide |
| P10 — Python for Real AI Services (Optional) | Before optional real-model Labs (L12–L15) | Async Python, HTTP routes, concurrency and service setup | 100 min | Open guide |
The numbered Lessons are a deliberate learning spine, not a catalog of every model family. Use this map to distinguish what you build, what you should recognize, and what is a useful specialized or frontier direction to explore later. Seeing a family here does not mean you have mastered it.
How can a model learn from examples that include the target it should predict?
Learn an inspectable weighted relationship for predicting a numeric target.
Turn a weighted score into a classification probability and inspect the resulting decision boundary.
Split feature space with learned questions and compare shallow and deep trees.
Combine deliberately varied trees to reduce dependence on one unstable fitted tree.
Build a sequence of small learners that correct remaining prediction error.
Predict from nearby training examples, making feature scale and the choice of k part of the model behavior.
Combine class probabilities with feature evidence under a simplifying conditional-independence assumption.
Choose a wide-margin decision boundary, with kernels available for some nonlinear similarity spaces.
Regularize linear models by penalizing large coefficients, with L1 and L2 penalties producing different behavior.
What structure can a model discover when examples do not come with a target label?
Group examples around learned centers so nearby points form a compact cluster.
Project data into a lower-dimensional space that preserves as much variation as possible along a few directions.
What structure should a network preserve when the input is spatial, sequential, or multimodal?
Reuse local pattern detectors across positions and build image representations.
Carry a learned state through ordered data and use gates to control memory.
Use attention to connect positions directly, then choose encoder, decoder, or encoder-decoder structure for the job.
Align representations from different modalities so related items can be compared in one learned space.
What changes when examples are connected by a graph or predictions must respect a real time axis?
Update node representations using relationships to neighboring nodes when the data is naturally a graph.
Predict future values from past observations while respecting chronology, seasonality, forecast horizon, and leakage boundaries.
What learning signal and generation loop turn a learned data distribution into a new sample?
Generate a sequence one next-token decision at a time from the visible prefix.
Learn to reverse controlled corruption, then generate by repeatedly denoising a noisy state.
Encode examples into a constrained latent distribution, sample latent points, and decode them into generated examples.
Train a generator against a discriminator so the generator learns to produce samples the discriminator finds convincing.
What changes when the learning signal comes from rewards, comparisons, or interaction rather than a direct target label?
Learn how an agent interacts through actions, rewards, policies, and returns before connecting those ideas to preference-based adaptation.
Connect human preference comparisons to reward-model signals and policy optimization, then evaluate what the proxy reward may miss.
Use preference data to compare outputs and adapt model behavior while keeping the evidence and objective explicit.
How can systems reduce serving cost or increase model capacity without assuming that one technique is always better?
Represent model numbers with fewer bits and measure the real memory, speed, quality, and compatibility tradeoffs.
Train a smaller student to imitate useful behavior from a larger teacher, then evaluate what was preserved or lost.
Route each token or example to a subset of expert networks so total parameter capacity and active computation can differ.