Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Artificial Intelligence

An interactive companion textbook

Based on “Artificial Intelligence: A Textbook” by Charu C. Aggarwal

Instructor: Khalil Chebil


Welcome

This book accompanies the Advanced Artificial Intelligence course. It pairs the theory of each topic with Python code you can read, run and change, so every idea is seen twice: once on paper, once working.

How each chapter is organised

Presentation Slides
The deck used in class, to preview on the page or download.
Theory
The concepts and algorithms, explained step by step.
Implementation
The same algorithms as runnable Python. Every notebook page can be downloaded, or opened in Colab, from the menu at the top right of the page.
Lab and assignments
Exercises to do yourself.

Chapters

The book has four parts: the foundations of AI (agents, search, logic and knowledge), machine learning (from understanding the data to evaluating and explaining a model), deep learning (from one neuron to language models that read your documents), and probabilistic graphical models (reasoning and learning with uncertainty).

Part I: Foundations: Search, Logic and Knowledge

#ChapterStart here
1Introduction to AITheory and concepts
2Searching State SpacesUninformed search
3Multiagent SearchTheory and algorithms
4Propositional LogicTheory and algorithms
5First-Order LogicTheory and algorithms
6Knowledge Graphs and Neuro-Symbolic AITheory and concepts

Part II: Machine Learning

#ChapterStart here
7Understanding Your DataTheory and concepts
8Supervised LearningTheory and concepts
9Parameters, Hyperparameters and Model FitTheory and concepts
10Model Evaluation and Training ControlTheory and concepts
11MetricsTheory and concepts
12Explainability and Responsible AITheory and concepts
13Unsupervised LearningTheory and concepts
14Reinforcement LearningTheory and concepts

Part III: Deep Learning

#ChapterStart here
15Neural NetworksTheory and concepts
16Training Deep NetworksTheory and concepts
17From Dense Networks to Convolutional LayersTheory and concepts
18CNNs, RNNs and TransformersTheory and concepts
19Transfer Learning and Fine-TuningTheory and concepts
20Generative Models: VAEs, GANs and DiffusionTheory and concepts
21Language Models, RAG and AgentsTheory and concepts

Part IV: Probabilistic Graphical Models

#ChapterStart here
22Probabilistic Graphical Models: FoundationsTheory and concepts
23Independence and d-SeparationTheory and concepts
24Inference in DepthTheory and concepts
25Learning Graphical ModelsTheory and concepts
26Temporal and Undirected ModelsTheory and concepts

Every chapter also has labs (exercises with automatic checks), and most have an assignment project that applies the chapter to a realistic problem and ends with a short report. Chapter 21’s project is a capstone that draws on the whole course.