This repository consists of files required for end to end implementation and deployment of Machine Learning Diabetes Predictor web application created with flask and deployed on the Heroku platform.
If you want to view the deployed model, click on the following link:
https://diabetescheckup.herokuapp.com/
A glimpse of the web app:
• If you encounter this webapp as shown in the picture given below, it is occuring just because free dynos for this particular month provided by the Heroku platform have been completely used. You can access the webpage on 1st of the next month.
• Sorry for the inconvenience.
The Diabetes Predictor is a flask web application which diagnostically predicts whether or not a patient has diabetes, based on certain diagnostic measurements included in the dataset like Pregnancies, Skin Thickness, BMI, Age, Glucose etc. The code is written in Python 3.6.10. Here, I have implemented various Classification techniques and since the dataset is fairly balanced in terms of 0 and 1 outcomes, the best accuracy which I could come up with was 77.604% using ensemble RANDOM FOREST classifier.
Note: In the dataset some independent variables(diagnostic measurement parameters) have '0' values like Insulin, Blood Pressure(which realistically can't be zero). So, I have tried to replace those '0' values by using imputer technique.
If you don't have Python installed, you can find it here. If you are using a lower version of Python you can upgrade using the pip package, ensuring you have the latest version of pip. To install the required packages and libraries, run this command in the project directory after cloning the repository:
pip install -r requirements.txt
Login or signup in order to create virtual app. You can either connect your github profile or download ctl to manually to deploy this project.
The next step would be to follow the instruction given in the Heroku Documentation to deploy a web app.
If you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an issue here by including your search query and the expected result