This repository contains code for predicting Score of IPL and analysing different players. Developed using Flask and python. Website is hosted on heroku. It's live at https://ipl-fixer.herokuapp.com/.
The directory contains web sub directories and a sub directory for hosting model and other scripts:
-
app.pyThe file which contains all the main backend operations of the website and used to run the flask server locally.
-
Procfile for setting up heroku.
-
requirement.txt contains all the dependencies.
-
templates contains the html file.
-
static contains the css file.
The entire code has been developed using Python programming language and is hosted on Heroku. The analysis and model is developed using SkcitLearn library and various machine learning models, The website is developed using Flask.
- Open the
Terminal
. - Clone the repository by entering
https://github.com/abhishek-parashar/ipl-fixer
. - Ensure that
Python3
andpip
are installed on the system. - Create a
virtualenv
by executing the following command:virtualenv venv
. - Activate the
venv
virtual environment by executing the follwing command:source venv/bin/activate
. - Enter the cloned repository directory and execute
pip install -r requirements.txt
. - Now, execute the following command:
flask run
and it will point to thelocalhost
server with the port5000
. - Enter the
IP Address: http://localhost:5000
on a web browser and use the application.
The following dependencies can be found in requirements.txt:
- https://medium.com/themlblog/splitting-csv-into-train-and-test-data-1407a063dd74
- https://towardsdatascience.com/multi-class-text-classification-model-comparison-and-selection-5eb066197568
- https://medium.com/@robert.salgado/multiclass-text-classification-from-start-to-finish-f616a8642538
- https://www.analyticsvidhya.com/blog/2018/04/a-comprehensive-guide-to-understand-and-implement-text-classification-in-python/
- https://www.districtdatalabs.com/text-analytics-with-yellowbrick
- Applied AI course- https://www.appliedaicourse.com/
- https://towardsdatascience.com/designing-a-machine-learning-model-and-deploying-it-using-flask-on-heroku-9558ce6bde7b
- https://towardsdatascience.com/deploying-a-deep-learning-model-on-heroku-using-flask-and-python-769431335f66
- https://medium.com/analytics-vidhya/deploy-machinelearning-model-with-flask-and-heroku-2721823bb653
- https://www.youtube.com/watch?v=UbCWoMf80PY
- https://www.youtube.com/watch?v=mrExsjcvF4o
- https://blog.cambridgespark.com/deploying-a-machine-learning-model-to-the-web-725688b851c7