Skip to main content

Install

Requires Python 3.10+.

Your first prediction

Specifying locations

Locations can be provided three ways — all are equivalent:
For train time, use Amtrak station codes for best accuracy:

Heuristic fallback

When a route has no training data, use estimate() instead of predict():
predict_all() and estimate_all() call all seven models in one shot.

Run the example script

This demonstrates all modes on a Charleston SC → Roanoke VA route with annotated output.