How akshit-saharia/urgency_aware_race_strategy_prediction works
This repository predicts F1 pit-stop and tire decisions from race telemetry. Its principal workflow loads or generates readings, applies urgency scoring, schedules requests, routes them to a fast or smart model, and optionally persists telemetry and predictions. The graph also preserves the documented cloud-serving and scheduling-experiment branches. Some pipeline calls are only partially excerpted; workflow edges therefore rely on the README’s explicit description, and unsampled implementation details are not inferred.
Main entry points: pipeline.py Replay pipeline · fastf1_loader.py FastF1 loader · router.py Model router · smart_model.py Smart model
Components 16
Telemetry and contracts
- FastF1 loader
data_pipeline/fastf1_loader.py - Mock generator
data_pipeline/mock_data_generator.py - Telemetry contracts
data_pipeline/schema.py - Prediction request
data_pipeline/schema.py
Urgency and scheduling
- Urgency classifier
os_layer/urgency_classifier.py - Priority scheduler
os_layer/priority_queue.py - Model router
os_layer/router.py
Prediction models
- Feature engineering
ml/features.py - Fast model
ml/fast_model.py - Smart model
ml/smart_model.py
Persistence and cache
- Redis cache
db/redis_cache.py - Cassandra client
db/cassandra_client.py
Serving and experiments
- Replay pipeline
integration/pipeline.py - Queueing experiment
integration/experiment_queueing.py - Cloud handler
cloud/lambda_handler.py
Other components
- Race data
Connections 19
- Race data → FastF1 loader: loads telemetry
README.md - Mock generator → Telemetry contracts: creates readings
data_pipeline/mock_data_generator.py - FastF1 loader → Telemetry contracts: creates readings
data_pipeline/fastf1_loader.py - Mock generator → Replay pipeline: supplies replay data
README.md - FastF1 loader → Replay pipeline: can replace mock input
README.md - Replay pipeline → Urgency classifier: classifies readings
README.md - Urgency classifier → Prediction request: creates request
os_layer/urgency_classifier.py - Replay pipeline → Priority scheduler: schedules requests
README.md - Replay pipeline → Model router: routes requests
README.md - Model router → Fast model: selects urgent path
os_layer/router.py - Model router → Smart model: selects smart path
os_layer/router.py - Fast model → Feature engineering: builds feature matrix
ml/fast_model.py - Smart model → Feature engineering: builds sequences
ml/smart_model.py - Replay pipeline → Redis cache: optionally persists
README.md - Replay pipeline → Cassandra client: optionally persists
README.md - Redis cache → Cassandra client: caches lookups ahead of
db/redis_cache.py - Cloud handler → Smart model: runs inference with
cloud/lambda_handler.py - Replay pipeline → Prediction request: returns results as
data_pipeline/schema.py - Queueing experiment → Priority scheduler: compares scheduling
README.md