Problem description
FIFA 18 Complete Player Dataset from Kaggle.com
17k+ players, 70+ attributes extracted from the latest edition of FIFA I am going to create a model from where club owners can find out or suggest the wage of a player while hiring them into the club.
I have used random forest with hyperparameter tuning to have the best model.
I have tested with many difffernt tools and algforothms.
Best one i have found is Scikit learn and Flask to deploy that in AWS EC2.
Model is deployed unsing Flask and AWS EC2 as an web interface.
- Launch one EC2 intance in AWS according to your choice. (I have used Ubuntu 18 )
- Upload the files and folders to the home folder /home/ubuntu (I have used winSCP to upload)
- Use Putty to connect to the EC2 intance.
- Run the following command:
a. sudo apt-get update && sudo apt-get upgrade
b. sudo apt-get install python3-pip
c. pip3 install -r requirements.txt
- To run the app: python3 app.py
OR To run the application when you close the terminal, use Screen.
- screen
- python3 app.py
Now you can close the terminal and it will be still running in the background.
To Stop your application, connect again with the putty and run the command.
- screen -r
you will see your application running. you can turn off by ctrl+c
- the URL: http://yourIP:8080