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
| # | Chapter | Start here |
|---|---|---|
| 1 | Introduction to AI | Theory and concepts |
| 2 | Searching State Spaces | Uninformed search |
| 3 | Multiagent Search | Theory and algorithms |
| 4 | Propositional Logic | Theory and algorithms |
| 5 | First-Order Logic | Theory and algorithms |
| 6 | Knowledge Graphs and Neuro-Symbolic AI | Theory and concepts |
Part II: Machine Learning
| # | Chapter | Start here |
|---|---|---|
| 7 | Understanding Your Data | Theory and concepts |
| 8 | Supervised Learning | Theory and concepts |
| 9 | Parameters, Hyperparameters and Model Fit | Theory and concepts |
| 10 | Model Evaluation and Training Control | Theory and concepts |
| 11 | Metrics | Theory and concepts |
| 12 | Explainability and Responsible AI | Theory and concepts |
| 13 | Unsupervised Learning | Theory and concepts |
| 14 | Reinforcement Learning | Theory and concepts |
Part III: Deep Learning
| # | Chapter | Start here |
|---|---|---|
| 15 | Neural Networks | Theory and concepts |
| 16 | Training Deep Networks | Theory and concepts |
| 17 | From Dense Networks to Convolutional Layers | Theory and concepts |
| 18 | CNNs, RNNs and Transformers | Theory and concepts |
| 19 | Transfer Learning and Fine-Tuning | Theory and concepts |
| 20 | Generative Models: VAEs, GANs and Diffusion | Theory and concepts |
| 21 | Language Models, RAG and Agents | Theory and concepts |
Part IV: Probabilistic Graphical Models
| # | Chapter | Start here |
|---|---|---|
| 22 | Probabilistic Graphical Models: Foundations | Theory and concepts |
| 23 | Independence and d-Separation | Theory and concepts |
| 24 | Inference in Depth | Theory and concepts |
| 25 | Learning Graphical Models | Theory and concepts |
| 26 | Temporal and Undirected Models | Theory 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.