Posted on

Diabetes Prediction using Machine Learning Project Code

Buy Now ₹1501

In this Diabetes Prediction using Machine Learning Project Code, the objective is to predict whether the person has Diabetes or not based on various features like Number of Pregnancies, Insulin Level, Age, BMI.The data set that has used in this project has taken from the kaggle . "This dataset is originally from the National Institute of Diabetes and Digestive and Kidney Diseases. The objective of the dataset is to diagnostically predict whether or not a patient has diabetes, based on certain diagnostic measurements included in the dataset. Several constraints were placed on the selection of these instances from a larger database. In particular, all patients here are females at least 21 years old of Pima Indian heritage." and used a simple random forest classifier.

Learning Objectives : -

The following points were the objective of the project (The main intention was to create an end-to-end ML project.)

  1. Data gathering
  2. Descriptive Analysis
  3. Data Visualizations
  4. Data Preprocessing
  5. Data Modelling
  6. Model Evaluation
  7. Model Deployment

Technical Aspect : -

  1. Training a machine learning model using scikit-learn.
  2. Building and hosting a Flask web app.
  3. A user has to put details like Number of Pregnancies, Insulin Level, Age, BMI etc .
  4. Once it get all the fields information , the prediction is displyed on a new page .

Technologies Used : -

  1. Python 3.7
  2. Pandas
  3. Numpy
  4. Flask

 

Datasets

https://www.kaggle.com/uciml/pima-indians-diabetes-database

 

Installation

  1. Download  and unzip it.
  2. After downloading, cd into the flask directory.
  3. Begin a new virtual environment with Python 3 and activate it.
  4. Install the required packages using pip install -r requirements.txt

RUN

  1. Execute the command: python app.py