Skip to main content
The library is designed to make new models straightforward to add. You need three things: a predictor, a trainer, and a registry entry.

1. Create a predictor

Add a file in src/air_travel_model/predictors/your_mode.py:

2. Create a trainer

Add src/air_travel_model/trainers/your_mode.py:
Run training:
This saves data/your_mode_model.pkl.

3. Register the model

In src/air_travel_model/registry.py, add an entry to the _REGISTRY dict:

4. Export from __init__.py

TransportPredictor is the only public export, so no changes to __init__.py are needed — the registry entry is enough.

5. Add tests

Add a test in tests/ that calls both predict() and estimate() for your new mode: