mainvideo.mp4
This project is based on the IPL match prediction used in the second innings of a cricket match. The trained model takes into account factors such as current run rate (CRR), required run rate (RRR), runs, and balls remaining. The model is trained after going through two major datasets, both of which are available on Kaggle.
- The
iplproj
directory contains the Django files and the trained model in the form ofpipe.pkl
. - The
ipl.py
file contains the code used to train the data and create the model.
iplproj/
├── iplapp/
│ ├── migrations/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── templates/
│ │ └── iplapp/
│ │ └── predict.html
│ ├── urls.py
│ └── views.py
├── iplproj/
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── pipe.pkl
└── manage.py
-
Clone the repository:
git clone https://github.com/irvincardoza/IPL-Win-Prediction-Model.git
-
Navigate to the project directory:
cd iplproj
-
Install the required dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Open your web browser and go to
http://127.0.0.1:8000/
to use the application.
- Fill in the form with the details of the match situation to get the prediction of winning probabilities for both teams.