Course Schedule
Introduction to Machine Learning • Fall 2026
Introduction
Sep 1
1
Introduction and Logistics
Why build intelligent machines, a brief history of AI, and how this course works
Week note for this session
How to study this session
- Explore the logistics and schedule pages on www.intro2ml.com
- reread the Introduction and Logistics slides.
- Set up Python per the logistics page for next Tuesday.
Preparation
- Course introductory note and takeaways references
Lecture
- Introduction and Logistics interactive
- Slides as lectured (PDF) slides
References
Homework
-
How will you use AI in this course?
conversation
This is an optional conversation with the course AI tutor, on the last slide of lecture 1.
Sep 3
2
Data, Models, and Python
Week note for this session
How to study this session
- Problem Set 0 is posted here: https://intro2ml.com/materials/assignments/hw0/
- Think of Data and Models you encounter every day.
Lecture
- Data, Models, and Python interactive
- Slides as lectured (PDF) slides
References
References
- Data Visualization Example (coming soon) Recommended
Sep 8
3
Math and Python Review - Your Computational Toolkit
Linear algebra and its computational implementation
How to study this session
- Review the math and python review notebooks
- Test your knowledge with the in-slide quizzes/questions
Preparation
Lecture
- Overview slides interactive
- Slides as lectured (PDF) slides
- Python Introduction notebook
- Vectors And Basics notebook
- Matrices And Operations notebook
- Matrix Properties And Calculus notebook
- Data Reading And Plotting notebook
Function Approximation
Sep 10
4
Supervised Learning and Linear Regression
First machine learning algorithm and foundational concepts
How to study this session
- Read CS229 notes Part I, sections 1.1-1.2
- Go through the interactive linear regression slides and explore each widget
- Watch the videos in the references if you're struggling with some concepts
- Start PS1 (posted today)
Preparation
Lecture
- Supervised Learning and Linear Regression interactive
- Slides as lectured (PDF) slides
- Notes with Code notebooks
References
- Interactive introduction to linear regression references
- 2025 PDF slides slides
- My video on Linear Regression references
- A 3-minute Overview references
Sep 15
5
Feature Engineering and Generalization
From raw data to meaningful features, avoiding overfitting
How to study this session
- Review generalization slides
- Continue PS1
Lecture
- Feature Engineering and Generalization interactive
- Slides as lectured (PDF) slides
Sep 17
6
Quiz 1, then Feature Engineering in Practice
The coding half of lecture 5: scikit-learn, train/test splits and choosing a model
Before class
- Quiz 1 covers sessions 1 to 4: supervised vs unsupervised learning, linear models in vector form, the train/validation/test split
- Have Python and scikit-learn working on your machine; the video tutorial shows the setup
Takeaways
- In scikit-learn every model is fit, then predict; the feature engineering happens before fit
- The held-out set is the only honest estimate of how a model will do on new data
- Model choice is an experiment: compare validation error across candidates, do not guess
How to study this session
- Redo the coding walkthrough from the slides in your own notebook, with a dataset of your choice
- Watch the scikit-learn video tutorial, then try Module 1 of the Inria MOOC
- Continue PS1 (due Sep 23)
Lecture
References
Sep 22
7
Classification and Logistic Regression
From regression to classification with probabilistic models
Takeaways
- Covered in class up to the two-feature decision boundary; softmax, metrics and the hands-on continue on Sep 24
How to study this session
- Go through the interactive logistic regression slides
- Compare the MSE vs cross-entropy loss surfaces in the slides
- PS2 Problems 3 and 4 are on this material (due Oct 8)
Preparation
Lecture
- Interactive Classification and Logistic Regression slides interactive
- Slides as lectured (PDF) slides
- Reference PDF slides slides
Sep 24
8
Classification II: Softmax, Metrics and a Hands-on Dataset
The rest of logistic regression, many classes, and your first classification analysis
Before class
- Reread the first half of the logistic regression deck up to the two-feature boundary; the session starts there
- Have Python and scikit-learn running: the hands-on part is you fitting a classifier, not watching one
Takeaways
- The decision boundary is where the score is zero; the margin is how far the closest point sits from it
- Accuracy is the wrong compass when classes are imbalanced; report precision and recall at the threshold you deploy
- Softmax regression is logistic regression with one score per class, normalised by the exponentials
- Analysing a dataset means: look at it, pick a question, fit, hold out, and read the confusion matrix
How to study this session
- Finish the hands-on analysis at home if you did not in class; compare accuracy, precision and recall on a held-out split
- Derive the gradient of the cross-entropy loss yourself, then check it against the slide
- Try the same dataset with sklearn's LogisticRegression and compare with your own gradient descent
Preparation
Lecture
Probabilistic Reasoning
Sep 29
9
Maximum Likelihood Estimation and Generalized Linear Models
Foundations of probabilistic reasoning and statistical learning
How to study this session
- Review the MLE slides and rederive least squares from the Gaussian likelihood, and cross-entropy from the Bernoulli one
- Read CS229 Sections 1.3 and 2.1; Chapter 3 on GLMs if you want the general picture
- PS2 is posted (due Oct 8)
Preparation
Lecture
- Interactive MLE and GLM slides interactive
- Slides as lectured (PDF) slides
References
Oct 1
10
Generative Learning and Language
Working with Language and the Naive Bayes Algorithm
How to study this session
- Review the generative learning slides: Naive Bayes on the spam messages, GDA on the penguins, and the n-gram language model
- Continue PS2 (due Oct 8)
- Run the Naive Bayes from scratch notebook from the slides on your own text
Preparation
Lecture
References
- 2025 PDF slides slides
Deep Learning
Oct 6
11
Introduction to Neural Networks
From linear models to deep networks
Takeaways
- A layer is a matrix followed by a squash. Without the squash, a stack of layers collapses into a single matrix, so it is no better than linear regression.
- A hidden layer is a learned feature map: the network chooses the features instead of you, and what it chooses rarely looks like a feature a person would name.
- One hidden layer can approximate any continuous function; depth does it with fewer units, by building features of features.
- On real handwritten digits a network beats a flat boundary only when it has enough data, and a fully connected layer has no idea that nearby pixels belong together: shift every digit by two pixels and both models fail.
- Backpropagation is the chain rule run backwards: one forward pass stores every activation, one backward pass reuses them to get every gradient.
- Covered in class up to slide 24 of the neural networks deck; the rest, with the handwritten digits example, continues on Oct 8
How to study this session
- Go back through the slides and redo the interactive parts: build AND, OR, NAND and NOR with the McCulloch-Pitts neuron, watch the network bend its boundary around XOR, and draw a curve for the one-hidden-layer network to approximate
- Run "A network in twelve lines" and "Run it on the digits" from the slides, then the Python Neural Network Example notebook
- Read CS229 notes, Chapter 7, Sections 7.1 and 7.2
- Finish PS2 (due Thursday 8 October, 23:59)
Preparation
Lecture
- Introduction to Neural Networks interactive
- Python Neural Network Example notebook
References
Oct 8
12
Backpropagation, Computation Graphs and Hands on
A deeper dive into the inner working of deep learning
Lecture
References
- Pytorch Basics notebook
- Neural Network from Scratch notebook
- Deep Learning for MNIST notebook
- Tensorflow Playground references
- 2025 PDF slides slides
Oct 13
13
Advanced Neural Networks
Advanced Neural network architectures
Before class
- Optional: the CNN and RNN cheat sheets and videos listed under Preparation. The deck does not assume them.
Takeaways
- A network is a composition of differentiable functions, and backpropagation trains any composition. A new architecture is a choice of pieces, not a new way to learn.
- An architecture is an assumption about the data. A right one saves data; a wrong one cannot be learned away. Moved two pixels, our digits fell from 96.5% to 32.8% for the fully connected network and stayed at 94.8% for the convolutional one; rotated 45 degrees, both fail.
- Recurrent networks carry a hidden state through a sequence, and their gradient through time vanishes; the LSTM's gated cell lets memory through. On Beirut's temperature memory buys about a tenth of a degree, because tomorrow is mostly in today.
- Attention lets every part weigh every other part in one step. It assumes the least, so it needs the most data.
How to study this session
- Go through the deck's five parts (images, sequences, without labels, relations, the map) and for each architecture write one line: what it assumes about the data, and what happened on our data when the assumption was wrong.
- Use the two-pixel shift and rotation widgets to check the numbers in the takeaways yourself.
- Thursday is a hands-on lab with a quiz.
Preparation
- CNN and RNN cheat sheet references
- What is a convolution? references
- CNN introduction notes (CS231n) references
- CNN introduction video (CS231n) references
- Introduction to Recurrent Neural Networks (CS231n) references
- RNN overview references
Lecture
- Why Are There So Many Neural Networks? interactive
References
- 2025 PDF slides slides
Oct 15
14
CNNs, RNNs and AI Assistants
Hands-on lab: Two Pixels Over
Lecture
Unsupervised Learning
Oct 20
15
Introduction to Unsupervised Learning & K-Means Clustering
Introduction to clustering and unsupervised pattern discovery
Preparation
-
CS229 Notes, Chapter 10
references
Implement and compare clustering algorithms
Lecture
References
- 2025 PDF slides slides
Oct 22
16
Principal Component Analysis
Principal component analysis and Dimensionality Reduction
Lecture
- How Many Numbers Does a Day of Levant Weather Need? (PCA and the SVD) interactive
- Basic PCA Coding Example notebook
- SVD for Image Compression notebook
- MNIST Dataset Dimensionality Reduction notebook
References
- 2025 PDF slides slides
Oct 27
17
Unsupervised Learning Solving Session
PCA and the SVD, Gaussian mixtures and EM, autoencoders, t-SNE and UMAP, hierarchical clustering.
Lecture
References
- The full decks: PCA and the SVD interactive
- The full decks: Gaussian mixtures and EM interactive
- The full decks: autoencoders, t-SNE, UMAP and clustering interactive
- 2025 PDF slides slides
Nov 3
18
Gaussian Mixtures and Other Unsupervised Methods
Gaussian mixtures and EM, autoencoders, t-SNE and UMAP, hierarchical clustering
Lecture
References
- Unsupervised Learning Solving Session (Oct 27, open for practice) interactive
- Unsupervised-Learning-Overview assignment
- 2025 PDF slides slides
Midterm
Nov 5
19
Midterm Review
A story-format review of the first half
Before class
- Reread the takeaways of every session since linear regression and mark the ones you could not explain to a classmate
- Bring the questions you still have about the problem sets and quizzes; the session is built around them
Takeaways
- Every model in the course is five choices: a hypothesis, a loss, an optimizer, a regularizer and an evaluation. Naming all five turns most exam questions into one of them.
- A loss is a noise model in disguise: Gaussian noise gives least squares, Bernoulli noise gives cross-entropy, and a Gaussian prior on the parameters gives the ridge penalty.
- The normal equations work when the cost is quadratic and the columns of the design matrix are independent; otherwise use ridge or gradient descent, with a step small enough not to overshoot.
- Training error measures the fit, not the model: choose on a validation set or by k-fold cross-validation, report the test set once, and compare with the honest baseline.
How to study this session
- Do the worked problems in the review deck with the answers closed, then open them one at a time: the design matrix, the normal equations by hand, a pass of SGD, backpropagation on one number, Naive Bayes with the prior, the likelihood behind ridge
- Answer the twenty practice questions at the end of the deck before opening the hints
- Write your formula sheet as you go: one sheet, handwritten by you, is allowed in the exam
- The midterm is on Tuesday 10 November, in class, 75 minutes, with a calculator
Lecture
Nov 10
20
Midterm Exam
In class, 75 minutes
Nov 12
22
Midterm Correction
The midterm, problem by problem
Project Progress
Nov 17
23
Project Progress Presentations
Each group presents where its project stands
Nov 19
24
Project Peer Review
Peer review of the projects
Reinforcement Learning
Nov 24
25
Reinforcement Learning I
Agents, Markov decision processes, the Bellman equation and value iteration
Takeaways
- An MDP is states, actions, transition probabilities, rewards and a discount. A policy picks an action in every state.
- The value of a state is the expected discounted reward from there. For a fixed policy it solves |S| linear equations, the Bellman equation.
- Value iteration repeats the Bellman update with a max until nothing changes: on our grid, 74 sweeps, and the best trip from (1,1) is worth 94.4.
- All of this needs the map: P and R. On Thursday the robot has to do without it.
How to study this session
- Go through parts 1 to 3 of the deck again. Before opening the answer slide, redo the first two sweeps of value iteration on the board example by hand.
- Answer the three questions inside the deck: on the discount, on the Bellman equation, and on the number of sweeps.
- Thursday continues in the same deck, from part 4.
Preparation
Lecture
References
- 2025 PDF slides slides
Nov 26
26
Reinforcement Learning II
Learning without a map: Q-learning, exploration, policy gradients, and rewards that are gamed
Takeaways
- Without a map, the robot learns from its own trips: count to build P, or update Q directly with one sampled step (SARSA, Q-learning).
- Learning needs exploration. In the league, never exploring scored 22.2 at best and the best setting 61.6.
- When states are too many to list, a function stands in for the table; a policy gradient trains the policy itself.
- An agent optimizes the reward we wrote, not the one we meant: with home paying once the robot parks on the battery. RLHF learns the reward from people, and can be gamed the same way.
How to study this session
- Go through parts 4 to 6 of the deck again, and rerun the Q-learning league with your own exploration rate and learning rate.
- Answer the three questions inside the deck: on the Q-learning target, on the policy gradient, and on the reward the robot games.
Preparation
Lecture
References
Homework
-
Problem Set 5: Reinforcement Learning
assignment
Optional, a bonus on the assignments grade. Due Saturday 5 December at 23:59.
Advanced Topics
Dec 1
27
Foundation Models
Large-scale models and transfer learning
References
- 2025 PDF slides slides
Projects and Closing
Dec 3
28
Final Project Presentations and Course Close
Final presentations and farewell
Before class
- Prepare your team's final presentation. Aim to communicate the problem, approach, and main insights clearly to a general ML audience. See the project page: https://intro2ml.com/project/
How to study this session
- The final report is due Sunday 6 December at 23:59. Its structure and rubric are on the project page: https://intro2ml.com/project/
- Problem Set 5 is optional, counts as a bonus on the assignments grade, and is due Saturday 5 December at 23:59: https://intro2ml.com/materials/assignments/hw7/
This schedule is dynamically generated from lecture metadata. Materials and links are updated as they become available.