How teomewhy/f1-lake works
F1 Lake collects Formula 1 session results, uploads raw files, develops lakehouse feature data, trains a championship model, and presents prediction histories to users. The README describes Bronze, Silver, and Gold as lakehouse stages; sampled code shows collection, S3 upload, Silver feature-store processing, ABT export, training, model serving, and a Streamlit application. The UI’s prediction request targets a configured service, while the sampled Flask service exposes a different route; their connection is therefore not asserted.
Main entry points: download_abt.py Champion ABT export · collect.py Session collector · sender.py S3 uploader · main.py Prediction dashboard
Components 20
Collection and delivery
- Session collector
collect.py - Parquet files
data - Collection runner
main.py - S3 uploader
sender.py
Lakehouse processing
- Bronze tables
- Silver tables
- Gold reports
- Driver feature store
etl/main.py - Champion labels
etl/abt_champions.sql - Champion ABT export
etl/download_abt.py
Model lifecycle
- ABT dataset
data - Model training
ml_champion/train.py - Prediction API
ml_champion/app.py
Prediction experience
- Prediction dashboard
app/main.py
Other components
- F1 data source
- Raw S3 bucket
- MLflow registry
- F1 enthusiast
- Feature database
- Prediction service
Connections 21
- Collection runner → Session collector: runs collection
main.py - Session collector → F1 data source: fetches sessions
collect.py - Session collector → Parquet files: writes Parquet
collect.py - Collection runner → S3 uploader: runs upload
main.py - S3 uploader → Parquet files: reads files
sender.py - S3 uploader → Raw S3 bucket: uploads files
sender.py - Raw S3 bucket → Bronze tables: raw ingestion
README.md - Bronze tables → Silver tables: models data
README.md - Silver tables → Gold reports: summarizes data
README.md - Driver feature store → Silver tables: loads and saves
etl/main.py - Champion labels → Silver tables: labels source
- Champion ABT export → Silver tables: loads features
etl/download_abt.py - Champion ABT export → Champion labels: joins labels
etl/download_abt.py - Champion ABT export → ABT dataset: exports CSV
etl/download_abt.py - Model training → ABT dataset: reads dataset
ml_champion/train.py - Model training → MLflow registry: logs model
ml_champion/train.py - Prediction API → MLflow registry: loads model
ml_champion/app.py - F1 enthusiast → Prediction dashboard: views predictions
README.md - Prediction dashboard → Feature database: queries drivers
app/main.py - Prediction dashboard → Prediction service: requests predictions
app/main.py - Prediction API → Prediction service: serves predictions