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
75 min Lecture
Course introduction covering learning objectives, expectations, and motivation. Exploration of AI's transformative impact on society and discussion of ethical implications in AI development and deployment.
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.
Homework
Sep 3
2
Data, Models, and Python
75 min Lecture
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.
References
  • Data Visualization Example (coming soon) Recommended
Sep 8
3
Math and Python Review - Your Computational Toolkit
Linear algebra and its computational implementation
75 min Lecture
Comprehensive review of mathematical foundations essential for machine learning, combined with hands-on Python implementation. You will bridge the gap between mathematical notation and computational implementation through interactive notebooks that combine linear algebra concepts with NumPy code examples.
How to study this session
  • Review the math and python review notebooks
  • Test your knowledge with the in-slide quizzes/questions

Function Approximation

▼
Sep 10
4
Supervised Learning and Linear Regression
First machine learning algorithm and foundational concepts
75 min Lecture
Introduction to supervised learning paradigm with linear regression as the first ML algorithm. Mathematical foundations, implementation, and practical applications with hands-on coding.
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)
Sep 15
5
Feature Engineering and Generalization
From raw data to meaningful features, avoiding overfitting
75 min Lecture
Deep dive into feature engineering techniques and understanding generalization. Covers bias-variance tradeoff, cross-validation, and regularization methods.
How to study this session
  • Review generalization slides
  • Continue PS1
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
75 min Lecture
Quiz 1 on the first four sessions, then the practical half of feature engineering and generalization: fitting, validating and comparing models in scikit-learn.
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)
Sep 22
7
Classification and Logistic Regression
From regression to classification with probabilistic models
75 min Lecture
Introduction to classification problems using logistic regression. Covers sigmoid function, maximum likelihood estimation, and decision boundaries.
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)
Sep 24
8
Classification II: Softmax, Metrics and a Hands-on Dataset
The rest of logistic regression, many classes, and your first classification analysis
75 min Lecture
Second half of the logistic regression deck: decision boundary geometry and margin, precision and recall, softmax regression for many classes. Then a short hands-on exercise: a dataset, a question, and your own 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

Probabilistic Reasoning

▼
Sep 29
9
Maximum Likelihood Estimation and Generalized Linear Models
Foundations of probabilistic reasoning and statistical learning
75 min Lecture
Deep dive into maximum likelihood estimation and generalized linear models, at the foundation of statistical learning theory.
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)
Oct 1
10
Generative Learning and Language
Working with Language and the Naive Bayes Algorithm
75 min Lecture
Working with language, inferring algorithms from space v. non-spam, and the Naive Bayes Algorithm as an example for generative learning
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
References

Deep Learning

▼
Oct 6
11
Introduction to Neural Networks
From linear models to deep networks
75 min Lecture
Where the neuron came from (McCulloch and Pitts, Hodgkin and Huxley), the linear model drawn as a network, activations, XOR and universal approximation, what a network learns from 20,000 handwritten digits, a network in numpy and PyTorch, and a first look at training by gradient descent and backpropagation.
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)
Oct 8
12
Backpropagation, Computation Graphs and Hands on
A deeper dive into the inner working of deep learning
75 min Lecture
The chain rule by hand and on a computation graph, backpropagation from scratch in numpy on real digits, the same network in PyTorch, the symmetry exercise, and what to check when training goes wrong.
Oct 13
13
Advanced Neural Networks
Advanced Neural network architectures
75 min Lecture
Advanced deep learning architectures from fully connected networks, to autoencoders, recurrent neural networks, convolutional neural networks, etc. - snapshots from CS231n
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.
References
Oct 15
14
CNNs, RNNs and AI Assistants
Hands-on lab: Two Pixels Over
75 min Lecture
A hands-on lab on neural networks: make a network read digits moved two pixels (in the browser, or with a convolutional network), or forecast Beirut's temperature with a recurrent network. Teams post every run to a live board, choose settings on a validation set and meet the hidden test set at the end, then solve six problems by hand.

Unsupervised Learning

▼
Oct 20
15
Introduction to Unsupervised Learning & K-Means Clustering
Introduction to clustering and unsupervised pattern discovery
75 min Lecture
Introduction to clustering algorithms with focus on K-means. Covers cluster analysis, centroid-based clustering, and evaluation metrics for unsupervised learning.
Preparation
References
Oct 22
16
Principal Component Analysis
Principal component analysis and Dimensionality Reduction
75 min Lecture
Dimensionality reduction. Focus on Principal Component Analysis (PCA), SVD, and applications to data compression and visualization.
References
Oct 27
17
Unsupervised Learning Solving Session
PCA and the SVD, Gaussian mixtures and EM, autoencoders, t-SNE and UMAP, hierarchical clustering.
75 min Lecture
A scored session in pairs, with the teaching assistants: PCA and the SVD from the SVD on, the core of Gaussian mixtures and the EM algorithm (soft assignment as a conditional probability, the E-step and the M-step by hand), autoencoders, t-SNE and UMAP, and hierarchical clustering. Bring a laptop and sign in on learn.sematlas.com.
Nov 3
18
Gaussian Mixtures and Other Unsupervised Methods
Gaussian mixtures and EM, autoencoders, t-SNE and UMAP, hierarchical clustering
75 min Lecture
Gaussian mixtures and the EM algorithm on the Palmer penguins, then autoencoders against PCA on handwritten digits, t-SNE and UMAP maps of the same digits, and hierarchical clustering.

Midterm

▼
Nov 5
19
Midterm Review
A story-format review of the first half
75 min 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
75 min Exam
In class, 75 minutes.
Nov 12
22
Midterm Correction
The midterm, problem by problem
75 min Review
The midterm, problem by problem.

Project Progress

▼
Nov 17
23
Project Progress Presentations
Each group presents where its project stands
75 min Project
Each group presents where its project stands.
Nov 19
24
Project Peer Review
Peer review of the projects
75 min Project
Peer review of the projects.

Reinforcement Learning

▼
Nov 24
25
Reinforcement Learning I
Agents, Markov decision processes, the Bellman equation and value iteration
75 min Lecture
What an agent is and what it is trying to do, Markov decision processes, the value of a policy and the Bellman equation, and value iteration when the robot knows the map.
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.
References
Nov 26
26
Reinforcement Learning II
Learning without a map: Q-learning, exploration, policy gradients, and rewards that are gamed
75 min Lecture
Learning from the robot's own trips when it does not know the map (Q-learning and SARSA), why learning needs exploration, function approximation and policy gradients, and what happens when the reward is not what we meant.
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.
Homework

Advanced Topics

▼
Dec 1
27
Foundation Models
Large-scale models and transfer learning
75 min Lecture
Foundation models: large pre-trained models that can be adapted to many downstream tasks. Self-supervised pre-training, transfer learning and fine-tuning.
References

Projects and Closing

▼
Dec 3
28
Final Project Presentations and Course Close
Final presentations and farewell
75 min Project
Final project presentations, in class, and the close of the course.
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.