AdithyaSNair commited on
Commit
7e40384
·
1 Parent(s): ea9011c
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,4 +1,3 @@
1
- def main(Pregnancies,Glucose_level,BP,skin_thickness,Insulin,BMI,Diabetes_Function,Age):
2
  import numpy as np # linear algebra
3
  import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
4
  import matplotlib.pyplot as plt
@@ -8,6 +7,8 @@ def main(Pregnancies,Glucose_level,BP,skin_thickness,Insulin,BMI,Diabetes_Functi
8
  from sklearn.metrics import accuracy_score
9
  from sklearn.model_selection import cross_val_score
10
  from sklearn.metrics import r2_score
 
 
11
 
12
  url="https://raw.githubusercontent.com/ADITHYASNAIR2021/Dataset-cart/main/diabetes.csv"
13
  diabetes_df = pd.read_csv(url)
@@ -101,17 +102,17 @@ examples=[[2,120,120,25,20,25,1,25],[5,200,200,50,160,30,2,30]],
101
  description =''' Description
102
 
103
  Some health issues are more serious than others. An example of a severe health issue is diabetes, which is an all-too-common condition
104
- It is important for people with diabetes to be diagnosed and treated as soon as possible, as high blood sugar levels can damage body organs and tissue,
105
  resulting in complications such as nerve damage, kidney damage, heart attacks, strokes, peripheral vascular disease etc. While some risk factors of
106
- developing diabetes cannot be changed, making healthy lifestyle choices can dramatically reduce a person’s chances of developing it.
107
 
108
  As we face these high numbers of diabetes and prediabetes cases, it’s important that everyone learns as much as they can about recognizing and preventing diabetes.
109
  All these points emphasise that diabetes can be really bad if not diagnosed properly so,
110
- with this AI tool, we can predict the onset of diabetes among people which will help them to adjust their lifestyles and other things correctly to prevent the diabetes in future.
111
 
112
 
113
  Output0 - Describes the Prediction made
114
- Output1 - Analyse of BMI
115
  Output2 - Analysis of Glucose level
116
 
117
 
@@ -141,7 +142,7 @@ Therefore, there is one target (dependent) variable and the following attributes
141
  * Age (years)
142
 
143
  * Pedigree Diabetes Function ('function that represents how likely they are to get the disease by extrapolating from their ancestor’s history )
144
- Generally, its between 0 - 2.5, if there wasn't any ancestorial history of diabetes you can choose between 0 and 1, and if there is any so can select between 1 - 2.5 regarding the seriousness in the family.
145
 
146
  To know more about the Tricep skin fold thickness measure
147
  visit this link:- https://ibb.co/4NDNNx1
 
 
1
  import numpy as np # linear algebra
2
  import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
3
  import matplotlib.pyplot as plt
 
7
  from sklearn.metrics import accuracy_score
8
  from sklearn.model_selection import cross_val_score
9
  from sklearn.metrics import r2_score
10
+
11
+ def main(Pregnancies,Glucose_level,BP,skin_thickness,Insulin,BMI,Diabetes_Function,Age):
12
 
13
  url="https://raw.githubusercontent.com/ADITHYASNAIR2021/Dataset-cart/main/diabetes.csv"
14
  diabetes_df = pd.read_csv(url)
 
102
  description =''' Description
103
 
104
  Some health issues are more serious than others. An example of a severe health issue is diabetes, which is an all-too-common condition
105
+ It is essential for people with diabetes to be diagnosed and treated as soon as possible, as high blood sugar levels can damage body organs and tissue,
106
  resulting in complications such as nerve damage, kidney damage, heart attacks, strokes, peripheral vascular disease etc. While some risk factors of
107
+ developing diabetes cannot be changed, healthy lifestyle choices can dramatically reduce a person’s chances of developing it.
108
 
109
  As we face these high numbers of diabetes and prediabetes cases, it’s important that everyone learns as much as they can about recognizing and preventing diabetes.
110
  All these points emphasise that diabetes can be really bad if not diagnosed properly so,
111
+ with this AI tool, we can predict the onset of diabetes among people which will help them to adjust their lifestyles and other things correctly to prevent diabetes in the future.
112
 
113
 
114
  Output0 - Describes the Prediction made
115
+ Output1 - Analyse BMI
116
  Output2 - Analysis of Glucose level
117
 
118
 
 
142
  * Age (years)
143
 
144
  * Pedigree Diabetes Function ('function that represents how likely they are to get the disease by extrapolating from their ancestor’s history )
145
+ Generally, it's between 0 - 2.5, if there wasn't any ancestorial history of diabetes you can choose between 0 and 1, and if there is any so can select between 1 - 2.5 regarding the seriousness in the family.
146
 
147
  To know more about the Tricep skin fold thickness measure
148
  visit this link:- https://ibb.co/4NDNNx1