praveen-reddy commited on
Commit
998d295
1 Parent(s): 49c04fc

first commit

Browse files
PDP_ML.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
app.py CHANGED
@@ -8,6 +8,13 @@ from sklearn.preprocessing import StandardScaler
8
  lr_model = "models/LR_model.pkl"
9
  knn_model = "models/KNN_model.pkl"
10
  svm_model = "models/SVM_model.pkl"
 
 
 
 
 
 
 
11
 
12
  with open(lr_model, 'rb') as file:
13
  LR_model = pickle.load(file)
@@ -18,6 +25,28 @@ with open(knn_model, 'rb') as file:
18
  with open(svm_model, 'rb') as file:
19
  SVM_model = pickle.load(file)
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  st.title("Parkinson's Disease Prediction Using Machine Learning")
22
 
23
  st.header('Fill the form and press the predict button to see the result',
@@ -60,9 +89,6 @@ initial_values = {
60
  }
61
 
62
 
63
- # for key, value in initial_values.items():
64
- # st.text_input(key, value=value)
65
-
66
  for i, (key, value) in enumerate(initial_values.items()):
67
  initial_values[key] = st.text_input(key, value=value, key=i)
68
 
@@ -82,6 +108,20 @@ if st.button('Predict', type="primary"):
82
  LR_model.predict(sc.fit_transform([test_value]))))
83
  st.write("KNN", str(KNN_model.predict(sc.fit_transform([test_value]))))
84
  st.write("SVM", str(SVM_model.predict(sc.fit_transform([test_value]))))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  st.write("Provided Data: ", test_value)
86
 
87
  dataset = pd.read_csv("dataset/parkinsons.data")
 
8
  lr_model = "models/LR_model.pkl"
9
  knn_model = "models/KNN_model.pkl"
10
  svm_model = "models/SVM_model.pkl"
11
+ abc_model = "models/ABC_model.pkl"
12
+ bc_model = "models/BC_model.pkl"
13
+ dt_model = "models/DT_model.pkl"
14
+ lgbm_model = "models/LGBM_model.pkl"
15
+ nb_model = "models/NB_model.pkl"
16
+ rf_model = "models/RF_model.pkl"
17
+ xg_model = "models/XG_model.pkl"
18
 
19
  with open(lr_model, 'rb') as file:
20
  LR_model = pickle.load(file)
 
25
  with open(svm_model, 'rb') as file:
26
  SVM_model = pickle.load(file)
27
 
28
+ with open(abc_model, 'rb') as file:
29
+ ABC_model = pickle.load(file)
30
+
31
+ with open(bc_model, 'rb') as file:
32
+ BC_model = pickle.load(file)
33
+
34
+ with open(dt_model, 'rb') as file:
35
+ DT_model = pickle.load(file)
36
+
37
+ with open(lgbm_model, 'rb') as file:
38
+ LGBM_model = pickle.load(file)
39
+
40
+ with open(nb_model, 'rb') as file:
41
+ NB_model = pickle.load(file)
42
+
43
+ with open(rf_model, 'rb') as file:
44
+ RF_model = pickle.load(file)
45
+
46
+ with open(xg_model, 'rb') as file:
47
+ XG_model = pickle.load(file)
48
+
49
+
50
  st.title("Parkinson's Disease Prediction Using Machine Learning")
51
 
52
  st.header('Fill the form and press the predict button to see the result',
 
89
  }
90
 
91
 
 
 
 
92
  for i, (key, value) in enumerate(initial_values.items()):
93
  initial_values[key] = st.text_input(key, value=value, key=i)
94
 
 
108
  LR_model.predict(sc.fit_transform([test_value]))))
109
  st.write("KNN", str(KNN_model.predict(sc.fit_transform([test_value]))))
110
  st.write("SVM", str(SVM_model.predict(sc.fit_transform([test_value]))))
111
+ st.write("AdaBoost Classifier", str(
112
+ ABC_model.predict(sc.fit_transform([test_value]))))
113
+ st.write("Bagging Classifier", str(
114
+ BC_model.predict(sc.fit_transform([test_value]))))
115
+ st.write("Decision Tree", str(
116
+ DT_model.predict(sc.fit_transform([test_value]))))
117
+ st.write("LightGBM", str(LGBM_model.predict(
118
+ sc.fit_transform([test_value]))))
119
+ st.write("Naive Bayes", str(
120
+ NB_model.predict(sc.fit_transform([test_value]))))
121
+ st.write("Random Forest", str(
122
+ RF_model.predict(sc.fit_transform([test_value]))))
123
+ st.write("XGBoost", str(XG_model.predict(sc.fit_transform([test_value]))))
124
+
125
  st.write("Provided Data: ", test_value)
126
 
127
  dataset = pd.read_csv("dataset/parkinsons.data")
models/ABC_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7902ea84ed1c4d396f4ef42b171629457efb263790f8a4c4d51b43b18011d3be
3
+ size 28775
models/BC_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02a9736c0634c7b484457024b2f888543b9e13015ff3b281e40d0620bbeab1ed
3
+ size 626508
models/DT_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b5868ab19ae6304905d8a318063ec7616ac35715c641af9dbf55a0fff777af1
3
+ size 1490
models/KNN_model.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0a8f7014bd43dd15a5f1cb789ad801abc1c7bbd25bfde28ded1cc48a1ad9d55
3
- size 885
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7408109d67cd26c838b11296b75532edd7a58f47527946d83e613890626bae87
3
+ size 29368
models/LGBM_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aae82a93e407b7e51c9b6af018c79bad82b37799d2cfe58e00d9d552e037cc94
3
+ size 99839
models/LR_model.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0a8f7014bd43dd15a5f1cb789ad801abc1c7bbd25bfde28ded1cc48a1ad9d55
3
  size 885
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea2127a9b1d5323ddd59593cdc0c026c4c4a4696ef6f243f506720523bfea440
3
  size 885
models/NB_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1662f26defdfc8f25d21d6e58c40c7851134d66524a79d2c7a6ceaa655c61714
3
+ size 1287
models/RF_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1ae84cedd2e63709fa9b5a6da68aa13afbcfb18414ce2e11e7097717b557819
3
+ size 70164
models/SVM_model.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0a8f7014bd43dd15a5f1cb789ad801abc1c7bbd25bfde28ded1cc48a1ad9d55
3
- size 885
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a0aa7035c4b8ab2f21716ed98ee3e1551bbfc902c34fc549dd9e1d99c9461b5
3
+ size 11649
models/XG_model.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:642ef784d80abcec5cce139af60d3dcde342ea54b50e74122d5f5378b7a57349
3
+ size 87079