Skip to content

Tutorials

TimeGym is for testing a forecasting pipeline before deployment and for reproducing a failure after one. The twelve tutorials are notebooks that run on CPU with local data and explicit seeds. Start with the quick start, then write and test your own model, then pick from the table by the question you have.

What a clean report covers

A report with no FAIL and no ERROR does not say the forecasts are accurate; How TimeGym decides lists what it does establish.

The tutorials in order

Group Tutorial Question it answers
Start 01 · Quick start Which kinds of series does my forecaster get right, and which does it get wrong?
02 · Write and test a custom model How do I test a model I wrote myself?
Find what breaks 03 · Faults, repairs and replay What does a broken output look like, and how do I replay it?
Shape the forecast 04 · Target transforms Which transform of the target, and what does inverting it do?
05 · Reductions Recursive, direct or multioutput: where do their errors differ?
06 · Multivariate forecasting How do I forecast and score several targets?
07 · Real-data forecasts How do I evaluate on real data at ordered origins?
Measure uncertainty 08 · Univariate uncertainty Are my intervals and quantiles calibrated?
09 · Multivariate uncertainty Do my joint paths keep the dependence between targets?
Stress-test 10 · Capability sweeps Where does each model stop coping as the history shortens or the noise grows?
11 · Composed and financial stresses How does it handle jumps, GARCH and hidden regimes?
12 · Joint financial uncertainty Does joint uncertainty survive shared shocks and broken dependence?

Run the notebooks

From a clone or extracted source distribution:

python -m pip install -e '.[notebooks]'
python -m jupyterlab tutorials

Select the Python kernel belonging to that environment and use Restart Kernel and Run All Cells. Each notebook runs in its own kernel. The real-data notebook reads the included AirPassengers CSV; no notebook uses the network.

The tutorials live in tutorials/ (tutorials guide). The 15 source notebooks in source/ are the package's code, not tutorials: they and the checks that execute every notebook are described in Contributing and the source guide.