Welcome to the course

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.

16 lectures16 full-text handouts92 class questions70 interactive examples

Choose your next lecture

Work through the course in order, or return to a topic.

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
Lecture 0341 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
Lecture 0524 slides + 6 questions · 3 interactive examples

Constraint satisfaction · Part 1

Modeling, backtracking and propagation

Variables, domains and constraints · Backtracking and variable ordering · Support, propagation and local consistency
Lecture 0621 slides + 5 questions · 3 interactive examples

Constraint satisfaction · Part 2

Domain splitting and local search

Split domains to complete the search · Repair assignments with local search · Escape local minima with annealing
Lecture 0721 slides + 5 questions · 3 interactive examples

Introduction to machine learning · Part 1

Learning settings and applications

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

Introduction to machine learning · Part 2

Data, models and generalization

Features, targets and data tables · Model families, residuals and noise · Training, validation, testing and leakage
Lecture 0926 slides + 6 questions · 6 interactive examples

Regression · Part 1

Fitting and evaluating prediction models

Straight lines, residuals and least squares · Fit metrics and held-out evaluation · Polynomial features, overfitting and underfitting
Lecture 1027 slides + 6 questions · 5 interactive examples

Regression · Part 2

Uncertainty, inference and interpretation

Bias, variance and model selection · Slope tests and confidence intervals · Multiple predictors, confounding and diagnostics
Lecture 1125 slides + 7 questions · 4 interactive examples

Classification · Part 1

Probabilities, Naive Bayes and logistic predictions

Class probabilities and decision errors · Naive Bayes and its assumptions · Logistic probabilities and thresholds
Lecture 1228 slides + 5 questions · 6 interactive examples

Classification · Part 2

Fitting logistic models and nearest neighbors

Likelihood and logistic fitting · Neighbor voting, distance and scaling · Validation, complexity and evaluation
Lecture 1329 slides + 7 questions · 10 interactive examples

Classification · Part 3

Perceptrons and linear support-vector machines

Threshold units and perceptron learning · Linear boundaries and the XOR limitation · Margins, support vectors and soft-margin SVMs
Lecture 1425 slides + 5 questions · 4 interactive examples

Classification · Part 4

Feature maps and kernel support-vector machines

Feature maps and nonlinear boundaries · From feature-space optimization to kernels · Kernel choices, costs and validation
Lecture 1533 slides + 7 questions · 7 interactive examples

Clustering and principal components · Part 1

K-means and Gaussian mixtures

Similarity, centroids and K-means · Choosing the number of groups · Soft membership and expectation–maximization
Lecture 1628 slides + 6 questions · 7 interactive examples

Clustering and principal components · Part 2

Hierarchical clustering, PCA and preprocessing

Hierarchies, linkage and dendrograms · PCA, projection and reconstruction · Scaling, whitening and interpretation