Instructions to use ayanjawed/transitpulse-planning-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use ayanjawed/transitpulse-planning-model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("ayanjawed/transitpulse-planning-model", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Model card: future dates, ± range, Open-Meteo licence
Browse files
README.md
CHANGED
|
@@ -17,8 +17,11 @@ route, date, hour, schedule and weather. Built for transport planners as a CT-37
|
|
| 17 |
- Code, data builder and notebooks: https://github.com/ayanmirza99/ML-Project
|
| 18 |
|
| 19 |
## Intended use
|
| 20 |
-
- What-if planning for the 24 MTA bus routes it was trained on
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
## Model
|
| 24 |
`sklearn.pipeline.Pipeline`: one-hot encoding of `bus_route` and `borough`, then `HistGradientBoostingRegressor`
|
|
@@ -32,7 +35,7 @@ is_holiday, is_school_day.
|
|
| 32 |
1. **MTA Bus Hourly Ridership: Beginning 2025**, NY Open Data (dataset id `gxb3-akrn`), summed to one row per route per hour.
|
| 33 |
Licence: the dataset page gives no licence information; it is covered by NY Open Data's terms of use.
|
| 34 |
2. **MTA GTFS static bus schedules** (mta.info/developers). A 2026 snapshot, not the 2025 service that produced the ridership.
|
| 35 |
-
3. **Open-Meteo historical weather** (New York City coordinates, one value per hour for the whole city).
|
| 36 |
4. US federal holidays (Python `holidays` package) and a hand-typed, approximate NYC school calendar.
|
| 37 |
|
| 38 |
Eight two-week windows between January and September 2025, 24 routes, 64,512 route-hour rows. Missing hours are filled with 0 riders.
|
|
|
|
| 17 |
- Code, data builder and notebooks: https://github.com/ayanmirza99/ML-Project
|
| 18 |
|
| 19 |
## Intended use
|
| 20 |
+
- What-if planning for the 24 MTA bus routes it was trained on. It was trained on January to September 2025;
|
| 21 |
+
the apps also accept later dates (up to 2027-06-30) with Open-Meteo forecast weather, but those are rough guesses,
|
| 22 |
+
especially for March and October to December, which the model never saw.
|
| 23 |
+
- **Not** for other routes or other cities (see Limitations).
|
| 24 |
+
- The apps show each prediction with a ± 56 riders range (the validation MAE).
|
| 25 |
|
| 26 |
## Model
|
| 27 |
`sklearn.pipeline.Pipeline`: one-hot encoding of `bus_route` and `borough`, then `HistGradientBoostingRegressor`
|
|
|
|
| 35 |
1. **MTA Bus Hourly Ridership: Beginning 2025**, NY Open Data (dataset id `gxb3-akrn`), summed to one row per route per hour.
|
| 36 |
Licence: the dataset page gives no licence information; it is covered by NY Open Data's terms of use.
|
| 37 |
2. **MTA GTFS static bus schedules** (mta.info/developers). A 2026 snapshot, not the 2025 service that produced the ridership.
|
| 38 |
+
3. **Open-Meteo historical weather** (New York City coordinates, one value per hour for the whole city). Licence: CC BY 4.0. Weather data by Open-Meteo.com.
|
| 39 |
4. US federal holidays (Python `holidays` package) and a hand-typed, approximate NYC school calendar.
|
| 40 |
|
| 41 |
Eight two-week windows between January and September 2025, 24 routes, 64,512 route-hour rows. Missing hours are filled with 0 riders.
|