Skip to content

ghanender-chauhan/Best11-Fantasycricket

 
 

Repository files navigation

Best11-Fantasycricket

Description

In the past year or so fantasy cricket has been getting a lot of traction and with recent deal struck by Dream11 with IPL, more people are playing fantasy cricket than ever, but the problem is lot of people do not make right choices in choosing the team and end up thinking winning is all about luck and nothing else. With our project we want to break that myth by making a model which when given with players predicts the best 11 that will have the most points in the fantasy league. We have gathered statistics of players throughput their career and the model takes in the scores last 5 games a player has played and it tries to predict his score in the next game using a linear model. The model also makes sure that best 11 follows all the rules of selecting a team given by the fantasy league which includes given number of batsman and bowlers, maintaining spent credits within 100. A flask model has been used to create the GUI to show the predicted 11.

Requirements

  1. Flask
  2. sklearn

Install using

pip3 install -r requirements.txt

I want to run your project

To run our project follow these steps

  1. Clone our repo into your system

  2. Change your directory to 'Best11-Fantasycricket' using

cd Best11-Fantasycricket
  1. Run the model :

flask run

  1. Open http://127.0.0.1:5000/ and voila!!

How do you verify your model??

We use six matches from the World Cup 2019 for our verification as of now,namely

  • England vs Australia League Stage
  • England vs Australia SemiFinal
  • India vs New Zealand SemiFinal
  • India vs Australia
  • India vs Bangladesh QuarterFinal
  • England vs India

During the ICC World Cup the winners of the fantasy cricket league was shown and their respective scores were also showed.
We use those scores to match our models score.

We predict the team and calculate the dream 11 score of each player for that match and match it with the winning score and calculate loss.

To check how our model worked in our test data run :

python3 check.py 

Dataset

Confused by the dataset, Dont Worry I would be too if I were you, dont worry I'll walk you through it in detail

Check out Dataset.md to understand the dataset, the scoring system and any other doubts you might have

How do I contribute to this project????

Refer to the Contributing.md file of our repository

If you have any suggestions for our project , do raise a issue and we will look into it and if we think it helps our project we will keep it open until its implemented by us or by anyone else

If you have any questions regarding our project , you can contact any of the maintainers(info on respective profile pages) or raise a issue and we'll answer you as soon as possible.

Thank You

Project made by: Royston(lucasace),Shreyas (SRP457), Sammith(SammithSB)

We would like to thank Howstat for their amazing website with daily updates and availabilty to scrape

If you liked our project we would really appreciate you starring this repo.

Thank you

About

Predicting the Best 11 for a fantasy cricket game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.4%
  • HTML 13.4%
  • CSS 7.2%