The main objective of this project is to predict whether a person is suffering from diabetes or not based on various features like insulin level,glucose level,age,BMI.In this process , we will perform all the steps from Data gathering to Model deployment. Here we have used logistic regression to predict the accuracy.Then we create a web app using Django which is a python framework.
Table of Contents
-
Install Python
py --version
-
Setting up a virtual environment To create a virtual environment for your project, open a new command prompt, navigate to the folder where you want to create your project and then enter the following:
py -m venv project-name
This will create a folder called ‘project-name’ if it does not already exist and setup the virtual environment. To activate the environment, run:
project-name\Scripts\activate.bat
-
Install Django In the command prompt, ensure your virtual environment is active, and execute the following command:
py -m pip install Django
- Install all the necessary files.
- Open Pycharm and paste all the files.
- In the terminal type cd DiabetesProject -> cd DiabetesProject -> python manage.py runserver.Now django server will be initiallised..
- Open http://127.0.0.1:5000/ in your browser.
From this system an accuracy of 70% - 80% can be achieved.