Lab Notebooks

The labs are Jupyter notebooks, one per lecture. Every one runs on CPU alone and works offline once its data is bundled — no GPU required, no API key, no paid service. Run them in the cloud with a single click, or locally if you prefer your own machine. In practice the deep-learning and reinforcement-learning labs train noticeably faster on a GPU, so use one if you have access.

▶  Open in GitHub Codespaces Browse the repository

Option 1 — run in the cloud (Codespaces)

Quota. Any GitHub account can launch a codespace on this repository, and it runs on your own free monthly allowance (120 core-hours + 15 GB storage on a personal account) — nobody else is billed for your session. Stop idle codespaces and the free tier comfortably covers the whole course.

Option 2 — run locally

Python 3.11 or newer, then:

git clone https://github.com/vonzhg/AI-ECON-2026.git
cd AI-ECON-2026
python -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt
jupyter lab

requirements.txt pins the CPU build of PyTorch, so the install stays small. If you would rather not install anything, do the setup lab for Lectures 1–2 first — it walks through VS Code, Python, and PyTorch step by step.

Installing from China. labs/requirements.txt carries version pins and a Tsinghua (TUNA) mirror recipe, which is usually much faster: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r labs/requirements.txt. No Google or Colab access is needed for any lab. See labs/README.md for a notebook-by-notebook summary.

Notebooks

Lectures 1–2 — Getting Started Available View on GitHub ▶ Run in Codespaces
Lecture 3 — Machine Learning Basics Available View on GitHub ▶ Run in Codespaces
Lecture 4 — Deep Learning for Dynamic Models Available Lab 4A — VFI benchmark Lab 4B — neural nets ▶ Run in Codespaces
Lecture 5 — Reinforcement Learning in a Nutshell Available Lab 5A — View on GitHub ▶ Run in Codespaces
Lecture 6 — Krusell–Smith with Deep Equilibrium Nets In preparation Preview
Lecture 7 — LLMs & Text as Economic Data Available Lab 7A — text as data Lab 7B — attention & mini-GPT ▶ Run in Codespaces
Lecture 8 — Retrieval-Augmented Generation Available RAG lab — speech corpus Part B — mini-GPT + RAG ▶ Run in Codespaces
Lectures 9–10 — Agentic AI Case-Study Replication In preparation Preview
Finished the labs and want to build something of your own? The project tracks take you from a lab exercise to a small, validated piece of research.