How tejask28/2025_f1_predictions works
Main Components
a. Data Sources: Represent the external inputs, including:
• FastF1 API (for historical lap times, race results, telemetry data).
• 2025 Qualifying Session Data.
• Historical F1 race results (used for model training based on 2024 data).
b. Data Collection and Preprocessing:
• Data ingestion scripts/steps that fetch data from these sources.
• Preprocessing routines that transform raw data by converting lap times, normalizing driver names, and other feature engineering tasks.
c. Model Training:
• The Gradient Boosting Machine Learning pipeline that uses the preprocessed data (primarily from 2024 results).
• This component should also reflect the evaluation method (Mean Absolute Error – MAE) used to measure model performance.
d. Prediction and Output:
• The individual Python scripts (prediction1.py, prediction2.py, etc.) that serve as entry points to run the model and output predictions for each race.
• The generation of results such as predicted race times and ranking of drivers.
e. Future Extensions (optional, as indicated in the README):
• Components for integrating additional features like weather conditions, pit stop strategies, or even deep learning model trials.
Highlighting Architectural Patterns and Technologies
• Clear linear pipeline: Data Collection → Preprocessing → Model Training → Prediction & Evaluation.
• Although the file structure is flat, conceptually the scripts adhere to a pipeline pattern where components have sequential data flow.
Final Touches
• Components are clearly labeled with descriptive names.
• Potential future extensions (like integration of weather data) to show how the design can scale.