Important Links
- Syllabus (pdf), tentative course schedule (pdf), and prerequisite quiz (ungraded)
- Piazza (Announcements and discussion)
- Gradescope
- Brightspace (Grades only)
- Google Colab (Online computing environment including GPUs)
Course Project
- AI Course Project Track Descriptions
- Project Checkpoint 1: Preliminary Code and Results
- Project Checkpoint 2: Student Implementation and New Results
Assignments
Please review general instructions and submit assignments on Gradescope.
- (Optional bonus assignment) AI in the News
- Project Primer
- Linear Algebra, Numpy, and PCA Practice Questions
- PCA and Power Iteration Algorithms
- Building Classifiers (KNN, Logistic Regression, Model Evaluation); Notebook template: Notebook Template
- Image Classification in PyTorch (MLP, CNN, Pretrained); Notebook template: Notebook Template
- Transformers from Scratch; Notebook template: Notebook Template
- Tiny GRPO-Based RL Fine-Tuning of Language Model; Notebook template: Notebook Template
Optional textbooks
The bracketed acronym is used for referencing these books.
- [DD] Dive into Deep Learning by Aston Zhang, Zachary C. Lipton, Mu Li, and Alexander J. Smola, 2023. https://d2l.ai/
- [PPA] Patterns, predictions, and actions: A story about machine learning by Moritz Hardt and Benjamin Recht, 2022, https://mlstory.org/pdf/patterns.pdf
- [ML] Machine Learning: A Probabilistic Perspective by Kevin P. Murphy, 2012. https://ebookcentral.proquest.com/lib/purdue/detail.action?docID=3339490
- [PY] Python Data Science Handbook by Jake VanderPlas, 2016. https://jakevdp.github.io/PythonDataScienceHandbook/
- [DL] Deep Learning by Ian Goodfellow, Yoshua Bengio, and Aaron Courville, 2016. http://www.deeplearningbook.org
Lecture content by week
- Week 1 - Introduction to artificial intelligence
- Monday: Introduction to AI. See syllabus, course schedule, and course project links above.
- Wednesday: (Continued)
- Friday: (Continued)
- Week 2 - PCA and Linear Algebra
- Monday: Labor Day
- Wednesday: Wise and Effective Use of Large Language Models.
- Friday: Linear Algebra and Unsupervised Dimensionality Reduction via PCA. Review of linear algebra (notebook, pdf), Broadcasting rules in NumPy (and PyTorch) (notebook, pdf); Related reading: DL, Ch.2
- Week 3 - PCA and Linear Algebra
- Monday: (Continued).
- Wednesday: (Continued).
- Friday: Unsupervised Dimensionality Reduction via PCA (Part 2); PCA demo (notebook, pdf)
- Week 4 - Machine Learning
- Monday: Intro. to ML; Optional related reading: DL, Ch. 5.1
- Wednesday: K-nearest neighbors (KNN) and evaluating ML methods, (pdf); KNN Demo (notebook, pdf); Optional related reading: KNN Classifier Notes, DL, Ch. 5.2-5.3
- Friday: (KNN continued)
- Week 5 - Linear Models and Gradient Descent
- Monday: Linear and Logistic Regression; Optional related reading: PY, Linear regression, DL, Ch. 5.1.4 (short), ML, Ch. 7 and Ch. 8 (in-depth)
- Wednesday: Gradient Descent (notebook)
- Friday: Loss functions and regularization; Optional related reading: ML, Ch. 8 section 8.3
- Week 6 - Deep Learning
- Monday: Basics of deep learning
- Wednesday: (Continued) PyTorch and Automatic Differentiation (notebook, html)
- Friday: Basics of convolutional neural networks (CNN) (notebook, html); Optional related reading: DL, Ch. 9
- Week 7 - Convolutional Neural Networks
- Monday: (Continued);
- Wednesday: CIFAR-10 demo (notebook, html); BatchNorm and Residual Networks (notebook, html)
- Friday: (No class due to night exam)
- Week 8 - Recurrent Neural Networks
- Monday: (Fall break)
- Wednesday: Guest Lecture: Overparametrization
- Friday: (BatchNorm continued)
- Week 9 - Natural Language Processing / Recurrent Neural Networks
- Monday: Recurrent Neural Networks (RNN) (notebook); Character RNN Classification Demo (notebook); Character RNN Generation Demo (notebook)
- Wednesday: (RNNs continued); Attention and Transformers
- Friday: Demo of seq-2-seq language translation (notebook)
- Week 10 - Review of Probability
- Monday: (Attention and Transformers continued); Review of Probability; Optional related reading: DL, Ch. 3, ML, Ch. 2
- Wednesday: (Review of Probability continued);
- Friday: No class
- Week 11 - Density Estimation
- Monday: (Review of Probability continued)
- Wednesday: Density Estimation
- Friday: Autoencoders; Optional related reading: Introduction to VAEs by original authors (2019), Original VAE paper (2013), From Variational to Deterministic Autoencoders
- Week 12 - Generative Models
- Monday: (Autoencoders continued); Diffusion Models
- Wednesday: (Diffusion Models continued)
- Friday: (Diffusion models continued);
- Week 13 - Reinforcement Learning
- Monday: (Diffusion models continued); Introduction to Reinforcement Learning; Optional reading: Chapter 1 of Reinforcement Learing: An Introduction
- Wednesday: (Intro to RL continued)
- Friday: (Intro to RL continued); Multi-armed Bandits (notebook)
- Week 14 - Reinforcement Learning
- Monday: Markov Decision Processes
- Wednesday: (Thanksgiving break)
- Friday: (Thanksgiving break)
- Week 15 - Presentations
- Monday: (Project presentations)
- Wednesday: (Project presentations)
- Friday: (Project presentations)
- Week 16 - Presentations
- Monday: (Markov Decision Processes continued); Reinforcement Learning Algorithms
- Wednesday: (RL algorithms continued)
- Friday: (RL algorithms continued)