TimeGym tutorials¶
These twelve notebooks show how to test a forecaster with TimeGym. Each one imports the package the way your own code would. Read them on the documentation site, or run them yourself. Start with the Quick start, then Write and test a custom model to plug in your own.
The package itself is written in the source notebooks. You don't need them to use TimeGym.
Run them¶
They run on CPU with local data and explicit seeds; Run the notebooks gives the two commands. Installing the wheel alone does not install these notebooks.
| Group | Tutorial | Explore |
|---|---|---|
| Start | Quick start | Two scorecards, last value against Ridge, and why TimeGym scores against the answer key |
| Write and test a custom model | The six-line RepeatLast model, nearest analogues, and real data with and without an answer key |
|
| Find what breaks | Faults, repairs and replay | Four ways to break a correct forecast, a bug caught by a broken promise, and replay |
| Shape the forecast | Target transforms | Why logs help when the swing grows with the level, and why exp(mean log) is too low |
| Reductions | Recursive, direct and multioutput: when recursive errors compound | |
| Multivariate forecasting | Right numbers under the wrong series name, and when extra history doesn't help | |
| Real-data forecasts | No answer key: four origins, three baselines, and a leakage check | |
| Measure uncertainty | Univariate uncertainty | Same predictions, overconfident spread: which scores notice |
| Multivariate uncertainty | Scrambled pairings: every series right, joint risk gone | |
| Stress-test | Capability sweeps | Three simple bets, a weak model versus a broken one, and history and noise sweeps |
| Composed and financial stresses | A ladder of mechanisms, bad luck vs a bad model, and a conversion bug | |
| Joint financial uncertainty | Assets that crash together, and the check that notices a lost link |