
Before you can trust any machine learning model, you need to understand what it means to estimate an unknown quantity from a sample, and how to judge whether that estimate is any good. This chapter covers population parameters vs. sample statistics, the properties of good estimators (bias, variance, mean squared error, consistency), and the three classical methods for deriving estimators: method of moments, maximum likelihood, and least squares. This is the statistical bedrock underneath every supervised model you will later fit.
Here estimation theory is translated into the specific vocabulary of machine learning: the bias–variance tradeoff, overfitting vs. underfitting, the curse of dimensionality, cross-validation, ensemble methods (bagging, boosting, stacking), and the metrics used to judge a model's performance (confusion matrix, AUC-ROC, RMSE).
With the concepts in hand, this chapter is a tour of the supervised learning toolbox: logistic regression, support vector machines, decision trees, random forests, naïve Bayes, k-nearest neighbours, and linear regression, followed by feature selection techniques (univariate selection, recursive feature elimination, PCA-based, and feature importance).
How do we group similar observations together with no predefined categories? This chapter covers the K-means algorithm in depth, its expectation-maximization mechanics, implementation, and the elbow method and silhouette analysis used to choose the right number of clusters.
How do we compress many correlated variables into a handful of informative ones without losing the essence of the data? This chapter walks through the five steps of PCA (standardization, covariance matrix, eigendecomposition, feature vector construction, and projection), and its uses in visualization and speeding up downstream ML algorithms.
How do we find structure in unstructured text? This chapter introduces topic modelling (Latent Dirichlet Allocation) as an unsupervised technique for uncovering the hidden thematic structure of a corpus of documents.
How do we analyze relationships and connections rather than rows and columns? This chapter introduces graph theory fundamentals (nodes, edges, degree, centrality) and applies them to real network data (e.g., Facebook social graph data) to identify influential nodes and communities.
What makes RL fundamentally different from supervised and unsupervised learning, and why those differences matter. This chapter formalises the agent-environment interface, introduces the Markov Decision Process (MDP: states, actions, transition probabilities, rewards, and the discount factor), defines the central objects of RL (policy, value functions, and the Bellman equations), and examines the exploration vs. exploitation dilemma through the multi-armed bandit problem, comparing ε-greedy, UCB, and Thompson Sampling strategies empirically.
How do we find the optimal policy when the environment's dynamics are unknown? This chapter traces the path from model-based dynamic programming (policy iteration, value iteration) through Monte Carlo methods to temporal-difference learning, culminating in the two workhorse algorithms of tabular RL: SARSA (on-policy) and Q-Learning (off-policy). A full worked example applies Q-Learning to the FrozenLake environment, examining how the choice of learning rate, discount factor, and exploration schedule affects convergence.
Tabular methods break down when the state space is large or continuous. This chapter introduces function approximation via neural networks, building up to the Deep Q-Network (DQN) with its two key innovations, experience replay and the target network, that transformed RL into a practical tool for high-dimensional problems. It then covers policy gradient methods (REINFORCE), actor-critic architectures, and Proximal Policy Optimization (PPO), the current community workhorse for continuous-control tasks.
Every concept in this course has a counterpart in the terminal. This module is where they meet.
Claude Code is an AI pair programmer that runs in your terminal, it reads your files, executes your code, and reasons alongside you in real time. Unlike a web assistant, it has full context of your project: what you have built, what failed, and what the code actually says. Working with it is less like asking questions and more like having a senior engineer at your shoulder who never gets tired of your debugging sessions.
Each practice lab is designed to be run interactively with Claude Code from the ml-claude-code/ folder. A single slash command loads the lab, walks you through numbered phases, and pauses at key decision points so you interpret results before you proceed. Three specialist advisors are available throughout: Elena for statistical rigour, Jamie for engineering and debugging, and Marcus for business framing.
Access it at https://machine-learning-with-claude-code.vercel.app and keep it open alongside your terminal. That combination — website for reference, terminal for action — is the working environment this module is built around.
Most machine learning courses teach you how to run an algorithm. This one teaches you why it works, when to use it, and how to defend it to someone who is paying attention.
Machine Learning (with Claude Code) covers all three paradigms of machine learning, namely, supervised, unsupervised, and reinforcement learning, in a single, coherent course built from first principles. You won't be copying and pasting code you don't understand. You will be writing it, breaking it, fixing it, and explaining it.
What you'll build:
Across three modules and over twenty hands-on labs, you will fit logistic regression and random forest models , compress high-dimensional data with PCA, uncover hidden topics in document corpora with Latent Dirichlet Allocation, analyse influence in a real social network, train a Q-learning agent to navigate FrozenLake from scratch, implement a Deep Q-Network in PyTorch that learns to balance a pole on a cart, and apply Proximal Policy Optimization via Stable-Baselines3 to land a spacecraft. Every lab uses a real dataset or a real environment. None of them are toy examples dressed up to look impressive.
How you'll learn:
The course runs inside your terminal using Claude Code as your AI pair programmer. Each lab is a live conversation; you write code, hit errors, and work through them with guidance rather than pre-recorded solutions. Three specialist advisor agents are available throughout: Elena for statistical rigour, Jamie for debugging and engineering judgment, and Marcus for translating results into decisions a business can act on. This mirrors how machine learning is actually practised on a team.
What makes this course different:
Most courses skip the foundations that make the algorithms make sense. This one starts with estimation theory, bias, variance, mean squared error, maximum likelihood, because those concepts are the reason a random forest generalises better than a single decision tree, and the reason your DQN training can collapse if you remove the target network. You will leave knowing not just how to run the models, but why they behave the way they do.
By the end, you will be able to look at a new problem, identify which paradigm of machine learning it calls for, choose an appropriate algorithm, build and evaluate it in Python, and explain what it tells you to someone who has never heard of a confusion matrix.
Enrol now and start building machine learning from the ground up, with an AI pair programmer in your corner every step of the way.