/abda-ipl-prediction

IPL Match Prediction using Machine Learning

Primary LanguagePython

IPL Match Prediction using Machine Learning

Requirements

Python 3.6+
Sklearn
TODO: Add any missing requirements into requirements.txt

Setup

After cloning the repo, install necessary modules through pip install -r requirements.txt
Extract the contents of yaml.zip into the yaml folder

Running

Simply run the driver file train_data.py to perform all the necessary functions

Prediction

Save the playing XI for both teams in the data directory, as file <team_name>.csv as a list of names separated by comma (Some example files are added to the repo), for e.g. rcb.csv, kkr.csv etc.. The order specified in the file will be the batting order for the teams. The bowler selection is predicted based on past statistics.

Run the script match_simulator.py to start the match prediction
Enter the team names using just the 3 or 2 letter prefix used to save the team file (Like kkr, rcb)
The prediction will then run to completion, and displays the result