AIML

Artificial Intelligence
and Machine Learning

Work through the foundations of AI, search, machine learning and discovery, with interactive examples and class questions along the way.

20 lectures20 full-text handouts77 question slides126 interactive examples

Lectures by subject

The counts on each card distinguish teaching slides from question slides.

History of artificial intelligence

Lecture 0153 slides + 5 questions · 0 interactive examples

History of artificial intelligence · Part 1

Foundations and the birth of AI

Probability and learning from evidence · Computation, Turing and early neurons · The birth of AI and early learning systems
Lecture 0257 slides + 7 questions · 0 interactive examples

History of artificial intelligence · Part 2

From AI winters to generative models

AI winters and expert systems · Neural networks, data and computation · Deep learning, generative AI and structured decisions

Search algorithms

Lecture 0343 slides + 6 questions · 5 interactive examples

Search algorithms · Part 1

Problem formulation and uninformed search

States, paths, costs and the frontier · Breadth-first and depth-first search · Iterative deepening and lowest-cost-first
Lecture 0437 slides + 6 questions · 4 interactive examples

Search algorithms · Part 2

Heuristics and informed search

Heuristics and greedy search · A* and the conditions behind its guarantees · Branch-and-bound and choosing a strategy

Constraint satisfaction

Lecture 0537 slides + 6 questions · 4 interactive examples

Constraint satisfaction · Part 1

Modeling, backtracking and generalized arc consistency

Variables, domains, assignments and constraints · Backtracking and variable ordering · Constraint networks, support and GAC propagation
Lecture 0641 slides + 3 questions · 10 interactive examples

Constraint satisfaction · Part 2

Domain splitting and local search

Domain splitting with consistency · Random sampling, random walks and iterative best improvement · Tabu search, restarts and simulated annealing

Introduction to machine learning

Lecture 0734 slides + 5 questions · 3 interactive examples

Introduction to machine learning · Part 1

Learning settings and applications

Training and inference · Supervised, unsupervised, self-supervised, semi-supervised and weakly supervised learning · Reinforcement learning and application domains
Lecture 0828 slides + 5 questions · 3 interactive examples

Introduction to machine learning · Part 2

Data, models and generalization

Predictors, outcomes, datasets and matrix notation · Hypothesis spaces, predictions and residuals · Training, validation, testing and leakage

Regression

Lecture 0940 slides + 6 questions · 7 interactive examples

Regression · Part 1

Linear and polynomial regression

Residuals, ordinary least squares and normal equations · RSS, TSS, RSE, R² and test RMSE · Polynomial features, underfitting and overfitting
Lecture 1039 slides + 3 questions · 8 interactive examples

Regression · Part 2

Uncertainty, inference and interpretation

Bias, variance and model selection · Slope uncertainty, t tests, p-values and confidence intervals · Multiple regression, confounding and LINE assumptions

Classification

Lecture 1140 slides + 4 questions · 7 interactive examples

Classification · Part 1

Class probabilities, Naive Bayes and logistic regression

Class uncertainty and the optimal Bayes classifier · Naive Bayes and Gaussian likelihoods · Logistic regression and maximum likelihood estimation
Lecture 1232 slides + 1 question · 8 interactive examples

Classification · Part 2

Classification and regression with nearest neighbors

Parametric and nonparametric models · Neighbor votes, local density and Bayes’ theorem · KNN regression, model complexity and validation
Lecture 1326 slides + 4 questions · 9 interactive examples

Classification · Part 3

McCulloch & Pitts neuron and perceptron

6.1 · McCulloch & Pitts Neuron · 6.2 · Perceptron · 6.2.1 · Learning rate · 6.2.2 · What’s next
Lecture 1425 slides + 2 questions · 10 interactive examples

Classification · Part 4

Support Vector Machines

Classification recap and perceptron geometry · 6.3 · Support Vector Machines
Lecture 1529 slides + 3 questions · 4 interactive examples

Classification · Part 5

Nonlinear SVM

6.4 · Nonlinear SVM · 6.4.1 · The kernel trick

Clustering

Lecture 1636 slides + 5 questions · 11 interactive examples

Clustering · Part 1

K-Means

7.1 Clustering · 7.2 K-Means · 7.2.1 Initialization · 7.2.2 Number of clusters
Lecture 1730 slides + 0 questions · 7 interactive examples

Clustering · Part 2

Gaussian Mixture Clustering

7.3 Gaussian Mixture Clustering · 7.3.1 Training
Lecture 1837 slides + 2 questions · 9 interactive examples

Clustering · Part 3

Expectation–Maximization and Hierarchical Clustering

7.4 Expectation-Maximization · 7.5 Hierarchical clustering · 7.5.1 Linkage method

Feature analysis

Lecture 1927 slides + 2 questions · 7 interactive examples

Feature analysis · Part 1

Feature analysis: principal components

7.6 Feature analysis: principal components · 7.6.1 Applications
Lecture 2028 slides + 2 questions · 10 interactive examples

Feature analysis · Part 2

PCA for Preprocessing

7.6.1.1 PCA for Preprocessing · Normalization · Standardization · PCA Whitening