Spaces:
No application file
No application file
Upload 3 files
Browse files- Prototype-1.csv +42 -0
- Prototype.csv +0 -0
- diseaseprediction.py +314 -0
Prototype-1.csv
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
itching,skin_rash,nodal_skin_eruptions,continuous_sneezing,shivering,chills,joint_pain,stomach_pain,acidity,ulcers_on_tongue,muscle_wasting,vomiting,burning_micturition,spotting_ urination,fatigue,weight_gain,anxiety,cold_hands_and_feets,mood_swings,weight_loss,restlessness,lethargy,patches_in_throat,irregular_sugar_level,cough,high_fever,sunken_eyes,breathlessness,sweating,dehydration,indigestion,headache,yellowish_skin,dark_urine,nausea,loss_of_appetite,pain_behind_the_eyes,back_pain,constipation,abdominal_pain,diarrhoea,mild_fever,yellow_urine,yellowing_of_eyes,acute_liver_failure,fluid_overload,swelling_of_stomach,swelled_lymph_nodes,malaise,blurred_and_distorted_vision,phlegm,throat_irritation,redness_of_eyes,sinus_pressure,runny_nose,congestion,chest_pain,weakness_in_limbs,fast_heart_rate,pain_during_bowel_movements,pain_in_anal_region,bloody_stool,irritation_in_anus,neck_pain,dizziness,cramps,bruising,obesity,swollen_legs,swollen_blood_vessels,puffy_face_and_eyes,enlarged_thyroid,brittle_nails,swollen_extremeties,excessive_hunger,extra_marital_contacts,drying_and_tingling_lips,slurred_speech,knee_pain,hip_joint_pain,muscle_weakness,stiff_neck,swelling_joints,movement_stiffness,spinning_movements,loss_of_balance,unsteadiness,weakness_of_one_body_side,loss_of_smell,bladder_discomfort,foul_smell_of urine,continuous_feel_of_urine,passage_of_gases,internal_itching,toxic_look_(typhos),depression,irritability,muscle_pain,altered_sensorium,red_spots_over_body,belly_pain,abnormal_menstruation,dischromic _patches,watering_from_eyes,increased_appetite,polyuria,family_history,mucoid_sputum,rusty_sputum,lack_of_concentration,visual_disturbances,receiving_blood_transfusion,receiving_unsterile_injections,coma,stomach_bleeding,distention_of_abdomen,history_of_alcohol_consumption,fluid_overload,blood_in_sputum,prominent_veins_on_calf,palpitations,painful_walking,pus_filled_pimples,blackheads,scurring,skin_peeling,silver_like_dusting,small_dents_in_nails,inflammatory_nails,blister,red_sore_around_nose,yellow_crust_ooze,prognosis
|
2 |
+
1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Fungal infection
|
3 |
+
0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Allergy
|
4 |
+
0,0,0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
from tkinter import *
|
3 |
+
import numpy as np
|
4 |
+
import pandas as pd
|
5 |
+
|
6 |
+
#List of the symptoms is listed here in list l1.
|
7 |
+
|
8 |
+
l1=['back_pain','constipation','abdominal_pain','diarrhoea','mild_fever','yellow_urine',
|
9 |
+
'yellowing_of_eyes','acute_liver_failure','fluid_overload','swelling_of_stomach',
|
10 |
+
'swelled_lymph_nodes','malaise','blurred_and_distorted_vision','phlegm','throat_irritation',
|
11 |
+
'redness_of_eyes','sinus_pressure','runny_nose','congestion','chest_pain','weakness_in_limbs',
|
12 |
+
'fast_heart_rate','pain_during_bowel_movements','pain_in_anal_region','bloody_stool',
|
13 |
+
'irritation_in_anus','neck_pain','dizziness','cramps','bruising','obesity','swollen_legs',
|
14 |
+
'swollen_blood_vessels','puffy_face_and_eyes','enlarged_thyroid','brittle_nails',
|
15 |
+
'swollen_extremeties','excessive_hunger','extra_marital_contacts','drying_and_tingling_lips',
|
16 |
+
'slurred_speech','knee_pain','hip_joint_pain','muscle_weakness','stiff_neck','swelling_joints',
|
17 |
+
'movement_stiffness','spinning_movements','loss_of_balance','unsteadiness',
|
18 |
+
'weakness_of_one_body_side','loss_of_smell','bladder_discomfort','foul_smell_of urine',
|
19 |
+
'continuous_feel_of_urine','passage_of_gases','internal_itching','toxic_look_(typhos)',
|
20 |
+
'depression','irritability','muscle_pain','altered_sensorium','red_spots_over_body','belly_pain',
|
21 |
+
'abnormal_menstruation','dischromic _patches','watering_from_eyes','increased_appetite','polyuria','family_history','mucoid_sputum',
|
22 |
+
'rusty_sputum','lack_of_concentration','visual_disturbances','receiving_blood_transfusion',
|
23 |
+
'receiving_unsterile_injections','coma','stomach_bleeding','distention_of_abdomen',
|
24 |
+
'history_of_alcohol_consumption','fluid_overload','blood_in_sputum','prominent_veins_on_calf',
|
25 |
+
'palpitations','painful_walking','pus_filled_pimples','blackheads','scurring','skin_peeling',
|
26 |
+
'silver_like_dusting','small_dents_in_nails','inflammatory_nails','blister','red_sore_around_nose',
|
27 |
+
'yellow_crust_ooze']
|
28 |
+
|
29 |
+
#List of Diseases is listed in list disease.
|
30 |
+
|
31 |
+
disease=['Fungal infection','Allergy','GERD','Chronic cholestasis','Drug Reaction',
|
32 |
+
'Peptic ulcer diseae','AIDS','Diabetes','Gastroenteritis','Bronchial Asthma','Hypertension',
|
33 |
+
' Migraine','Cervical spondylosis',
|
34 |
+
'Paralysis (brain hemorrhage)','Jaundice','Malaria','Chicken pox','Dengue','Typhoid','hepatitis A',
|
35 |
+
'Hepatitis B','Hepatitis C','Hepatitis D','Hepatitis E','Alcoholic hepatitis','Tuberculosis',
|
36 |
+
'Common Cold','Pneumonia','Dimorphic hemmorhoids(piles)',
|
37 |
+
'Heartattack','Varicoseveins','Hypothyroidism','Hyperthyroidism','Hypoglycemia','Osteoarthristis',
|
38 |
+
'Arthritis','(vertigo) Paroymsal Positional Vertigo','Acne','Urinary tract infection','Psoriasis',
|
39 |
+
'Impetigo']
|
40 |
+
|
41 |
+
l2=[]
|
42 |
+
|
43 |
+
for i in range(0,len(l1)):
|
44 |
+
l2.append(0)
|
45 |
+
|
46 |
+
df=pd.read_csv("Prototype.csv")
|
47 |
+
|
48 |
+
#Replace the values in the imported file by pandas by the inbuilt function replace in pandas.
|
49 |
+
|
50 |
+
df.replace({'prognosis':{'Fungal infection':0,'Allergy':1,'GERD':2,'Chronic cholestasis':3,'Drug Reaction':4,
|
51 |
+
'Peptic ulcer diseae':5,'AIDS':6,'Diabetes ':7,'Gastroenteritis':8,'Bronchial Asthma':9,'Hypertension ':10,
|
52 |
+
'Migraine':11,'Cervical spondylosis':12,
|
53 |
+
'Paralysis (brain hemorrhage)':13,'Jaundice':14,'Malaria':15,'Chicken pox':16,'Dengue':17,'Typhoid':18,'hepatitis A':19,
|
54 |
+
'Hepatitis B':20,'Hepatitis C':21,'Hepatitis D':22,'Hepatitis E':23,'Alcoholic hepatitis':24,'Tuberculosis':25,
|
55 |
+
'Common Cold':26,'Pneumonia':27,'Dimorphic hemmorhoids(piles)':28,'Heart attack':29,'Varicose veins':30,'Hypothyroidism':31,
|
56 |
+
'Hyperthyroidism':32,'Hypoglycemia':33,'Osteoarthristis':34,'Arthritis':35,
|
57 |
+
'(vertigo) Paroymsal Positional Vertigo':36,'Acne':37,'Urinary tract infection':38,'Psoriasis':39,
|
58 |
+
'Impetigo':40}},inplace=True)
|
59 |
+
|
60 |
+
#check the df
|
61 |
+
#print(df.head())
|
62 |
+
|
63 |
+
X= df[l1]
|
64 |
+
|
65 |
+
#print(X)
|
66 |
+
|
67 |
+
y = df[["prognosis"]]
|
68 |
+
np.ravel(y)
|
69 |
+
|
70 |
+
#print(y)
|
71 |
+
|
72 |
+
#Read a csv named Testing.csv
|
73 |
+
|
74 |
+
tr=pd.read_csv("Prototype-1.csv")
|
75 |
+
|
76 |
+
#Use replace method in pandas.
|
77 |
+
|
78 |
+
tr.replace({'prognosis':{'Fungal infection':0,'Allergy':1,'GERD':2,'Chronic cholestasis':3,'Drug Reaction':4,
|
79 |
+
'Peptic ulcer diseae':5,'AIDS':6,'Diabetes ':7,'Gastroenteritis':8,'Bronchial Asthma':9,'Hypertension ':10,
|
80 |
+
'Migraine':11,'Cervical spondylosis':12,
|
81 |
+
'Paralysis (brain hemorrhage)':13,'Jaundice':14,'Malaria':15,'Chicken pox':16,'Dengue':17,'Typhoid':18,'hepatitis A':19,
|
82 |
+
'Hepatitis B':20,'Hepatitis C':21,'Hepatitis D':22,'Hepatitis E':23,'Alcoholic hepatitis':24,'Tuberculosis':25,
|
83 |
+
'Common Cold':26,'Pneumonia':27,'Dimorphic hemmorhoids(piles)':28,'Heart attack':29,'Varicose veins':30,'Hypothyroidism':31,
|
84 |
+
'Hyperthyroidism':32,'Hypoglycemia':33,'Osteoarthristis':34,'Arthritis':35,
|
85 |
+
'(vertigo) Paroymsal Positional Vertigo':36,'Acne':37,'Urinary tract infection':38,'Psoriasis':39,
|
86 |
+
'Impetigo':40}},inplace=True)
|
87 |
+
|
88 |
+
X_test= tr[l1]
|
89 |
+
y_test = tr[["prognosis"]]
|
90 |
+
|
91 |
+
#print(y_test)
|
92 |
+
|
93 |
+
np.ravel(y_test)
|
94 |
+
|
95 |
+
def DecisionTree():
|
96 |
+
|
97 |
+
from sklearn import tree
|
98 |
+
|
99 |
+
clf3 = tree.DecisionTreeClassifier()
|
100 |
+
clf3 = clf3.fit(X,y)
|
101 |
+
|
102 |
+
from sklearn.metrics import accuracy_score
|
103 |
+
y_pred=clf3.predict(X_test)
|
104 |
+
print(accuracy_score(y_test, y_pred))
|
105 |
+
print(accuracy_score(y_test, y_pred,normalize=False))
|
106 |
+
|
107 |
+
psymptoms = [Symptom1.get(),Symptom2.get(),Symptom3.get(),Symptom4.get(),Symptom5.get()]
|
108 |
+
|
109 |
+
for k in range(0,len(l1)):
|
110 |
+
for z in psymptoms:
|
111 |
+
if(z==l1[k]):
|
112 |
+
l2[k]=1
|
113 |
+
|
114 |
+
inputtest = [l2]
|
115 |
+
predict = clf3.predict(inputtest)
|
116 |
+
predicted=predict[0]
|
117 |
+
|
118 |
+
h='no'
|
119 |
+
for a in range(0,len(disease)):
|
120 |
+
if(predicted == a):
|
121 |
+
h='yes'
|
122 |
+
break
|
123 |
+
|
124 |
+
|
125 |
+
if (h=='yes'):
|
126 |
+
t1.delete("1.0", END)
|
127 |
+
t1.insert(END, disease[a])
|
128 |
+
else:
|
129 |
+
t1.delete("1.0", END)
|
130 |
+
t1.insert(END, "Not Found")
|
131 |
+
|
132 |
+
|
133 |
+
def randomforest():
|
134 |
+
from sklearn.ensemble import RandomForestClassifier
|
135 |
+
clf4 = RandomForestClassifier()
|
136 |
+
clf4 = clf4.fit(X,np.ravel(y))
|
137 |
+
|
138 |
+
# calculating accuracy
|
139 |
+
from sklearn.metrics import accuracy_score
|
140 |
+
y_pred=clf4.predict(X_test)
|
141 |
+
print(accuracy_score(y_test, y_pred))
|
142 |
+
print(accuracy_score(y_test, y_pred,normalize=False))
|
143 |
+
|
144 |
+
psymptoms = [Symptom1.get(),Symptom2.get(),Symptom3.get(),Symptom4.get(),Symptom5.get()]
|
145 |
+
|
146 |
+
for k in range(0,len(l1)):
|
147 |
+
for z in psymptoms:
|
148 |
+
if(z==l1[k]):
|
149 |
+
l2[k]=1
|
150 |
+
|
151 |
+
inputtest = [l2]
|
152 |
+
predict = clf4.predict(inputtest)
|
153 |
+
predicted=predict[0]
|
154 |
+
|
155 |
+
h='no'
|
156 |
+
for a in range(0,len(disease)):
|
157 |
+
if(predicted == a):
|
158 |
+
h='yes'
|
159 |
+
break
|
160 |
+
|
161 |
+
if (h=='yes'):
|
162 |
+
t2.delete("1.0", END)
|
163 |
+
t2.insert(END, disease[a])
|
164 |
+
else:
|
165 |
+
t2.delete("1.0", END)
|
166 |
+
t2.insert(END, "Not Found")
|
167 |
+
|
168 |
+
|
169 |
+
def NaiveBayes():
|
170 |
+
from sklearn.naive_bayes import GaussianNB
|
171 |
+
gnb = GaussianNB()
|
172 |
+
gnb=gnb.fit(X,np.ravel(y))
|
173 |
+
|
174 |
+
from sklearn.metrics import accuracy_score
|
175 |
+
y_pred=gnb.predict(X_test)
|
176 |
+
print(accuracy_score(y_test, y_pred))
|
177 |
+
print(accuracy_score(y_test, y_pred,normalize=False))
|
178 |
+
|
179 |
+
psymptoms = [Symptom1.get(),Symptom2.get(),Symptom3.get(),Symptom4.get(),Symptom5.get()]
|
180 |
+
for k in range(0,len(l1)):
|
181 |
+
for z in psymptoms:
|
182 |
+
if(z==l1[k]):
|
183 |
+
l2[k]=1
|
184 |
+
|
185 |
+
inputtest = [l2]
|
186 |
+
predict = gnb.predict(inputtest)
|
187 |
+
predicted=predict[0]
|
188 |
+
|
189 |
+
h='no'
|
190 |
+
for a in range(0,len(disease)):
|
191 |
+
if(predicted == a):
|
192 |
+
h='yes'
|
193 |
+
break
|
194 |
+
|
195 |
+
if (h=='yes'):
|
196 |
+
t3.delete("1.0", END)
|
197 |
+
t3.insert(END, disease[a])
|
198 |
+
else:
|
199 |
+
t3.delete("1.0", END)
|
200 |
+
t3.insert(END, "Not Found")
|
201 |
+
|
202 |
+
# GUI stuff..............................................................................
|
203 |
+
|
204 |
+
root = Tk()
|
205 |
+
root.configure(background='white')
|
206 |
+
|
207 |
+
Symptom1 = StringVar()
|
208 |
+
Symptom1.set("Select Here")
|
209 |
+
|
210 |
+
Symptom2 = StringVar()
|
211 |
+
Symptom2.set("Select Here")
|
212 |
+
|
213 |
+
Symptom3 = StringVar()
|
214 |
+
Symptom3.set("Select Here")
|
215 |
+
|
216 |
+
Symptom4 = StringVar()
|
217 |
+
Symptom4.set("Select Here")
|
218 |
+
|
219 |
+
Symptom5 = StringVar()
|
220 |
+
Symptom5.set("Select Here")
|
221 |
+
|
222 |
+
Name = StringVar()
|
223 |
+
|
224 |
+
w2 = Label(root, justify=LEFT, text="Disease Predictor using Machine Learning", fg="Blue", bg="White")
|
225 |
+
w2.config(font=("Times",30,"bold "))
|
226 |
+
w2.grid(row=1, column=0, columnspan=2, padx=100)
|
227 |
+
w2 = Label(root, justify=LEFT, text="A Project by C N G", fg="Black", bg="Grey")
|
228 |
+
w2.config(font=("Times",30,"bold "))
|
229 |
+
w2.grid(row=2, column=0, columnspan=2, padx=100)
|
230 |
+
|
231 |
+
NameLb = Label(root, text="Name of the Patient", fg="Black", bg="grey")
|
232 |
+
NameLb.config(font=("Times",15,"bold italic"))
|
233 |
+
NameLb.grid(row=6, column=0, pady=15, sticky=W)
|
234 |
+
|
235 |
+
S1Lb = Label(root, text="Symptom 1", fg="Black", bg="grey")
|
236 |
+
S1Lb.config(font=("Times",15,"bold italic"))
|
237 |
+
S1Lb.grid(row=7, column=0, pady=10, sticky=W)
|
238 |
+
|
239 |
+
S2Lb = Label(root, text="Symptom 2", fg="Black", bg="grey")
|
240 |
+
S2Lb.config(font=("Times",15,"bold italic"))
|
241 |
+
S2Lb.grid(row=8, column=0, pady=10, sticky=W)
|
242 |
+
|
243 |
+
S3Lb = Label(root, text="Symptom 3", fg="Black",bg="grey")
|
244 |
+
S3Lb.config(font=("Times",15,"bold italic"))
|
245 |
+
S3Lb.grid(row=9, column=0, pady=10, sticky=W)
|
246 |
+
|
247 |
+
S4Lb = Label(root, text="Symptom 4", fg="Black", bg="grey")
|
248 |
+
S4Lb.config(font=("Times",15,"bold italic"))
|
249 |
+
S4Lb.grid(row=10, column=0, pady=10, sticky=W)
|
250 |
+
|
251 |
+
S5Lb = Label(root, text="Symptom 5", fg="Black", bg="grey")
|
252 |
+
S5Lb.config(font=("Times",15,"bold italic"))
|
253 |
+
S5Lb.grid(row=11, column=0, pady=10, sticky=W)
|
254 |
+
|
255 |
+
|
256 |
+
lrLb = Label(root, text="DecisionTree", fg="white", bg="red")
|
257 |
+
lrLb.config(font=("Times",15,"bold italic"))
|
258 |
+
lrLb.grid(row=15, column=0, pady=10,sticky=W)
|
259 |
+
|
260 |
+
destreeLb = Label(root, text="RandomForest", fg="Red", bg="silver")
|
261 |
+
destreeLb.config(font=("Times",15,"bold italic"))
|
262 |
+
destreeLb.grid(row=17, column=0, pady=10, sticky=W)
|
263 |
+
|
264 |
+
ranfLb = Label(root, text="NaiveBayes", fg="White", bg="green")
|
265 |
+
ranfLb.config(font=("Times",15,"bold italic"))
|
266 |
+
ranfLb.grid(row=19, column=0, pady=10, sticky=W)
|
267 |
+
|
268 |
+
OPTIONS = sorted(l1)
|
269 |
+
|
270 |
+
NameEn = Entry(root, textvariable=Name)
|
271 |
+
NameEn.grid(row=6, column=1)
|
272 |
+
|
273 |
+
S1 = OptionMenu(root, Symptom1,*OPTIONS)
|
274 |
+
S1.grid(row=7, column=1)
|
275 |
+
|
276 |
+
S2 = OptionMenu(root, Symptom2,*OPTIONS)
|
277 |
+
S2.grid(row=8, column=1)
|
278 |
+
|
279 |
+
S3 = OptionMenu(root, Symptom3,*OPTIONS)
|
280 |
+
S3.grid(row=9, column=1)
|
281 |
+
|
282 |
+
S4 = OptionMenu(root, Symptom4,*OPTIONS)
|
283 |
+
S4.grid(row=10, column=1)
|
284 |
+
|
285 |
+
S5 = OptionMenu(root, Symptom5,*OPTIONS)
|
286 |
+
S5.grid(row=11, column=1)
|
287 |
+
|
288 |
+
|
289 |
+
dst = Button(root, text="Prediction 1", command=DecisionTree,bg="Red",fg="Black")
|
290 |
+
dst.config(font=("Times",15,"bold italic"))
|
291 |
+
dst.grid(row=8, column=3,padx=10)
|
292 |
+
|
293 |
+
rnf = Button(root, text="Prediction 2", command=randomforest,bg="White",fg="Black")
|
294 |
+
rnf.config(font=("Times",15,"bold italic"))
|
295 |
+
rnf.grid(row=9, column=3,padx=10)
|
296 |
+
|
297 |
+
lr = Button(root, text="Prediction 3", command=NaiveBayes,bg="Green",fg="Black")
|
298 |
+
lr.config(font=("Times",15,"bold italic"))
|
299 |
+
lr.grid(row=10, column=3,padx=10)
|
300 |
+
|
301 |
+
|
302 |
+
t1 = Text(root, height=1, width=40,bg="white",fg="red")
|
303 |
+
t1.config(font=("Times",15,"bold italic"))
|
304 |
+
t1.grid(row=15, column=1, padx=10)
|
305 |
+
|
306 |
+
t2 = Text(root, height=1, width=40,bg="White",fg="Blue")
|
307 |
+
t2.config(font=("Times",15,"bold italic"))
|
308 |
+
t2.grid(row=17, column=1 , padx=10)
|
309 |
+
|
310 |
+
t3 = Text(root, height=1, width=40,bg="white",fg="white")
|
311 |
+
t3.config(font=("Times",15,"bold italic"))
|
312 |
+
t3.grid(row=19, column=1 , padx=10)
|
313 |
+
|
314 |
+
root.mainloop()
|