TechieYan Technologies

Score prediction of IPL team with flask app


IPL has been a huge success in India and the best cricket league in the world. Why not build something which can help us use our skills of machine learning. So, we created a score prediction web app which can predict score of an IPL team by getting some details like runs scored in 5 overs, wickets down and give us a range of the score that the score of the team would be in this range. We used flask for web development and generated the main page.

Algorithm Description

Linear Regression:

Linear regression is a supervised learning machine learning algorithm. It performs the task to predict dependent variable (y) with respect to other independent variables (x …. Xn). It helps us find out a relationship between the dependent and independent variables. 

The equation is Y = C+w1X + ….WnXn

graph ip

Linear regression tries to find the best fit line where you get minimum error. To read more about Linear regression, check this link

Resume Parser: Resume parser is an NLP model which is used to get information from resumes such as details etc. then we have to train the NLP model according to dataset. Resume parsing helps recruiters to efficiently manage electronic resume documents sent electronically. Resume parsers are programs designed to scan the document, analyse it and extract information which are important to recruiters. They are extremely low-cost so that the data present in the resume can be searched, matched and can be displayed by recruiters.

How to Execute?

Make sure you have checked the add to path tick boxes while installing python, anaconda.

Refer to this link, if you are just starting and want to know how to install anaconda.

If you already have anaconda and want to check on how to create anaconda environment, refer to this article set up jupyter notebook. You can skip the article if you have knowledge of installing anaconda, setting up environment and installing requirements.txt

  1. Install necessary libraries from requirements.txt file provided.

Install necessary libraries

  1. Go to the directory where your requirement.txt file is present.

cd <<directory of your file>>. E.g, If my file is in d drive, then

  1. cd d:
  2. cd d:\License-Plate-Recognition-main   #CHANGE PATH AS PER YOUR PROJECT, THIS IS JUST AN EXAMPLE

If your project is in c drive, you can ignore step 1 and go with step 2.

Eg. cd C:\Users\Hi\License-Plate-Recognition-main #CHANGE PATH AS PER YOUR PROJECT, THIS IS JUST AN EXAMPLE

c drive

  1. Run command pip install -r requirements.txtor conda install requirements.txt (Requirements.txt is a text file consisting of all the necessary libraries required for executing this python file. If it gives any error while installing libraries, you might need to install them individually.)

pip install

All the necessary files will get downloaded. To run the code, open anaconda prompt. Go to virtual environment if created or operate from the base itself.

Type cd path-to-project-file and then “python”. All the steps are shown in the image below.


When you run the file, you get a link.

Copy and paste the link to get the results. Note: Link can be different on your computer.

Data Description

The dataset contains ball by ball data of IPL matches from 2008 – 2017. It has 15 rows like date of match, runs scored in that ball, result of the match. Total is our target column which we have to predict.

ipl data set

Final Results

  1. Display page

Display page

  1. Enter values

Score prediction

  1. Predictions

Predictions ipl

Issues you may face while executing the code

  1. Go to the current working directory (path of your project) to run
  2. Ensure you have all libraries installed.

Credit to for the article

and github repository for the code. You can view this page for more details.


All the required data has been provided over here. Please feel free to contact me for model weights and if you face any issues in execution score prediction.

Click Here For The Source Code And Associated Files.


+91 7075575787