Setup

There are two ways to work through this course: run labs in Colab (do this — it’s the default and needs nothing installed), or clone the repo and run everything locally (optional, mainly useful if you want to run the test suite or regenerate the datasets yourself).

Option B — run locally

Useful if you want to poke at the shared utility code, run the test suite, or regenerate the datasets — not required to work through the labs, which are self-contained per Option A.

git clone https://github.com/MohammadYusif/time-series-forecasting-ai-systems.git
cd time-series-forecasting-ai-systems
pip install -r requirements-dev.txt

requirements-dev.txt is deliberately small — pytest, pandas, numpy — because it’s for developing against the repo, not for running the labs. Each lab notebook installs its own forecasting libraries (statsmodels, Prophet, sktime, LightGBM, …) in its own first cell by design, so that notebook stays runnable standalone in Colab with nothing pre-installed. Don’t add those libraries to this file.

Run the test suite — this is what actually exercises common/metrics.py and common/backtest.py, the small shared utility module every lab imports (accuracy metrics like WAPE and MASE, and the walk-forward split helpers used throughout Day 2 and Day 3):

python -m pytest tests/

Confirm the datasets are reproducible. data/generate_series.py is seeded and deterministic — regenerating should produce byte-identical files, so this should show a clean working tree:

python data/generate_series.py
git status   # expect: no changes

Verified against a fresh runtime, not just “it worked here”

A notebook that runs on the machine that wrote it proves less than it looks like it proves — anything already installed there hides a missing dependency. Every lab notebook in this course was additionally verified end-to-end inside colab-sim/: a Docker container with no data-science packages preinstalled, standing in for a Colab runtime with nothing cloned and nothing cached. If a lab runs clean in that container, its _pip_install cell is doing all the work it claims to, and the notebook is safe to open cold. See colab-sim/README.md for how to run that check yourself.

Troubleshooting

Hit a Colab-specific error (a runtime restart prompt after installing a package, a stale cached version, a download that failed)? See Troubleshooting.

Back to top