Proof of Concept: F1 Prediction Hub is a state-of-the-art Formula 1 analytics dashboard powered by machine learning, providing comprehensive race predictions, historical insights, and driver analysis.
Our advanced machine learning model analyzes multiple factors to predict race outcomes:
- Grid position impact analysis
- Constructor performance metrics
- Track-specific predictions
- Weather condition considerations
- Tire strategy optimization
- Position change predictions
- Historical performance heatmaps
- Real-time confidence metrics
- Feature importance analysis
- Performance trend tracking
Comprehensive driver analytics including:
- Head-to-head comparisons
- Career statistics
- Driving style analysis
- Performance metrics tracking
- Historical achievements
Explore F1's rich history through:
- Interactive timeline of significant events
- Championship records and statistics
- Iconic circuit information
- Technical evolution tracking
- Memorable moments archive
python 3.8+
pip
virtualenv (recommended)
- Clone the repository:
git clone https://github.com/yourusername/f1-prediction-hub.git
cd f1-prediction-hub
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Launch the dashboard:
streamlit run app.py
The dashboard can be run locally using Streamlit:
streamlit run app.py
Access at http://localhost:8501
- Push your code to GitHub
- Visit Streamlit Cloud
- Connect your repository
- Deploy with one click
- Build the image:
docker build -t f1-prediction-hub .
- Run the container:
docker run -p 8501:8501 f1-prediction-hub
app.py
: Main dashboard applicationapi_module.py
: F1 data retrieval and processingml_module.py
: Machine learning model implementationdriver_insights.py
: Driver analytics processinghistorical_wiki.py
: Historical data management
- Ergast F1 API
- Historical race data
- Driver statistics
- Circuit information
The prediction model considers:
- Grid position
- Constructor performance
- Circuit characteristics
- Weather conditions
- Track temperature
- Tire strategies
- Historical performance
- Dark mode design
- Responsive layout
- Interactive charts
- Real-time updates
- Custom animations
- Mobile-friendly interface
-
This project is released under an open-source license. It is completely free for anyone to use, modify, and distribute. You are welcome to:
-
Use the code for any purpose
-
Study how it works and adapt it
-
Redistribute it to anyone
-
Make improvements and share them with everyone
- Formula 1 for the inspiration
- Ergast API for the data
- Streamlit team for the amazing framework
- The F1 community for their support
Made with ❤️ and ☕