This project focuses on predicting the outcomes of Formula 1 races. The dataset includes information about races, drivers, teams, and various race-related metrics.
- Data Collection
- Data Preprocessing
- Exploratory Data Analysis (EDA)
- Further Data Preprocessing
- Model Building and Evaluation
- Conclusion
The project begins with collecting data from various CSV files, merging them based on common identifiers, and creating a comprehensive dataset.
Cleaning and feature engineering are performed on the dataset, including handling missing values, updating team names, and calculating driver ages.
Exploratory Data Analysis is conducted to visualize and understand the distribution of various factors such as driver nationality, age, wins, constructor wins, and DNFs.
The dataset is prepared for classification models, including one-hot encoding categorical features and scaling numerical features.
Several machine learning models, including Random Forest, XGBoost, SVM, KNN, and Logistic Regression, are implemented and evaluated based on training and testing accuracies.
The project provides insights into the relationships between different variables and aims to predict race outcomes using machine learning models.
Follow these steps to get started with the project:
- Python (>=3.6)
- Required Python packages (install using
pip install -r requirements.txt)
- Clone the repository.
- Install the required packages.
- Run the Jupyter notebooks to explore the data, perform EDA, and build models.
Contributions are welcome! If you have ideas for improvement or find any issues, feel free to open an issue or create a pull request.