Lecture slides, labs, and projects for the Machine Learning course at Westlake University.
- Instructor: Tao Lin
- Lectures: Tuesday, 13:30–14:15, 14:20–15:05, and 15:10–15:55
- Exercise sessions: Thursday, 08:00–09:35
- Location: YunGu campus, E13-103
- Canvas: Course page
- Course policies and assessment: Course information sheet
- Lecture schedule and slides
- Exercise schedule and labs
- Lecture review notes
- Project 1: description, starter files and data, public tests
- Project 2 — Auto-Research Challenge: description, code and setup guide
- Sample exam
- Lab report template
- Python setup guide and NumPy primer
- Lecture 2 interactive exercises
| Component | Weight | Deadline |
|---|---|---|
| Graded assignments | 20% | See the exercise schedule below |
| Project 1 (individual) | 10% | Oct. 22, 23:59 |
| Project 2 — Auto-Research Challenge (individual) | 30% | Dec. 24, 23:59 |
| Final exam | 40% | See Canvas for exam arrangements |
Project deadlines are in Beijing time (UTC+8). See the course information sheet and project descriptions for assessment and submission requirements.
Links point to published materials. Future topics are tentative. Reading copies, where available, show complete slides without incremental reveals.
| Date | Lecture | Topics | Materials |
|---|---|---|---|
| Sep. 01 | 0 & 1 · Foundations of Data Science | Course logistics; introduction to ML; linear algebra and probability review | Lecture 0 · Lecture 1 |
| Sep. 08 | 2 · Linear Models for Regression | Linear models, residuals and losses, gradient descent, least squares, and numerical stability | Slides · Interactive exercises |
| Sep. 15 | 3 · Linear Models for Regression | Least squares; maximum likelihood; overfitting and underfitting; ridge regression and Lasso | Slides |
| Sep. 22 | 4 · Generalization and Model Selection | Generalization; bias–variance decomposition; double descent; model selection and validation | Slides |
| Sep. 29 | 5 · Linear Models for Classification | From bias–variance to classification; logistic regression and its optimization | Slides |
| Oct. 13 | 6 · Generalized Linear Models | Exponential family and generalized linear models | Slides |
| Oct. 20 | 7 · Generative Learning Algorithms | Discriminative and generative models; GDA, LDA, Naïve Bayes, and logistic regression | Slides |
| Oct. 27 | 8 · Unsupervised Learning and Mixture Models | GDA and Naïve Bayes recap; K-means; Gaussian mixtures; EM | Full slides · EM-focused version |
| Nov. 03 | 9 · Nonparametric Prediction | K-nearest neighbors; decision trees; bagging and random forests | Slides |
| Nov. 10 | 10 · Kernel Methods and SVMs | Maximum-margin classification; soft-margin SVM; duality; KKT conditions; kernels | Slides |
| Nov. 17 | 11 · Neural Networks: Structure and Representation | Learned features; forward computation; XOR; ReLU constructions; function approximation and depth | Slides · Reading copy |
| Nov. 24 | 12 · Learning Neural Networks | Backpropagation; activations; CNNs; recurrent networks and gated memory; attention and Transformers | Slides · Reading copy |
| Dec. 01 | 13 · Optimization for Deep Learning | Stochastic and mini-batch gradient descent; momentum; adaptive optimizers; AdamW; Lookahead; SAM; Muon | Slides |
| Dec. 08 | 14 · Beyond Supervised Learning | Zero-shot and few-shot learning (planned) | To be published |
| Dec. 15 | 15 · Self-Supervised Learning and LLMs | Self-supervised learning; large language models (planned) | To be published |
| Dec. 22 | Recitation | Course review | To be published |
Lecture 8's EM-focused version repeats the EM section of the full slides; start with the full slides.
Lab links open folders containing the available handouts, notebooks, and supporting files. Lab numbers follow the material folders and are not consecutive in teaching order. Future sessions are tentative.
| Date | Session | Releases and deadlines |
|---|---|---|
| Sep. 03 | Lab 1: Mathematical foundations (graded) | |
| Sep. 10 | Lab 2: Python, NumPy, and PyTorch | Lab 1 due; Project 1 released |
| Sep. 17 | Lab 3: Linear regression | |
| Sep. 24 | Lab 4: Generalization and model selection (graded) | |
| Oct. 08 | Lab 5: Classification | Lab 4 due |
| Oct. 15 | Project 1 Q&A | |
| Oct. 22 | Project 1 Q&A | Project 1 due; Project 2 released |
| Oct. 29 | Lab 8: Mixture models and EM | |
| Nov. 05 | Lab 7: Nonparametric methods | |
| Nov. 12 | Lab 6: Support vector machines (graded) | |
| Nov. 19 | Lab 9: Neural networks | Lab 6 due |
| Nov. 26 | Lab 10: Neural network training and CNNs (graded) | |
| Dec. 03 | Lab 11 (graded; to be published) | Lab 10 due |
| Dec. 10 | Lab 11 follow-up | Lab 11 due |
| Dec. 17 | Lab 12 (to be published); Project 2 Q&A | |
| Dec. 24 | Project 2 Q&A | Project 2 due |