Spaces:
Runtime error
Runtime error
Upload 15 files
Browse files- NVD.ipynb +1203 -0
- diabetes.csv +769 -0
- healthcare-dataset-stroke-data.csv +0 -0
- heart.csv +304 -0
- kcd.ipynb +1306 -0
- kcd.pkl +3 -0
- kidney_disease.csv +401 -0
- mp.ipynb +1108 -0
- mp.pkl +3 -0
- nvd.pkl +3 -0
- osp.ipynb +654 -0
- osp.pkl +3 -0
- sk.ipynb +632 -0
- sk.pkl +3 -0
- survey lung cancer.csv +310 -0
NVD.ipynb
ADDED
@@ -0,0 +1,1203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"nbformat": 4,
|
3 |
+
"nbformat_minor": 0,
|
4 |
+
"metadata": {
|
5 |
+
"colab": {
|
6 |
+
"provenance": []
|
7 |
+
},
|
8 |
+
"kernelspec": {
|
9 |
+
"name": "python3",
|
10 |
+
"display_name": "Python 3"
|
11 |
+
},
|
12 |
+
"language_info": {
|
13 |
+
"name": "python"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
"cells": [
|
17 |
+
{
|
18 |
+
"cell_type": "markdown",
|
19 |
+
"source": [
|
20 |
+
"\n",
|
21 |
+
"# Novel Variation Detection\n",
|
22 |
+
"\n"
|
23 |
+
],
|
24 |
+
"metadata": {
|
25 |
+
"id": "BnYTwM3OivB4"
|
26 |
+
}
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"cell_type": "code",
|
30 |
+
"execution_count": 1,
|
31 |
+
"metadata": {
|
32 |
+
"id": "L96SNQ8HVI7m"
|
33 |
+
},
|
34 |
+
"outputs": [],
|
35 |
+
"source": [
|
36 |
+
"# imports\n",
|
37 |
+
"import tensorflow as tf\n",
|
38 |
+
"import pandas as pd\n",
|
39 |
+
"import numpy as np\n",
|
40 |
+
"import matplotlib.pyplot as plt\n",
|
41 |
+
"from sklearn.preprocessing import StandardScaler\n",
|
42 |
+
"from imblearn.over_sampling import RandomOverSampler\n",
|
43 |
+
"import seaborn as sns\n",
|
44 |
+
"from sklearn.model_selection import train_test_split"
|
45 |
+
]
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"cell_type": "code",
|
49 |
+
"source": [
|
50 |
+
"# using drive to load our dataset\n",
|
51 |
+
"from google.colab import drive\n",
|
52 |
+
"drive.mount('/content/drive')"
|
53 |
+
],
|
54 |
+
"metadata": {
|
55 |
+
"colab": {
|
56 |
+
"base_uri": "https://localhost:8080/"
|
57 |
+
},
|
58 |
+
"id": "Ea3adROCVORJ",
|
59 |
+
"outputId": "eceb945e-4488-4ac0-ba2a-50005e6a95ef"
|
60 |
+
},
|
61 |
+
"execution_count": 2,
|
62 |
+
"outputs": [
|
63 |
+
{
|
64 |
+
"output_type": "stream",
|
65 |
+
"name": "stdout",
|
66 |
+
"text": [
|
67 |
+
"Mounted at /content/drive\n"
|
68 |
+
]
|
69 |
+
}
|
70 |
+
]
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"cell_type": "code",
|
74 |
+
"source": [
|
75 |
+
"df=pd.read_csv('/content/drive/MyDrive/dataset/lc.csv')\n",
|
76 |
+
"del df['YELLOW_FINGERS'],df['ANXIETY'],df['CHRONIC DISEASE'],df['SHORTNESS OF BREATH'],df['SWALLOWING DIFFICULTY'],df['FATIGUE ']\n",
|
77 |
+
"df"
|
78 |
+
],
|
79 |
+
"metadata": {
|
80 |
+
"colab": {
|
81 |
+
"base_uri": "https://localhost:8080/",
|
82 |
+
"height": 423
|
83 |
+
},
|
84 |
+
"id": "mFDmqdaodqI4",
|
85 |
+
"outputId": "97d8ae49-21ef-4c8f-82c2-719f721b6c40"
|
86 |
+
},
|
87 |
+
"execution_count": 10,
|
88 |
+
"outputs": [
|
89 |
+
{
|
90 |
+
"output_type": "execute_result",
|
91 |
+
"data": {
|
92 |
+
"text/plain": [
|
93 |
+
" GENDER AGE SMOKING PEER_PRESSURE ALLERGY WHEEZING \\\n",
|
94 |
+
"0 M 69 1 1 1 2 \n",
|
95 |
+
"1 M 74 2 1 2 1 \n",
|
96 |
+
"2 F 59 1 2 1 2 \n",
|
97 |
+
"3 M 63 2 1 1 1 \n",
|
98 |
+
"4 F 63 1 1 1 2 \n",
|
99 |
+
".. ... ... ... ... ... ... \n",
|
100 |
+
"304 F 56 1 2 1 1 \n",
|
101 |
+
"305 M 70 2 1 2 2 \n",
|
102 |
+
"306 M 58 2 1 2 2 \n",
|
103 |
+
"307 M 67 2 1 2 1 \n",
|
104 |
+
"308 M 62 1 2 2 2 \n",
|
105 |
+
"\n",
|
106 |
+
" ALCOHOL CONSUMING COUGHING CHEST PAIN LUNG_CANCER \n",
|
107 |
+
"0 2 2 2 YES \n",
|
108 |
+
"1 1 1 2 YES \n",
|
109 |
+
"2 1 2 2 NO \n",
|
110 |
+
"3 2 1 2 NO \n",
|
111 |
+
"4 1 2 1 NO \n",
|
112 |
+
".. ... ... ... ... \n",
|
113 |
+
"304 2 2 1 YES \n",
|
114 |
+
"305 2 2 2 YES \n",
|
115 |
+
"306 2 2 2 YES \n",
|
116 |
+
"307 2 2 2 YES \n",
|
117 |
+
"308 2 1 1 YES \n",
|
118 |
+
"\n",
|
119 |
+
"[309 rows x 10 columns]"
|
120 |
+
],
|
121 |
+
"text/html": [
|
122 |
+
"\n",
|
123 |
+
" <div id=\"df-c7539b45-46f0-495b-bf9f-03cd23a83a10\" class=\"colab-df-container\">\n",
|
124 |
+
" <div>\n",
|
125 |
+
"<style scoped>\n",
|
126 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
127 |
+
" vertical-align: middle;\n",
|
128 |
+
" }\n",
|
129 |
+
"\n",
|
130 |
+
" .dataframe tbody tr th {\n",
|
131 |
+
" vertical-align: top;\n",
|
132 |
+
" }\n",
|
133 |
+
"\n",
|
134 |
+
" .dataframe thead th {\n",
|
135 |
+
" text-align: right;\n",
|
136 |
+
" }\n",
|
137 |
+
"</style>\n",
|
138 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
139 |
+
" <thead>\n",
|
140 |
+
" <tr style=\"text-align: right;\">\n",
|
141 |
+
" <th></th>\n",
|
142 |
+
" <th>GENDER</th>\n",
|
143 |
+
" <th>AGE</th>\n",
|
144 |
+
" <th>SMOKING</th>\n",
|
145 |
+
" <th>PEER_PRESSURE</th>\n",
|
146 |
+
" <th>ALLERGY</th>\n",
|
147 |
+
" <th>WHEEZING</th>\n",
|
148 |
+
" <th>ALCOHOL CONSUMING</th>\n",
|
149 |
+
" <th>COUGHING</th>\n",
|
150 |
+
" <th>CHEST PAIN</th>\n",
|
151 |
+
" <th>LUNG_CANCER</th>\n",
|
152 |
+
" </tr>\n",
|
153 |
+
" </thead>\n",
|
154 |
+
" <tbody>\n",
|
155 |
+
" <tr>\n",
|
156 |
+
" <th>0</th>\n",
|
157 |
+
" <td>M</td>\n",
|
158 |
+
" <td>69</td>\n",
|
159 |
+
" <td>1</td>\n",
|
160 |
+
" <td>1</td>\n",
|
161 |
+
" <td>1</td>\n",
|
162 |
+
" <td>2</td>\n",
|
163 |
+
" <td>2</td>\n",
|
164 |
+
" <td>2</td>\n",
|
165 |
+
" <td>2</td>\n",
|
166 |
+
" <td>YES</td>\n",
|
167 |
+
" </tr>\n",
|
168 |
+
" <tr>\n",
|
169 |
+
" <th>1</th>\n",
|
170 |
+
" <td>M</td>\n",
|
171 |
+
" <td>74</td>\n",
|
172 |
+
" <td>2</td>\n",
|
173 |
+
" <td>1</td>\n",
|
174 |
+
" <td>2</td>\n",
|
175 |
+
" <td>1</td>\n",
|
176 |
+
" <td>1</td>\n",
|
177 |
+
" <td>1</td>\n",
|
178 |
+
" <td>2</td>\n",
|
179 |
+
" <td>YES</td>\n",
|
180 |
+
" </tr>\n",
|
181 |
+
" <tr>\n",
|
182 |
+
" <th>2</th>\n",
|
183 |
+
" <td>F</td>\n",
|
184 |
+
" <td>59</td>\n",
|
185 |
+
" <td>1</td>\n",
|
186 |
+
" <td>2</td>\n",
|
187 |
+
" <td>1</td>\n",
|
188 |
+
" <td>2</td>\n",
|
189 |
+
" <td>1</td>\n",
|
190 |
+
" <td>2</td>\n",
|
191 |
+
" <td>2</td>\n",
|
192 |
+
" <td>NO</td>\n",
|
193 |
+
" </tr>\n",
|
194 |
+
" <tr>\n",
|
195 |
+
" <th>3</th>\n",
|
196 |
+
" <td>M</td>\n",
|
197 |
+
" <td>63</td>\n",
|
198 |
+
" <td>2</td>\n",
|
199 |
+
" <td>1</td>\n",
|
200 |
+
" <td>1</td>\n",
|
201 |
+
" <td>1</td>\n",
|
202 |
+
" <td>2</td>\n",
|
203 |
+
" <td>1</td>\n",
|
204 |
+
" <td>2</td>\n",
|
205 |
+
" <td>NO</td>\n",
|
206 |
+
" </tr>\n",
|
207 |
+
" <tr>\n",
|
208 |
+
" <th>4</th>\n",
|
209 |
+
" <td>F</td>\n",
|
210 |
+
" <td>63</td>\n",
|
211 |
+
" <td>1</td>\n",
|
212 |
+
" <td>1</td>\n",
|
213 |
+
" <td>1</td>\n",
|
214 |
+
" <td>2</td>\n",
|
215 |
+
" <td>1</td>\n",
|
216 |
+
" <td>2</td>\n",
|
217 |
+
" <td>1</td>\n",
|
218 |
+
" <td>NO</td>\n",
|
219 |
+
" </tr>\n",
|
220 |
+
" <tr>\n",
|
221 |
+
" <th>...</th>\n",
|
222 |
+
" <td>...</td>\n",
|
223 |
+
" <td>...</td>\n",
|
224 |
+
" <td>...</td>\n",
|
225 |
+
" <td>...</td>\n",
|
226 |
+
" <td>...</td>\n",
|
227 |
+
" <td>...</td>\n",
|
228 |
+
" <td>...</td>\n",
|
229 |
+
" <td>...</td>\n",
|
230 |
+
" <td>...</td>\n",
|
231 |
+
" <td>...</td>\n",
|
232 |
+
" </tr>\n",
|
233 |
+
" <tr>\n",
|
234 |
+
" <th>304</th>\n",
|
235 |
+
" <td>F</td>\n",
|
236 |
+
" <td>56</td>\n",
|
237 |
+
" <td>1</td>\n",
|
238 |
+
" <td>2</td>\n",
|
239 |
+
" <td>1</td>\n",
|
240 |
+
" <td>1</td>\n",
|
241 |
+
" <td>2</td>\n",
|
242 |
+
" <td>2</td>\n",
|
243 |
+
" <td>1</td>\n",
|
244 |
+
" <td>YES</td>\n",
|
245 |
+
" </tr>\n",
|
246 |
+
" <tr>\n",
|
247 |
+
" <th>305</th>\n",
|
248 |
+
" <td>M</td>\n",
|
249 |
+
" <td>70</td>\n",
|
250 |
+
" <td>2</td>\n",
|
251 |
+
" <td>1</td>\n",
|
252 |
+
" <td>2</td>\n",
|
253 |
+
" <td>2</td>\n",
|
254 |
+
" <td>2</td>\n",
|
255 |
+
" <td>2</td>\n",
|
256 |
+
" <td>2</td>\n",
|
257 |
+
" <td>YES</td>\n",
|
258 |
+
" </tr>\n",
|
259 |
+
" <tr>\n",
|
260 |
+
" <th>306</th>\n",
|
261 |
+
" <td>M</td>\n",
|
262 |
+
" <td>58</td>\n",
|
263 |
+
" <td>2</td>\n",
|
264 |
+
" <td>1</td>\n",
|
265 |
+
" <td>2</td>\n",
|
266 |
+
" <td>2</td>\n",
|
267 |
+
" <td>2</td>\n",
|
268 |
+
" <td>2</td>\n",
|
269 |
+
" <td>2</td>\n",
|
270 |
+
" <td>YES</td>\n",
|
271 |
+
" </tr>\n",
|
272 |
+
" <tr>\n",
|
273 |
+
" <th>307</th>\n",
|
274 |
+
" <td>M</td>\n",
|
275 |
+
" <td>67</td>\n",
|
276 |
+
" <td>2</td>\n",
|
277 |
+
" <td>1</td>\n",
|
278 |
+
" <td>2</td>\n",
|
279 |
+
" <td>1</td>\n",
|
280 |
+
" <td>2</td>\n",
|
281 |
+
" <td>2</td>\n",
|
282 |
+
" <td>2</td>\n",
|
283 |
+
" <td>YES</td>\n",
|
284 |
+
" </tr>\n",
|
285 |
+
" <tr>\n",
|
286 |
+
" <th>308</th>\n",
|
287 |
+
" <td>M</td>\n",
|
288 |
+
" <td>62</td>\n",
|
289 |
+
" <td>1</td>\n",
|
290 |
+
" <td>2</td>\n",
|
291 |
+
" <td>2</td>\n",
|
292 |
+
" <td>2</td>\n",
|
293 |
+
" <td>2</td>\n",
|
294 |
+
" <td>1</td>\n",
|
295 |
+
" <td>1</td>\n",
|
296 |
+
" <td>YES</td>\n",
|
297 |
+
" </tr>\n",
|
298 |
+
" </tbody>\n",
|
299 |
+
"</table>\n",
|
300 |
+
"<p>309 rows × 10 columns</p>\n",
|
301 |
+
"</div>\n",
|
302 |
+
" <div class=\"colab-df-buttons\">\n",
|
303 |
+
"\n",
|
304 |
+
" <div class=\"colab-df-container\">\n",
|
305 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-c7539b45-46f0-495b-bf9f-03cd23a83a10')\"\n",
|
306 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
307 |
+
" style=\"display:none;\">\n",
|
308 |
+
"\n",
|
309 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
310 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
311 |
+
" </svg>\n",
|
312 |
+
" </button>\n",
|
313 |
+
"\n",
|
314 |
+
" <style>\n",
|
315 |
+
" .colab-df-container {\n",
|
316 |
+
" display:flex;\n",
|
317 |
+
" gap: 12px;\n",
|
318 |
+
" }\n",
|
319 |
+
"\n",
|
320 |
+
" .colab-df-convert {\n",
|
321 |
+
" background-color: #E8F0FE;\n",
|
322 |
+
" border: none;\n",
|
323 |
+
" border-radius: 50%;\n",
|
324 |
+
" cursor: pointer;\n",
|
325 |
+
" display: none;\n",
|
326 |
+
" fill: #1967D2;\n",
|
327 |
+
" height: 32px;\n",
|
328 |
+
" padding: 0 0 0 0;\n",
|
329 |
+
" width: 32px;\n",
|
330 |
+
" }\n",
|
331 |
+
"\n",
|
332 |
+
" .colab-df-convert:hover {\n",
|
333 |
+
" background-color: #E2EBFA;\n",
|
334 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
335 |
+
" fill: #174EA6;\n",
|
336 |
+
" }\n",
|
337 |
+
"\n",
|
338 |
+
" .colab-df-buttons div {\n",
|
339 |
+
" margin-bottom: 4px;\n",
|
340 |
+
" }\n",
|
341 |
+
"\n",
|
342 |
+
" [theme=dark] .colab-df-convert {\n",
|
343 |
+
" background-color: #3B4455;\n",
|
344 |
+
" fill: #D2E3FC;\n",
|
345 |
+
" }\n",
|
346 |
+
"\n",
|
347 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
348 |
+
" background-color: #434B5C;\n",
|
349 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
350 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
351 |
+
" fill: #FFFFFF;\n",
|
352 |
+
" }\n",
|
353 |
+
" </style>\n",
|
354 |
+
"\n",
|
355 |
+
" <script>\n",
|
356 |
+
" const buttonEl =\n",
|
357 |
+
" document.querySelector('#df-c7539b45-46f0-495b-bf9f-03cd23a83a10 button.colab-df-convert');\n",
|
358 |
+
" buttonEl.style.display =\n",
|
359 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
360 |
+
"\n",
|
361 |
+
" async function convertToInteractive(key) {\n",
|
362 |
+
" const element = document.querySelector('#df-c7539b45-46f0-495b-bf9f-03cd23a83a10');\n",
|
363 |
+
" const dataTable =\n",
|
364 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
365 |
+
" [key], {});\n",
|
366 |
+
" if (!dataTable) return;\n",
|
367 |
+
"\n",
|
368 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
369 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
370 |
+
" + ' to learn more about interactive tables.';\n",
|
371 |
+
" element.innerHTML = '';\n",
|
372 |
+
" dataTable['output_type'] = 'display_data';\n",
|
373 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
374 |
+
" const docLink = document.createElement('div');\n",
|
375 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
376 |
+
" element.appendChild(docLink);\n",
|
377 |
+
" }\n",
|
378 |
+
" </script>\n",
|
379 |
+
" </div>\n",
|
380 |
+
"\n",
|
381 |
+
"\n",
|
382 |
+
"<div id=\"df-e7e82956-8747-45c0-91db-a1e7ecccb698\">\n",
|
383 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-e7e82956-8747-45c0-91db-a1e7ecccb698')\"\n",
|
384 |
+
" title=\"Suggest charts\"\n",
|
385 |
+
" style=\"display:none;\">\n",
|
386 |
+
"\n",
|
387 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
388 |
+
" width=\"24px\">\n",
|
389 |
+
" <g>\n",
|
390 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
391 |
+
" </g>\n",
|
392 |
+
"</svg>\n",
|
393 |
+
" </button>\n",
|
394 |
+
"\n",
|
395 |
+
"<style>\n",
|
396 |
+
" .colab-df-quickchart {\n",
|
397 |
+
" --bg-color: #E8F0FE;\n",
|
398 |
+
" --fill-color: #1967D2;\n",
|
399 |
+
" --hover-bg-color: #E2EBFA;\n",
|
400 |
+
" --hover-fill-color: #174EA6;\n",
|
401 |
+
" --disabled-fill-color: #AAA;\n",
|
402 |
+
" --disabled-bg-color: #DDD;\n",
|
403 |
+
" }\n",
|
404 |
+
"\n",
|
405 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
406 |
+
" --bg-color: #3B4455;\n",
|
407 |
+
" --fill-color: #D2E3FC;\n",
|
408 |
+
" --hover-bg-color: #434B5C;\n",
|
409 |
+
" --hover-fill-color: #FFFFFF;\n",
|
410 |
+
" --disabled-bg-color: #3B4455;\n",
|
411 |
+
" --disabled-fill-color: #666;\n",
|
412 |
+
" }\n",
|
413 |
+
"\n",
|
414 |
+
" .colab-df-quickchart {\n",
|
415 |
+
" background-color: var(--bg-color);\n",
|
416 |
+
" border: none;\n",
|
417 |
+
" border-radius: 50%;\n",
|
418 |
+
" cursor: pointer;\n",
|
419 |
+
" display: none;\n",
|
420 |
+
" fill: var(--fill-color);\n",
|
421 |
+
" height: 32px;\n",
|
422 |
+
" padding: 0;\n",
|
423 |
+
" width: 32px;\n",
|
424 |
+
" }\n",
|
425 |
+
"\n",
|
426 |
+
" .colab-df-quickchart:hover {\n",
|
427 |
+
" background-color: var(--hover-bg-color);\n",
|
428 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
429 |
+
" fill: var(--button-hover-fill-color);\n",
|
430 |
+
" }\n",
|
431 |
+
"\n",
|
432 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
433 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
434 |
+
" background-color: var(--disabled-bg-color);\n",
|
435 |
+
" fill: var(--disabled-fill-color);\n",
|
436 |
+
" box-shadow: none;\n",
|
437 |
+
" }\n",
|
438 |
+
"\n",
|
439 |
+
" .colab-df-spinner {\n",
|
440 |
+
" border: 2px solid var(--fill-color);\n",
|
441 |
+
" border-color: transparent;\n",
|
442 |
+
" border-bottom-color: var(--fill-color);\n",
|
443 |
+
" animation:\n",
|
444 |
+
" spin 1s steps(1) infinite;\n",
|
445 |
+
" }\n",
|
446 |
+
"\n",
|
447 |
+
" @keyframes spin {\n",
|
448 |
+
" 0% {\n",
|
449 |
+
" border-color: transparent;\n",
|
450 |
+
" border-bottom-color: var(--fill-color);\n",
|
451 |
+
" border-left-color: var(--fill-color);\n",
|
452 |
+
" }\n",
|
453 |
+
" 20% {\n",
|
454 |
+
" border-color: transparent;\n",
|
455 |
+
" border-left-color: var(--fill-color);\n",
|
456 |
+
" border-top-color: var(--fill-color);\n",
|
457 |
+
" }\n",
|
458 |
+
" 30% {\n",
|
459 |
+
" border-color: transparent;\n",
|
460 |
+
" border-left-color: var(--fill-color);\n",
|
461 |
+
" border-top-color: var(--fill-color);\n",
|
462 |
+
" border-right-color: var(--fill-color);\n",
|
463 |
+
" }\n",
|
464 |
+
" 40% {\n",
|
465 |
+
" border-color: transparent;\n",
|
466 |
+
" border-right-color: var(--fill-color);\n",
|
467 |
+
" border-top-color: var(--fill-color);\n",
|
468 |
+
" }\n",
|
469 |
+
" 60% {\n",
|
470 |
+
" border-color: transparent;\n",
|
471 |
+
" border-right-color: var(--fill-color);\n",
|
472 |
+
" }\n",
|
473 |
+
" 80% {\n",
|
474 |
+
" border-color: transparent;\n",
|
475 |
+
" border-right-color: var(--fill-color);\n",
|
476 |
+
" border-bottom-color: var(--fill-color);\n",
|
477 |
+
" }\n",
|
478 |
+
" 90% {\n",
|
479 |
+
" border-color: transparent;\n",
|
480 |
+
" border-bottom-color: var(--fill-color);\n",
|
481 |
+
" }\n",
|
482 |
+
" }\n",
|
483 |
+
"</style>\n",
|
484 |
+
"\n",
|
485 |
+
" <script>\n",
|
486 |
+
" async function quickchart(key) {\n",
|
487 |
+
" const quickchartButtonEl =\n",
|
488 |
+
" document.querySelector('#' + key + ' button');\n",
|
489 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
490 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
491 |
+
" try {\n",
|
492 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
493 |
+
" 'suggestCharts', [key], {});\n",
|
494 |
+
" } catch (error) {\n",
|
495 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
496 |
+
" }\n",
|
497 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
498 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
499 |
+
" }\n",
|
500 |
+
" (() => {\n",
|
501 |
+
" let quickchartButtonEl =\n",
|
502 |
+
" document.querySelector('#df-e7e82956-8747-45c0-91db-a1e7ecccb698 button');\n",
|
503 |
+
" quickchartButtonEl.style.display =\n",
|
504 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
505 |
+
" })();\n",
|
506 |
+
" </script>\n",
|
507 |
+
"</div>\n",
|
508 |
+
"\n",
|
509 |
+
" <div id=\"id_c34f5a5a-e248-4244-b2ee-571943b24671\">\n",
|
510 |
+
" <style>\n",
|
511 |
+
" .colab-df-generate {\n",
|
512 |
+
" background-color: #E8F0FE;\n",
|
513 |
+
" border: none;\n",
|
514 |
+
" border-radius: 50%;\n",
|
515 |
+
" cursor: pointer;\n",
|
516 |
+
" display: none;\n",
|
517 |
+
" fill: #1967D2;\n",
|
518 |
+
" height: 32px;\n",
|
519 |
+
" padding: 0 0 0 0;\n",
|
520 |
+
" width: 32px;\n",
|
521 |
+
" }\n",
|
522 |
+
"\n",
|
523 |
+
" .colab-df-generate:hover {\n",
|
524 |
+
" background-color: #E2EBFA;\n",
|
525 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
526 |
+
" fill: #174EA6;\n",
|
527 |
+
" }\n",
|
528 |
+
"\n",
|
529 |
+
" [theme=dark] .colab-df-generate {\n",
|
530 |
+
" background-color: #3B4455;\n",
|
531 |
+
" fill: #D2E3FC;\n",
|
532 |
+
" }\n",
|
533 |
+
"\n",
|
534 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
535 |
+
" background-color: #434B5C;\n",
|
536 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
537 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
538 |
+
" fill: #FFFFFF;\n",
|
539 |
+
" }\n",
|
540 |
+
" </style>\n",
|
541 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
542 |
+
" title=\"Generate code using this dataframe.\"\n",
|
543 |
+
" style=\"display:none;\">\n",
|
544 |
+
"\n",
|
545 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
546 |
+
" width=\"24px\">\n",
|
547 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
548 |
+
" </svg>\n",
|
549 |
+
" </button>\n",
|
550 |
+
" <script>\n",
|
551 |
+
" (() => {\n",
|
552 |
+
" const buttonEl =\n",
|
553 |
+
" document.querySelector('#id_c34f5a5a-e248-4244-b2ee-571943b24671 button.colab-df-generate');\n",
|
554 |
+
" buttonEl.style.display =\n",
|
555 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
556 |
+
"\n",
|
557 |
+
" buttonEl.onclick = () => {\n",
|
558 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
559 |
+
" }\n",
|
560 |
+
" })();\n",
|
561 |
+
" </script>\n",
|
562 |
+
" </div>\n",
|
563 |
+
"\n",
|
564 |
+
" </div>\n",
|
565 |
+
" </div>\n"
|
566 |
+
],
|
567 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
568 |
+
"type": "dataframe",
|
569 |
+
"variable_name": "df",
|
570 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 309,\n \"fields\": [\n {\n \"column\": \"GENDER\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 2,\n \"samples\": [\n \"F\",\n \"M\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"AGE\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 8,\n \"min\": 21,\n \"max\": 87,\n \"num_unique_values\": 39,\n \"samples\": [\n 81,\n 39\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"SMOKING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 2,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"PEER_PRESSURE\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 2,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ALLERGY \",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 2,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"WHEEZING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ALCOHOL CONSUMING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"COUGHING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"CHEST PAIN\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"LUNG_CANCER\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 2,\n \"samples\": [\n \"NO\",\n \"YES\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
571 |
+
}
|
572 |
+
},
|
573 |
+
"metadata": {},
|
574 |
+
"execution_count": 10
|
575 |
+
}
|
576 |
+
]
|
577 |
+
},
|
578 |
+
{
|
579 |
+
"cell_type": "code",
|
580 |
+
"source": [
|
581 |
+
"df['GENDER']=(df['GENDER']=='M').astype(int)\n",
|
582 |
+
"df['LUNG_CANCER']=(df['LUNG_CANCER']=='YES').astype(int)"
|
583 |
+
],
|
584 |
+
"metadata": {
|
585 |
+
"id": "ENltExbBeKTj"
|
586 |
+
},
|
587 |
+
"execution_count": 11,
|
588 |
+
"outputs": []
|
589 |
+
},
|
590 |
+
{
|
591 |
+
"cell_type": "code",
|
592 |
+
"source": [
|
593 |
+
"del df['COUGHING']\n",
|
594 |
+
"df"
|
595 |
+
],
|
596 |
+
"metadata": {
|
597 |
+
"colab": {
|
598 |
+
"base_uri": "https://localhost:8080/",
|
599 |
+
"height": 423
|
600 |
+
},
|
601 |
+
"id": "4kWj9yKchhyY",
|
602 |
+
"outputId": "46230399-ba0a-45aa-8ebb-295d18e4ade9"
|
603 |
+
},
|
604 |
+
"execution_count": 13,
|
605 |
+
"outputs": [
|
606 |
+
{
|
607 |
+
"output_type": "execute_result",
|
608 |
+
"data": {
|
609 |
+
"text/plain": [
|
610 |
+
" GENDER AGE SMOKING PEER_PRESSURE ALLERGY WHEEZING \\\n",
|
611 |
+
"0 1 69 1 1 1 2 \n",
|
612 |
+
"1 1 74 2 1 2 1 \n",
|
613 |
+
"2 0 59 1 2 1 2 \n",
|
614 |
+
"3 1 63 2 1 1 1 \n",
|
615 |
+
"4 0 63 1 1 1 2 \n",
|
616 |
+
".. ... ... ... ... ... ... \n",
|
617 |
+
"304 0 56 1 2 1 1 \n",
|
618 |
+
"305 1 70 2 1 2 2 \n",
|
619 |
+
"306 1 58 2 1 2 2 \n",
|
620 |
+
"307 1 67 2 1 2 1 \n",
|
621 |
+
"308 1 62 1 2 2 2 \n",
|
622 |
+
"\n",
|
623 |
+
" ALCOHOL CONSUMING CHEST PAIN LUNG_CANCER \n",
|
624 |
+
"0 2 2 1 \n",
|
625 |
+
"1 1 2 1 \n",
|
626 |
+
"2 1 2 0 \n",
|
627 |
+
"3 2 2 0 \n",
|
628 |
+
"4 1 1 0 \n",
|
629 |
+
".. ... ... ... \n",
|
630 |
+
"304 2 1 1 \n",
|
631 |
+
"305 2 2 1 \n",
|
632 |
+
"306 2 2 1 \n",
|
633 |
+
"307 2 2 1 \n",
|
634 |
+
"308 2 1 1 \n",
|
635 |
+
"\n",
|
636 |
+
"[309 rows x 9 columns]"
|
637 |
+
],
|
638 |
+
"text/html": [
|
639 |
+
"\n",
|
640 |
+
" <div id=\"df-de1a2e77-d1ce-4564-8b7b-98d5e22312ac\" class=\"colab-df-container\">\n",
|
641 |
+
" <div>\n",
|
642 |
+
"<style scoped>\n",
|
643 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
644 |
+
" vertical-align: middle;\n",
|
645 |
+
" }\n",
|
646 |
+
"\n",
|
647 |
+
" .dataframe tbody tr th {\n",
|
648 |
+
" vertical-align: top;\n",
|
649 |
+
" }\n",
|
650 |
+
"\n",
|
651 |
+
" .dataframe thead th {\n",
|
652 |
+
" text-align: right;\n",
|
653 |
+
" }\n",
|
654 |
+
"</style>\n",
|
655 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
656 |
+
" <thead>\n",
|
657 |
+
" <tr style=\"text-align: right;\">\n",
|
658 |
+
" <th></th>\n",
|
659 |
+
" <th>GENDER</th>\n",
|
660 |
+
" <th>AGE</th>\n",
|
661 |
+
" <th>SMOKING</th>\n",
|
662 |
+
" <th>PEER_PRESSURE</th>\n",
|
663 |
+
" <th>ALLERGY</th>\n",
|
664 |
+
" <th>WHEEZING</th>\n",
|
665 |
+
" <th>ALCOHOL CONSUMING</th>\n",
|
666 |
+
" <th>CHEST PAIN</th>\n",
|
667 |
+
" <th>LUNG_CANCER</th>\n",
|
668 |
+
" </tr>\n",
|
669 |
+
" </thead>\n",
|
670 |
+
" <tbody>\n",
|
671 |
+
" <tr>\n",
|
672 |
+
" <th>0</th>\n",
|
673 |
+
" <td>1</td>\n",
|
674 |
+
" <td>69</td>\n",
|
675 |
+
" <td>1</td>\n",
|
676 |
+
" <td>1</td>\n",
|
677 |
+
" <td>1</td>\n",
|
678 |
+
" <td>2</td>\n",
|
679 |
+
" <td>2</td>\n",
|
680 |
+
" <td>2</td>\n",
|
681 |
+
" <td>1</td>\n",
|
682 |
+
" </tr>\n",
|
683 |
+
" <tr>\n",
|
684 |
+
" <th>1</th>\n",
|
685 |
+
" <td>1</td>\n",
|
686 |
+
" <td>74</td>\n",
|
687 |
+
" <td>2</td>\n",
|
688 |
+
" <td>1</td>\n",
|
689 |
+
" <td>2</td>\n",
|
690 |
+
" <td>1</td>\n",
|
691 |
+
" <td>1</td>\n",
|
692 |
+
" <td>2</td>\n",
|
693 |
+
" <td>1</td>\n",
|
694 |
+
" </tr>\n",
|
695 |
+
" <tr>\n",
|
696 |
+
" <th>2</th>\n",
|
697 |
+
" <td>0</td>\n",
|
698 |
+
" <td>59</td>\n",
|
699 |
+
" <td>1</td>\n",
|
700 |
+
" <td>2</td>\n",
|
701 |
+
" <td>1</td>\n",
|
702 |
+
" <td>2</td>\n",
|
703 |
+
" <td>1</td>\n",
|
704 |
+
" <td>2</td>\n",
|
705 |
+
" <td>0</td>\n",
|
706 |
+
" </tr>\n",
|
707 |
+
" <tr>\n",
|
708 |
+
" <th>3</th>\n",
|
709 |
+
" <td>1</td>\n",
|
710 |
+
" <td>63</td>\n",
|
711 |
+
" <td>2</td>\n",
|
712 |
+
" <td>1</td>\n",
|
713 |
+
" <td>1</td>\n",
|
714 |
+
" <td>1</td>\n",
|
715 |
+
" <td>2</td>\n",
|
716 |
+
" <td>2</td>\n",
|
717 |
+
" <td>0</td>\n",
|
718 |
+
" </tr>\n",
|
719 |
+
" <tr>\n",
|
720 |
+
" <th>4</th>\n",
|
721 |
+
" <td>0</td>\n",
|
722 |
+
" <td>63</td>\n",
|
723 |
+
" <td>1</td>\n",
|
724 |
+
" <td>1</td>\n",
|
725 |
+
" <td>1</td>\n",
|
726 |
+
" <td>2</td>\n",
|
727 |
+
" <td>1</td>\n",
|
728 |
+
" <td>1</td>\n",
|
729 |
+
" <td>0</td>\n",
|
730 |
+
" </tr>\n",
|
731 |
+
" <tr>\n",
|
732 |
+
" <th>...</th>\n",
|
733 |
+
" <td>...</td>\n",
|
734 |
+
" <td>...</td>\n",
|
735 |
+
" <td>...</td>\n",
|
736 |
+
" <td>...</td>\n",
|
737 |
+
" <td>...</td>\n",
|
738 |
+
" <td>...</td>\n",
|
739 |
+
" <td>...</td>\n",
|
740 |
+
" <td>...</td>\n",
|
741 |
+
" <td>...</td>\n",
|
742 |
+
" </tr>\n",
|
743 |
+
" <tr>\n",
|
744 |
+
" <th>304</th>\n",
|
745 |
+
" <td>0</td>\n",
|
746 |
+
" <td>56</td>\n",
|
747 |
+
" <td>1</td>\n",
|
748 |
+
" <td>2</td>\n",
|
749 |
+
" <td>1</td>\n",
|
750 |
+
" <td>1</td>\n",
|
751 |
+
" <td>2</td>\n",
|
752 |
+
" <td>1</td>\n",
|
753 |
+
" <td>1</td>\n",
|
754 |
+
" </tr>\n",
|
755 |
+
" <tr>\n",
|
756 |
+
" <th>305</th>\n",
|
757 |
+
" <td>1</td>\n",
|
758 |
+
" <td>70</td>\n",
|
759 |
+
" <td>2</td>\n",
|
760 |
+
" <td>1</td>\n",
|
761 |
+
" <td>2</td>\n",
|
762 |
+
" <td>2</td>\n",
|
763 |
+
" <td>2</td>\n",
|
764 |
+
" <td>2</td>\n",
|
765 |
+
" <td>1</td>\n",
|
766 |
+
" </tr>\n",
|
767 |
+
" <tr>\n",
|
768 |
+
" <th>306</th>\n",
|
769 |
+
" <td>1</td>\n",
|
770 |
+
" <td>58</td>\n",
|
771 |
+
" <td>2</td>\n",
|
772 |
+
" <td>1</td>\n",
|
773 |
+
" <td>2</td>\n",
|
774 |
+
" <td>2</td>\n",
|
775 |
+
" <td>2</td>\n",
|
776 |
+
" <td>2</td>\n",
|
777 |
+
" <td>1</td>\n",
|
778 |
+
" </tr>\n",
|
779 |
+
" <tr>\n",
|
780 |
+
" <th>307</th>\n",
|
781 |
+
" <td>1</td>\n",
|
782 |
+
" <td>67</td>\n",
|
783 |
+
" <td>2</td>\n",
|
784 |
+
" <td>1</td>\n",
|
785 |
+
" <td>2</td>\n",
|
786 |
+
" <td>1</td>\n",
|
787 |
+
" <td>2</td>\n",
|
788 |
+
" <td>2</td>\n",
|
789 |
+
" <td>1</td>\n",
|
790 |
+
" </tr>\n",
|
791 |
+
" <tr>\n",
|
792 |
+
" <th>308</th>\n",
|
793 |
+
" <td>1</td>\n",
|
794 |
+
" <td>62</td>\n",
|
795 |
+
" <td>1</td>\n",
|
796 |
+
" <td>2</td>\n",
|
797 |
+
" <td>2</td>\n",
|
798 |
+
" <td>2</td>\n",
|
799 |
+
" <td>2</td>\n",
|
800 |
+
" <td>1</td>\n",
|
801 |
+
" <td>1</td>\n",
|
802 |
+
" </tr>\n",
|
803 |
+
" </tbody>\n",
|
804 |
+
"</table>\n",
|
805 |
+
"<p>309 rows × 9 columns</p>\n",
|
806 |
+
"</div>\n",
|
807 |
+
" <div class=\"colab-df-buttons\">\n",
|
808 |
+
"\n",
|
809 |
+
" <div class=\"colab-df-container\">\n",
|
810 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-de1a2e77-d1ce-4564-8b7b-98d5e22312ac')\"\n",
|
811 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
812 |
+
" style=\"display:none;\">\n",
|
813 |
+
"\n",
|
814 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
815 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
816 |
+
" </svg>\n",
|
817 |
+
" </button>\n",
|
818 |
+
"\n",
|
819 |
+
" <style>\n",
|
820 |
+
" .colab-df-container {\n",
|
821 |
+
" display:flex;\n",
|
822 |
+
" gap: 12px;\n",
|
823 |
+
" }\n",
|
824 |
+
"\n",
|
825 |
+
" .colab-df-convert {\n",
|
826 |
+
" background-color: #E8F0FE;\n",
|
827 |
+
" border: none;\n",
|
828 |
+
" border-radius: 50%;\n",
|
829 |
+
" cursor: pointer;\n",
|
830 |
+
" display: none;\n",
|
831 |
+
" fill: #1967D2;\n",
|
832 |
+
" height: 32px;\n",
|
833 |
+
" padding: 0 0 0 0;\n",
|
834 |
+
" width: 32px;\n",
|
835 |
+
" }\n",
|
836 |
+
"\n",
|
837 |
+
" .colab-df-convert:hover {\n",
|
838 |
+
" background-color: #E2EBFA;\n",
|
839 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
840 |
+
" fill: #174EA6;\n",
|
841 |
+
" }\n",
|
842 |
+
"\n",
|
843 |
+
" .colab-df-buttons div {\n",
|
844 |
+
" margin-bottom: 4px;\n",
|
845 |
+
" }\n",
|
846 |
+
"\n",
|
847 |
+
" [theme=dark] .colab-df-convert {\n",
|
848 |
+
" background-color: #3B4455;\n",
|
849 |
+
" fill: #D2E3FC;\n",
|
850 |
+
" }\n",
|
851 |
+
"\n",
|
852 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
853 |
+
" background-color: #434B5C;\n",
|
854 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
855 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
856 |
+
" fill: #FFFFFF;\n",
|
857 |
+
" }\n",
|
858 |
+
" </style>\n",
|
859 |
+
"\n",
|
860 |
+
" <script>\n",
|
861 |
+
" const buttonEl =\n",
|
862 |
+
" document.querySelector('#df-de1a2e77-d1ce-4564-8b7b-98d5e22312ac button.colab-df-convert');\n",
|
863 |
+
" buttonEl.style.display =\n",
|
864 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
865 |
+
"\n",
|
866 |
+
" async function convertToInteractive(key) {\n",
|
867 |
+
" const element = document.querySelector('#df-de1a2e77-d1ce-4564-8b7b-98d5e22312ac');\n",
|
868 |
+
" const dataTable =\n",
|
869 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
870 |
+
" [key], {});\n",
|
871 |
+
" if (!dataTable) return;\n",
|
872 |
+
"\n",
|
873 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
874 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
875 |
+
" + ' to learn more about interactive tables.';\n",
|
876 |
+
" element.innerHTML = '';\n",
|
877 |
+
" dataTable['output_type'] = 'display_data';\n",
|
878 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
879 |
+
" const docLink = document.createElement('div');\n",
|
880 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
881 |
+
" element.appendChild(docLink);\n",
|
882 |
+
" }\n",
|
883 |
+
" </script>\n",
|
884 |
+
" </div>\n",
|
885 |
+
"\n",
|
886 |
+
"\n",
|
887 |
+
"<div id=\"df-0f70520e-99cd-4a18-8410-43a98cb7cf2b\">\n",
|
888 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-0f70520e-99cd-4a18-8410-43a98cb7cf2b')\"\n",
|
889 |
+
" title=\"Suggest charts\"\n",
|
890 |
+
" style=\"display:none;\">\n",
|
891 |
+
"\n",
|
892 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
893 |
+
" width=\"24px\">\n",
|
894 |
+
" <g>\n",
|
895 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
896 |
+
" </g>\n",
|
897 |
+
"</svg>\n",
|
898 |
+
" </button>\n",
|
899 |
+
"\n",
|
900 |
+
"<style>\n",
|
901 |
+
" .colab-df-quickchart {\n",
|
902 |
+
" --bg-color: #E8F0FE;\n",
|
903 |
+
" --fill-color: #1967D2;\n",
|
904 |
+
" --hover-bg-color: #E2EBFA;\n",
|
905 |
+
" --hover-fill-color: #174EA6;\n",
|
906 |
+
" --disabled-fill-color: #AAA;\n",
|
907 |
+
" --disabled-bg-color: #DDD;\n",
|
908 |
+
" }\n",
|
909 |
+
"\n",
|
910 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
911 |
+
" --bg-color: #3B4455;\n",
|
912 |
+
" --fill-color: #D2E3FC;\n",
|
913 |
+
" --hover-bg-color: #434B5C;\n",
|
914 |
+
" --hover-fill-color: #FFFFFF;\n",
|
915 |
+
" --disabled-bg-color: #3B4455;\n",
|
916 |
+
" --disabled-fill-color: #666;\n",
|
917 |
+
" }\n",
|
918 |
+
"\n",
|
919 |
+
" .colab-df-quickchart {\n",
|
920 |
+
" background-color: var(--bg-color);\n",
|
921 |
+
" border: none;\n",
|
922 |
+
" border-radius: 50%;\n",
|
923 |
+
" cursor: pointer;\n",
|
924 |
+
" display: none;\n",
|
925 |
+
" fill: var(--fill-color);\n",
|
926 |
+
" height: 32px;\n",
|
927 |
+
" padding: 0;\n",
|
928 |
+
" width: 32px;\n",
|
929 |
+
" }\n",
|
930 |
+
"\n",
|
931 |
+
" .colab-df-quickchart:hover {\n",
|
932 |
+
" background-color: var(--hover-bg-color);\n",
|
933 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
934 |
+
" fill: var(--button-hover-fill-color);\n",
|
935 |
+
" }\n",
|
936 |
+
"\n",
|
937 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
938 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
939 |
+
" background-color: var(--disabled-bg-color);\n",
|
940 |
+
" fill: var(--disabled-fill-color);\n",
|
941 |
+
" box-shadow: none;\n",
|
942 |
+
" }\n",
|
943 |
+
"\n",
|
944 |
+
" .colab-df-spinner {\n",
|
945 |
+
" border: 2px solid var(--fill-color);\n",
|
946 |
+
" border-color: transparent;\n",
|
947 |
+
" border-bottom-color: var(--fill-color);\n",
|
948 |
+
" animation:\n",
|
949 |
+
" spin 1s steps(1) infinite;\n",
|
950 |
+
" }\n",
|
951 |
+
"\n",
|
952 |
+
" @keyframes spin {\n",
|
953 |
+
" 0% {\n",
|
954 |
+
" border-color: transparent;\n",
|
955 |
+
" border-bottom-color: var(--fill-color);\n",
|
956 |
+
" border-left-color: var(--fill-color);\n",
|
957 |
+
" }\n",
|
958 |
+
" 20% {\n",
|
959 |
+
" border-color: transparent;\n",
|
960 |
+
" border-left-color: var(--fill-color);\n",
|
961 |
+
" border-top-color: var(--fill-color);\n",
|
962 |
+
" }\n",
|
963 |
+
" 30% {\n",
|
964 |
+
" border-color: transparent;\n",
|
965 |
+
" border-left-color: var(--fill-color);\n",
|
966 |
+
" border-top-color: var(--fill-color);\n",
|
967 |
+
" border-right-color: var(--fill-color);\n",
|
968 |
+
" }\n",
|
969 |
+
" 40% {\n",
|
970 |
+
" border-color: transparent;\n",
|
971 |
+
" border-right-color: var(--fill-color);\n",
|
972 |
+
" border-top-color: var(--fill-color);\n",
|
973 |
+
" }\n",
|
974 |
+
" 60% {\n",
|
975 |
+
" border-color: transparent;\n",
|
976 |
+
" border-right-color: var(--fill-color);\n",
|
977 |
+
" }\n",
|
978 |
+
" 80% {\n",
|
979 |
+
" border-color: transparent;\n",
|
980 |
+
" border-right-color: var(--fill-color);\n",
|
981 |
+
" border-bottom-color: var(--fill-color);\n",
|
982 |
+
" }\n",
|
983 |
+
" 90% {\n",
|
984 |
+
" border-color: transparent;\n",
|
985 |
+
" border-bottom-color: var(--fill-color);\n",
|
986 |
+
" }\n",
|
987 |
+
" }\n",
|
988 |
+
"</style>\n",
|
989 |
+
"\n",
|
990 |
+
" <script>\n",
|
991 |
+
" async function quickchart(key) {\n",
|
992 |
+
" const quickchartButtonEl =\n",
|
993 |
+
" document.querySelector('#' + key + ' button');\n",
|
994 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
995 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
996 |
+
" try {\n",
|
997 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
998 |
+
" 'suggestCharts', [key], {});\n",
|
999 |
+
" } catch (error) {\n",
|
1000 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
1001 |
+
" }\n",
|
1002 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
1003 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
1004 |
+
" }\n",
|
1005 |
+
" (() => {\n",
|
1006 |
+
" let quickchartButtonEl =\n",
|
1007 |
+
" document.querySelector('#df-0f70520e-99cd-4a18-8410-43a98cb7cf2b button');\n",
|
1008 |
+
" quickchartButtonEl.style.display =\n",
|
1009 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
1010 |
+
" })();\n",
|
1011 |
+
" </script>\n",
|
1012 |
+
"</div>\n",
|
1013 |
+
"\n",
|
1014 |
+
" <div id=\"id_9e259226-465f-43ac-b005-5fdc3592dd82\">\n",
|
1015 |
+
" <style>\n",
|
1016 |
+
" .colab-df-generate {\n",
|
1017 |
+
" background-color: #E8F0FE;\n",
|
1018 |
+
" border: none;\n",
|
1019 |
+
" border-radius: 50%;\n",
|
1020 |
+
" cursor: pointer;\n",
|
1021 |
+
" display: none;\n",
|
1022 |
+
" fill: #1967D2;\n",
|
1023 |
+
" height: 32px;\n",
|
1024 |
+
" padding: 0 0 0 0;\n",
|
1025 |
+
" width: 32px;\n",
|
1026 |
+
" }\n",
|
1027 |
+
"\n",
|
1028 |
+
" .colab-df-generate:hover {\n",
|
1029 |
+
" background-color: #E2EBFA;\n",
|
1030 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
1031 |
+
" fill: #174EA6;\n",
|
1032 |
+
" }\n",
|
1033 |
+
"\n",
|
1034 |
+
" [theme=dark] .colab-df-generate {\n",
|
1035 |
+
" background-color: #3B4455;\n",
|
1036 |
+
" fill: #D2E3FC;\n",
|
1037 |
+
" }\n",
|
1038 |
+
"\n",
|
1039 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
1040 |
+
" background-color: #434B5C;\n",
|
1041 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
1042 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
1043 |
+
" fill: #FFFFFF;\n",
|
1044 |
+
" }\n",
|
1045 |
+
" </style>\n",
|
1046 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
1047 |
+
" title=\"Generate code using this dataframe.\"\n",
|
1048 |
+
" style=\"display:none;\">\n",
|
1049 |
+
"\n",
|
1050 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
1051 |
+
" width=\"24px\">\n",
|
1052 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
1053 |
+
" </svg>\n",
|
1054 |
+
" </button>\n",
|
1055 |
+
" <script>\n",
|
1056 |
+
" (() => {\n",
|
1057 |
+
" const buttonEl =\n",
|
1058 |
+
" document.querySelector('#id_9e259226-465f-43ac-b005-5fdc3592dd82 button.colab-df-generate');\n",
|
1059 |
+
" buttonEl.style.display =\n",
|
1060 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
1061 |
+
"\n",
|
1062 |
+
" buttonEl.onclick = () => {\n",
|
1063 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
1064 |
+
" }\n",
|
1065 |
+
" })();\n",
|
1066 |
+
" </script>\n",
|
1067 |
+
" </div>\n",
|
1068 |
+
"\n",
|
1069 |
+
" </div>\n",
|
1070 |
+
" </div>\n"
|
1071 |
+
],
|
1072 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
1073 |
+
"type": "dataframe",
|
1074 |
+
"variable_name": "df",
|
1075 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 309,\n \"fields\": [\n {\n \"column\": \"GENDER\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"AGE\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 8,\n \"min\": 21,\n \"max\": 87,\n \"num_unique_values\": 39,\n \"samples\": [\n 81,\n 39\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"SMOKING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 2,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"PEER_PRESSURE\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 2,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ALLERGY \",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 2,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"WHEEZING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ALCOHOL CONSUMING\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"CHEST PAIN\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 1,\n \"max\": 2,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 2\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"LUNG_CANCER\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
1076 |
+
}
|
1077 |
+
},
|
1078 |
+
"metadata": {},
|
1079 |
+
"execution_count": 13
|
1080 |
+
}
|
1081 |
+
]
|
1082 |
+
},
|
1083 |
+
{
|
1084 |
+
"cell_type": "code",
|
1085 |
+
"source": [
|
1086 |
+
"x_data = df.drop(['LUNG_CANCER'], axis = 1)\n",
|
1087 |
+
"y = df.LUNG_CANCER.values"
|
1088 |
+
],
|
1089 |
+
"metadata": {
|
1090 |
+
"id": "vA58b9OtWIDv"
|
1091 |
+
},
|
1092 |
+
"execution_count": 15,
|
1093 |
+
"outputs": []
|
1094 |
+
},
|
1095 |
+
{
|
1096 |
+
"cell_type": "code",
|
1097 |
+
"source": [
|
1098 |
+
"x_train, x_test, y_train, y_test = train_test_split(x_data, y, test_size = 0.2, random_state= 0)"
|
1099 |
+
],
|
1100 |
+
"metadata": {
|
1101 |
+
"id": "vK1Fycc-WqRj"
|
1102 |
+
},
|
1103 |
+
"execution_count": 16,
|
1104 |
+
"outputs": []
|
1105 |
+
},
|
1106 |
+
{
|
1107 |
+
"cell_type": "code",
|
1108 |
+
"source": [
|
1109 |
+
"from sklearn.naive_bayes import GaussianNB\n",
|
1110 |
+
"nb = GaussianNB()\n",
|
1111 |
+
"nb.fit(x_train, y_train)\n",
|
1112 |
+
"print(\"NB accuracy: {:.2f}%\".format(nb.score(x_test, y_test)*100))"
|
1113 |
+
],
|
1114 |
+
"metadata": {
|
1115 |
+
"colab": {
|
1116 |
+
"base_uri": "https://localhost:8080/"
|
1117 |
+
},
|
1118 |
+
"id": "TB8qV9OnkH_5",
|
1119 |
+
"outputId": "9575529d-68e5-41d6-da78-9bb95dcf0865"
|
1120 |
+
},
|
1121 |
+
"execution_count": 17,
|
1122 |
+
"outputs": [
|
1123 |
+
{
|
1124 |
+
"output_type": "stream",
|
1125 |
+
"name": "stdout",
|
1126 |
+
"text": [
|
1127 |
+
"NB accuracy: 85.48%\n"
|
1128 |
+
]
|
1129 |
+
}
|
1130 |
+
]
|
1131 |
+
},
|
1132 |
+
{
|
1133 |
+
"cell_type": "code",
|
1134 |
+
"source": [
|
1135 |
+
"y_pred=nb.predict(x_test)"
|
1136 |
+
],
|
1137 |
+
"metadata": {
|
1138 |
+
"id": "M66dC8FOXNEt"
|
1139 |
+
},
|
1140 |
+
"execution_count": 18,
|
1141 |
+
"outputs": []
|
1142 |
+
},
|
1143 |
+
{
|
1144 |
+
"cell_type": "code",
|
1145 |
+
"source": [
|
1146 |
+
"from sklearn.metrics import classification_report\n",
|
1147 |
+
"print(classification_report(y_pred,y_test))"
|
1148 |
+
],
|
1149 |
+
"metadata": {
|
1150 |
+
"colab": {
|
1151 |
+
"base_uri": "https://localhost:8080/"
|
1152 |
+
},
|
1153 |
+
"id": "L06DnXKhXPzS",
|
1154 |
+
"outputId": "cd79637c-876e-4d65-c515-f58c8b145481"
|
1155 |
+
},
|
1156 |
+
"execution_count": 19,
|
1157 |
+
"outputs": [
|
1158 |
+
{
|
1159 |
+
"output_type": "stream",
|
1160 |
+
"name": "stdout",
|
1161 |
+
"text": [
|
1162 |
+
" precision recall f1-score support\n",
|
1163 |
+
"\n",
|
1164 |
+
" 0 0.50 0.56 0.53 9\n",
|
1165 |
+
" 1 0.92 0.91 0.91 53\n",
|
1166 |
+
"\n",
|
1167 |
+
" accuracy 0.85 62\n",
|
1168 |
+
" macro avg 0.71 0.73 0.72 62\n",
|
1169 |
+
"weighted avg 0.86 0.85 0.86 62\n",
|
1170 |
+
"\n"
|
1171 |
+
]
|
1172 |
+
}
|
1173 |
+
]
|
1174 |
+
},
|
1175 |
+
{
|
1176 |
+
"cell_type": "code",
|
1177 |
+
"source": [
|
1178 |
+
"import pickle\n",
|
1179 |
+
"\n",
|
1180 |
+
"with open('nvd.pkl','wb') as f:\n",
|
1181 |
+
" pickle.dump(nb,f)\n",
|
1182 |
+
"\n",
|
1183 |
+
"# load\n",
|
1184 |
+
"with open('nvd.pkl', 'rb') as f:\n",
|
1185 |
+
" nb = pickle.load(f)"
|
1186 |
+
],
|
1187 |
+
"metadata": {
|
1188 |
+
"id": "4IrkPQCLXhYw"
|
1189 |
+
},
|
1190 |
+
"execution_count": 21,
|
1191 |
+
"outputs": []
|
1192 |
+
},
|
1193 |
+
{
|
1194 |
+
"cell_type": "code",
|
1195 |
+
"source": [],
|
1196 |
+
"metadata": {
|
1197 |
+
"id": "50LcOxfPkm4H"
|
1198 |
+
},
|
1199 |
+
"execution_count": null,
|
1200 |
+
"output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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Pregnancies,Glucose,BloodPressure,SkinThickness,Insulin,BMI,DiabetesPedigreeFunction,Age,Outcome
|
2 |
+
6,148,72,35,0,33.6,0.627,50,1
|
3 |
+
1,85,66,29,0,26.6,0.351,31,0
|
4 |
+
8,183,64,0,0,23.3,0.672,32,1
|
5 |
+
1,89,66,23,94,28.1,0.167,21,0
|
6 |
+
0,137,40,35,168,43.1,2.288,33,1
|
7 |
+
5,116,74,0,0,25.6,0.201,30,0
|
8 |
+
3,78,50,32,88,31,0.248,26,1
|
9 |
+
10,115,0,0,0,35.3,0.134,29,0
|
10 |
+
2,197,70,45,543,30.5,0.158,53,1
|
11 |
+
8,125,96,0,0,0,0.232,54,1
|
12 |
+
4,110,92,0,0,37.6,0.191,30,0
|
13 |
+
10,168,74,0,0,38,0.537,34,1
|
14 |
+
10,139,80,0,0,27.1,1.441,57,0
|
15 |
+
1,189,60,23,846,30.1,0.398,59,1
|
16 |
+
5,166,72,19,175,25.8,0.587,51,1
|
17 |
+
7,100,0,0,0,30,0.484,32,1
|
18 |
+
0,118,84,47,230,45.8,0.551,31,1
|
19 |
+
7,107,74,0,0,29.6,0.254,31,1
|
20 |
+
1,103,30,38,83,43.3,0.183,33,0
|
21 |
+
1,115,70,30,96,34.6,0.529,32,1
|
22 |
+
3,126,88,41,235,39.3,0.704,27,0
|
23 |
+
8,99,84,0,0,35.4,0.388,50,0
|
24 |
+
7,196,90,0,0,39.8,0.451,41,1
|
25 |
+
9,119,80,35,0,29,0.263,29,1
|
26 |
+
11,143,94,33,146,36.6,0.254,51,1
|
27 |
+
10,125,70,26,115,31.1,0.205,41,1
|
28 |
+
7,147,76,0,0,39.4,0.257,43,1
|
29 |
+
1,97,66,15,140,23.2,0.487,22,0
|
30 |
+
13,145,82,19,110,22.2,0.245,57,0
|
31 |
+
5,117,92,0,0,34.1,0.337,38,0
|
32 |
+
5,109,75,26,0,36,0.546,60,0
|
33 |
+
3,158,76,36,245,31.6,0.851,28,1
|
34 |
+
3,88,58,11,54,24.8,0.267,22,0
|
35 |
+
6,92,92,0,0,19.9,0.188,28,0
|
36 |
+
10,122,78,31,0,27.6,0.512,45,0
|
37 |
+
4,103,60,33,192,24,0.966,33,0
|
38 |
+
11,138,76,0,0,33.2,0.42,35,0
|
39 |
+
9,102,76,37,0,32.9,0.665,46,1
|
40 |
+
2,90,68,42,0,38.2,0.503,27,1
|
41 |
+
4,111,72,47,207,37.1,1.39,56,1
|
42 |
+
3,180,64,25,70,34,0.271,26,0
|
43 |
+
7,133,84,0,0,40.2,0.696,37,0
|
44 |
+
7,106,92,18,0,22.7,0.235,48,0
|
45 |
+
9,171,110,24,240,45.4,0.721,54,1
|
46 |
+
7,159,64,0,0,27.4,0.294,40,0
|
47 |
+
0,180,66,39,0,42,1.893,25,1
|
48 |
+
1,146,56,0,0,29.7,0.564,29,0
|
49 |
+
2,71,70,27,0,28,0.586,22,0
|
50 |
+
7,103,66,32,0,39.1,0.344,31,1
|
51 |
+
7,105,0,0,0,0,0.305,24,0
|
52 |
+
1,103,80,11,82,19.4,0.491,22,0
|
53 |
+
1,101,50,15,36,24.2,0.526,26,0
|
54 |
+
5,88,66,21,23,24.4,0.342,30,0
|
55 |
+
8,176,90,34,300,33.7,0.467,58,1
|
56 |
+
7,150,66,42,342,34.7,0.718,42,0
|
57 |
+
1,73,50,10,0,23,0.248,21,0
|
58 |
+
7,187,68,39,304,37.7,0.254,41,1
|
59 |
+
0,100,88,60,110,46.8,0.962,31,0
|
60 |
+
0,146,82,0,0,40.5,1.781,44,0
|
61 |
+
0,105,64,41,142,41.5,0.173,22,0
|
62 |
+
2,84,0,0,0,0,0.304,21,0
|
63 |
+
8,133,72,0,0,32.9,0.27,39,1
|
64 |
+
5,44,62,0,0,25,0.587,36,0
|
65 |
+
2,141,58,34,128,25.4,0.699,24,0
|
66 |
+
7,114,66,0,0,32.8,0.258,42,1
|
67 |
+
5,99,74,27,0,29,0.203,32,0
|
68 |
+
0,109,88,30,0,32.5,0.855,38,1
|
69 |
+
2,109,92,0,0,42.7,0.845,54,0
|
70 |
+
1,95,66,13,38,19.6,0.334,25,0
|
71 |
+
4,146,85,27,100,28.9,0.189,27,0
|
72 |
+
2,100,66,20,90,32.9,0.867,28,1
|
73 |
+
5,139,64,35,140,28.6,0.411,26,0
|
74 |
+
13,126,90,0,0,43.4,0.583,42,1
|
75 |
+
4,129,86,20,270,35.1,0.231,23,0
|
76 |
+
1,79,75,30,0,32,0.396,22,0
|
77 |
+
1,0,48,20,0,24.7,0.14,22,0
|
78 |
+
7,62,78,0,0,32.6,0.391,41,0
|
79 |
+
5,95,72,33,0,37.7,0.37,27,0
|
80 |
+
0,131,0,0,0,43.2,0.27,26,1
|
81 |
+
2,112,66,22,0,25,0.307,24,0
|
82 |
+
3,113,44,13,0,22.4,0.14,22,0
|
83 |
+
2,74,0,0,0,0,0.102,22,0
|
84 |
+
7,83,78,26,71,29.3,0.767,36,0
|
85 |
+
0,101,65,28,0,24.6,0.237,22,0
|
86 |
+
5,137,108,0,0,48.8,0.227,37,1
|
87 |
+
2,110,74,29,125,32.4,0.698,27,0
|
88 |
+
13,106,72,54,0,36.6,0.178,45,0
|
89 |
+
2,100,68,25,71,38.5,0.324,26,0
|
90 |
+
15,136,70,32,110,37.1,0.153,43,1
|
91 |
+
1,107,68,19,0,26.5,0.165,24,0
|
92 |
+
1,80,55,0,0,19.1,0.258,21,0
|
93 |
+
4,123,80,15,176,32,0.443,34,0
|
94 |
+
7,81,78,40,48,46.7,0.261,42,0
|
95 |
+
4,134,72,0,0,23.8,0.277,60,1
|
96 |
+
2,142,82,18,64,24.7,0.761,21,0
|
97 |
+
6,144,72,27,228,33.9,0.255,40,0
|
98 |
+
2,92,62,28,0,31.6,0.13,24,0
|
99 |
+
1,71,48,18,76,20.4,0.323,22,0
|
100 |
+
6,93,50,30,64,28.7,0.356,23,0
|
101 |
+
1,122,90,51,220,49.7,0.325,31,1
|
102 |
+
1,163,72,0,0,39,1.222,33,1
|
103 |
+
1,151,60,0,0,26.1,0.179,22,0
|
104 |
+
0,125,96,0,0,22.5,0.262,21,0
|
105 |
+
1,81,72,18,40,26.6,0.283,24,0
|
106 |
+
2,85,65,0,0,39.6,0.93,27,0
|
107 |
+
1,126,56,29,152,28.7,0.801,21,0
|
108 |
+
1,96,122,0,0,22.4,0.207,27,0
|
109 |
+
4,144,58,28,140,29.5,0.287,37,0
|
110 |
+
3,83,58,31,18,34.3,0.336,25,0
|
111 |
+
0,95,85,25,36,37.4,0.247,24,1
|
112 |
+
3,171,72,33,135,33.3,0.199,24,1
|
113 |
+
8,155,62,26,495,34,0.543,46,1
|
114 |
+
1,89,76,34,37,31.2,0.192,23,0
|
115 |
+
4,76,62,0,0,34,0.391,25,0
|
116 |
+
7,160,54,32,175,30.5,0.588,39,1
|
117 |
+
4,146,92,0,0,31.2,0.539,61,1
|
118 |
+
5,124,74,0,0,34,0.22,38,1
|
119 |
+
5,78,48,0,0,33.7,0.654,25,0
|
120 |
+
4,97,60,23,0,28.2,0.443,22,0
|
121 |
+
4,99,76,15,51,23.2,0.223,21,0
|
122 |
+
0,162,76,56,100,53.2,0.759,25,1
|
123 |
+
6,111,64,39,0,34.2,0.26,24,0
|
124 |
+
2,107,74,30,100,33.6,0.404,23,0
|
125 |
+
5,132,80,0,0,26.8,0.186,69,0
|
126 |
+
0,113,76,0,0,33.3,0.278,23,1
|
127 |
+
1,88,30,42,99,55,0.496,26,1
|
128 |
+
3,120,70,30,135,42.9,0.452,30,0
|
129 |
+
1,118,58,36,94,33.3,0.261,23,0
|
130 |
+
1,117,88,24,145,34.5,0.403,40,1
|
131 |
+
0,105,84,0,0,27.9,0.741,62,1
|
132 |
+
4,173,70,14,168,29.7,0.361,33,1
|
133 |
+
9,122,56,0,0,33.3,1.114,33,1
|
134 |
+
3,170,64,37,225,34.5,0.356,30,1
|
135 |
+
8,84,74,31,0,38.3,0.457,39,0
|
136 |
+
2,96,68,13,49,21.1,0.647,26,0
|
137 |
+
2,125,60,20,140,33.8,0.088,31,0
|
138 |
+
0,100,70,26,50,30.8,0.597,21,0
|
139 |
+
0,93,60,25,92,28.7,0.532,22,0
|
140 |
+
0,129,80,0,0,31.2,0.703,29,0
|
141 |
+
5,105,72,29,325,36.9,0.159,28,0
|
142 |
+
3,128,78,0,0,21.1,0.268,55,0
|
143 |
+
5,106,82,30,0,39.5,0.286,38,0
|
144 |
+
2,108,52,26,63,32.5,0.318,22,0
|
145 |
+
10,108,66,0,0,32.4,0.272,42,1
|
146 |
+
4,154,62,31,284,32.8,0.237,23,0
|
147 |
+
0,102,75,23,0,0,0.572,21,0
|
148 |
+
9,57,80,37,0,32.8,0.096,41,0
|
149 |
+
2,106,64,35,119,30.5,1.4,34,0
|
150 |
+
5,147,78,0,0,33.7,0.218,65,0
|
151 |
+
2,90,70,17,0,27.3,0.085,22,0
|
152 |
+
1,136,74,50,204,37.4,0.399,24,0
|
153 |
+
4,114,65,0,0,21.9,0.432,37,0
|
154 |
+
9,156,86,28,155,34.3,1.189,42,1
|
155 |
+
1,153,82,42,485,40.6,0.687,23,0
|
156 |
+
8,188,78,0,0,47.9,0.137,43,1
|
157 |
+
7,152,88,44,0,50,0.337,36,1
|
158 |
+
2,99,52,15,94,24.6,0.637,21,0
|
159 |
+
1,109,56,21,135,25.2,0.833,23,0
|
160 |
+
2,88,74,19,53,29,0.229,22,0
|
161 |
+
17,163,72,41,114,40.9,0.817,47,1
|
162 |
+
4,151,90,38,0,29.7,0.294,36,0
|
163 |
+
7,102,74,40,105,37.2,0.204,45,0
|
164 |
+
0,114,80,34,285,44.2,0.167,27,0
|
165 |
+
2,100,64,23,0,29.7,0.368,21,0
|
166 |
+
0,131,88,0,0,31.6,0.743,32,1
|
167 |
+
6,104,74,18,156,29.9,0.722,41,1
|
168 |
+
3,148,66,25,0,32.5,0.256,22,0
|
169 |
+
4,120,68,0,0,29.6,0.709,34,0
|
170 |
+
4,110,66,0,0,31.9,0.471,29,0
|
171 |
+
3,111,90,12,78,28.4,0.495,29,0
|
172 |
+
6,102,82,0,0,30.8,0.18,36,1
|
173 |
+
6,134,70,23,130,35.4,0.542,29,1
|
174 |
+
2,87,0,23,0,28.9,0.773,25,0
|
175 |
+
1,79,60,42,48,43.5,0.678,23,0
|
176 |
+
2,75,64,24,55,29.7,0.37,33,0
|
177 |
+
8,179,72,42,130,32.7,0.719,36,1
|
178 |
+
6,85,78,0,0,31.2,0.382,42,0
|
179 |
+
0,129,110,46,130,67.1,0.319,26,1
|
180 |
+
5,143,78,0,0,45,0.19,47,0
|
181 |
+
5,130,82,0,0,39.1,0.956,37,1
|
182 |
+
6,87,80,0,0,23.2,0.084,32,0
|
183 |
+
0,119,64,18,92,34.9,0.725,23,0
|
184 |
+
1,0,74,20,23,27.7,0.299,21,0
|
185 |
+
5,73,60,0,0,26.8,0.268,27,0
|
186 |
+
4,141,74,0,0,27.6,0.244,40,0
|
187 |
+
7,194,68,28,0,35.9,0.745,41,1
|
188 |
+
8,181,68,36,495,30.1,0.615,60,1
|
189 |
+
1,128,98,41,58,32,1.321,33,1
|
190 |
+
8,109,76,39,114,27.9,0.64,31,1
|
191 |
+
5,139,80,35,160,31.6,0.361,25,1
|
192 |
+
3,111,62,0,0,22.6,0.142,21,0
|
193 |
+
9,123,70,44,94,33.1,0.374,40,0
|
194 |
+
7,159,66,0,0,30.4,0.383,36,1
|
195 |
+
11,135,0,0,0,52.3,0.578,40,1
|
196 |
+
8,85,55,20,0,24.4,0.136,42,0
|
197 |
+
5,158,84,41,210,39.4,0.395,29,1
|
198 |
+
1,105,58,0,0,24.3,0.187,21,0
|
199 |
+
3,107,62,13,48,22.9,0.678,23,1
|
200 |
+
4,109,64,44,99,34.8,0.905,26,1
|
201 |
+
4,148,60,27,318,30.9,0.15,29,1
|
202 |
+
0,113,80,16,0,31,0.874,21,0
|
203 |
+
1,138,82,0,0,40.1,0.236,28,0
|
204 |
+
0,108,68,20,0,27.3,0.787,32,0
|
205 |
+
2,99,70,16,44,20.4,0.235,27,0
|
206 |
+
6,103,72,32,190,37.7,0.324,55,0
|
207 |
+
5,111,72,28,0,23.9,0.407,27,0
|
208 |
+
8,196,76,29,280,37.5,0.605,57,1
|
209 |
+
5,162,104,0,0,37.7,0.151,52,1
|
210 |
+
1,96,64,27,87,33.2,0.289,21,0
|
211 |
+
7,184,84,33,0,35.5,0.355,41,1
|
212 |
+
2,81,60,22,0,27.7,0.29,25,0
|
213 |
+
0,147,85,54,0,42.8,0.375,24,0
|
214 |
+
7,179,95,31,0,34.2,0.164,60,0
|
215 |
+
0,140,65,26,130,42.6,0.431,24,1
|
216 |
+
9,112,82,32,175,34.2,0.26,36,1
|
217 |
+
12,151,70,40,271,41.8,0.742,38,1
|
218 |
+
5,109,62,41,129,35.8,0.514,25,1
|
219 |
+
6,125,68,30,120,30,0.464,32,0
|
220 |
+
5,85,74,22,0,29,1.224,32,1
|
221 |
+
5,112,66,0,0,37.8,0.261,41,1
|
222 |
+
0,177,60,29,478,34.6,1.072,21,1
|
223 |
+
2,158,90,0,0,31.6,0.805,66,1
|
224 |
+
7,119,0,0,0,25.2,0.209,37,0
|
225 |
+
7,142,60,33,190,28.8,0.687,61,0
|
226 |
+
1,100,66,15,56,23.6,0.666,26,0
|
227 |
+
1,87,78,27,32,34.6,0.101,22,0
|
228 |
+
0,101,76,0,0,35.7,0.198,26,0
|
229 |
+
3,162,52,38,0,37.2,0.652,24,1
|
230 |
+
4,197,70,39,744,36.7,2.329,31,0
|
231 |
+
0,117,80,31,53,45.2,0.089,24,0
|
232 |
+
4,142,86,0,0,44,0.645,22,1
|
233 |
+
6,134,80,37,370,46.2,0.238,46,1
|
234 |
+
1,79,80,25,37,25.4,0.583,22,0
|
235 |
+
4,122,68,0,0,35,0.394,29,0
|
236 |
+
3,74,68,28,45,29.7,0.293,23,0
|
237 |
+
4,171,72,0,0,43.6,0.479,26,1
|
238 |
+
7,181,84,21,192,35.9,0.586,51,1
|
239 |
+
0,179,90,27,0,44.1,0.686,23,1
|
240 |
+
9,164,84,21,0,30.8,0.831,32,1
|
241 |
+
0,104,76,0,0,18.4,0.582,27,0
|
242 |
+
1,91,64,24,0,29.2,0.192,21,0
|
243 |
+
4,91,70,32,88,33.1,0.446,22,0
|
244 |
+
3,139,54,0,0,25.6,0.402,22,1
|
245 |
+
6,119,50,22,176,27.1,1.318,33,1
|
246 |
+
2,146,76,35,194,38.2,0.329,29,0
|
247 |
+
9,184,85,15,0,30,1.213,49,1
|
248 |
+
10,122,68,0,0,31.2,0.258,41,0
|
249 |
+
0,165,90,33,680,52.3,0.427,23,0
|
250 |
+
9,124,70,33,402,35.4,0.282,34,0
|
251 |
+
1,111,86,19,0,30.1,0.143,23,0
|
252 |
+
9,106,52,0,0,31.2,0.38,42,0
|
253 |
+
2,129,84,0,0,28,0.284,27,0
|
254 |
+
2,90,80,14,55,24.4,0.249,24,0
|
255 |
+
0,86,68,32,0,35.8,0.238,25,0
|
256 |
+
12,92,62,7,258,27.6,0.926,44,1
|
257 |
+
1,113,64,35,0,33.6,0.543,21,1
|
258 |
+
3,111,56,39,0,30.1,0.557,30,0
|
259 |
+
2,114,68,22,0,28.7,0.092,25,0
|
260 |
+
1,193,50,16,375,25.9,0.655,24,0
|
261 |
+
11,155,76,28,150,33.3,1.353,51,1
|
262 |
+
3,191,68,15,130,30.9,0.299,34,0
|
263 |
+
3,141,0,0,0,30,0.761,27,1
|
264 |
+
4,95,70,32,0,32.1,0.612,24,0
|
265 |
+
3,142,80,15,0,32.4,0.2,63,0
|
266 |
+
4,123,62,0,0,32,0.226,35,1
|
267 |
+
5,96,74,18,67,33.6,0.997,43,0
|
268 |
+
0,138,0,0,0,36.3,0.933,25,1
|
269 |
+
2,128,64,42,0,40,1.101,24,0
|
270 |
+
0,102,52,0,0,25.1,0.078,21,0
|
271 |
+
2,146,0,0,0,27.5,0.24,28,1
|
272 |
+
10,101,86,37,0,45.6,1.136,38,1
|
273 |
+
2,108,62,32,56,25.2,0.128,21,0
|
274 |
+
3,122,78,0,0,23,0.254,40,0
|
275 |
+
1,71,78,50,45,33.2,0.422,21,0
|
276 |
+
13,106,70,0,0,34.2,0.251,52,0
|
277 |
+
2,100,70,52,57,40.5,0.677,25,0
|
278 |
+
7,106,60,24,0,26.5,0.296,29,1
|
279 |
+
0,104,64,23,116,27.8,0.454,23,0
|
280 |
+
5,114,74,0,0,24.9,0.744,57,0
|
281 |
+
2,108,62,10,278,25.3,0.881,22,0
|
282 |
+
0,146,70,0,0,37.9,0.334,28,1
|
283 |
+
10,129,76,28,122,35.9,0.28,39,0
|
284 |
+
7,133,88,15,155,32.4,0.262,37,0
|
285 |
+
7,161,86,0,0,30.4,0.165,47,1
|
286 |
+
2,108,80,0,0,27,0.259,52,1
|
287 |
+
7,136,74,26,135,26,0.647,51,0
|
288 |
+
5,155,84,44,545,38.7,0.619,34,0
|
289 |
+
1,119,86,39,220,45.6,0.808,29,1
|
290 |
+
4,96,56,17,49,20.8,0.34,26,0
|
291 |
+
5,108,72,43,75,36.1,0.263,33,0
|
292 |
+
0,78,88,29,40,36.9,0.434,21,0
|
293 |
+
0,107,62,30,74,36.6,0.757,25,1
|
294 |
+
2,128,78,37,182,43.3,1.224,31,1
|
295 |
+
1,128,48,45,194,40.5,0.613,24,1
|
296 |
+
0,161,50,0,0,21.9,0.254,65,0
|
297 |
+
6,151,62,31,120,35.5,0.692,28,0
|
298 |
+
2,146,70,38,360,28,0.337,29,1
|
299 |
+
0,126,84,29,215,30.7,0.52,24,0
|
300 |
+
14,100,78,25,184,36.6,0.412,46,1
|
301 |
+
8,112,72,0,0,23.6,0.84,58,0
|
302 |
+
0,167,0,0,0,32.3,0.839,30,1
|
303 |
+
2,144,58,33,135,31.6,0.422,25,1
|
304 |
+
5,77,82,41,42,35.8,0.156,35,0
|
305 |
+
5,115,98,0,0,52.9,0.209,28,1
|
306 |
+
3,150,76,0,0,21,0.207,37,0
|
307 |
+
2,120,76,37,105,39.7,0.215,29,0
|
308 |
+
10,161,68,23,132,25.5,0.326,47,1
|
309 |
+
0,137,68,14,148,24.8,0.143,21,0
|
310 |
+
0,128,68,19,180,30.5,1.391,25,1
|
311 |
+
2,124,68,28,205,32.9,0.875,30,1
|
312 |
+
6,80,66,30,0,26.2,0.313,41,0
|
313 |
+
0,106,70,37,148,39.4,0.605,22,0
|
314 |
+
2,155,74,17,96,26.6,0.433,27,1
|
315 |
+
3,113,50,10,85,29.5,0.626,25,0
|
316 |
+
7,109,80,31,0,35.9,1.127,43,1
|
317 |
+
2,112,68,22,94,34.1,0.315,26,0
|
318 |
+
3,99,80,11,64,19.3,0.284,30,0
|
319 |
+
3,182,74,0,0,30.5,0.345,29,1
|
320 |
+
3,115,66,39,140,38.1,0.15,28,0
|
321 |
+
6,194,78,0,0,23.5,0.129,59,1
|
322 |
+
4,129,60,12,231,27.5,0.527,31,0
|
323 |
+
3,112,74,30,0,31.6,0.197,25,1
|
324 |
+
0,124,70,20,0,27.4,0.254,36,1
|
325 |
+
13,152,90,33,29,26.8,0.731,43,1
|
326 |
+
2,112,75,32,0,35.7,0.148,21,0
|
327 |
+
1,157,72,21,168,25.6,0.123,24,0
|
328 |
+
1,122,64,32,156,35.1,0.692,30,1
|
329 |
+
10,179,70,0,0,35.1,0.2,37,0
|
330 |
+
2,102,86,36,120,45.5,0.127,23,1
|
331 |
+
6,105,70,32,68,30.8,0.122,37,0
|
332 |
+
8,118,72,19,0,23.1,1.476,46,0
|
333 |
+
2,87,58,16,52,32.7,0.166,25,0
|
334 |
+
1,180,0,0,0,43.3,0.282,41,1
|
335 |
+
12,106,80,0,0,23.6,0.137,44,0
|
336 |
+
1,95,60,18,58,23.9,0.26,22,0
|
337 |
+
0,165,76,43,255,47.9,0.259,26,0
|
338 |
+
0,117,0,0,0,33.8,0.932,44,0
|
339 |
+
5,115,76,0,0,31.2,0.343,44,1
|
340 |
+
9,152,78,34,171,34.2,0.893,33,1
|
341 |
+
7,178,84,0,0,39.9,0.331,41,1
|
342 |
+
1,130,70,13,105,25.9,0.472,22,0
|
343 |
+
1,95,74,21,73,25.9,0.673,36,0
|
344 |
+
1,0,68,35,0,32,0.389,22,0
|
345 |
+
5,122,86,0,0,34.7,0.29,33,0
|
346 |
+
8,95,72,0,0,36.8,0.485,57,0
|
347 |
+
8,126,88,36,108,38.5,0.349,49,0
|
348 |
+
1,139,46,19,83,28.7,0.654,22,0
|
349 |
+
3,116,0,0,0,23.5,0.187,23,0
|
350 |
+
3,99,62,19,74,21.8,0.279,26,0
|
351 |
+
5,0,80,32,0,41,0.346,37,1
|
352 |
+
4,92,80,0,0,42.2,0.237,29,0
|
353 |
+
4,137,84,0,0,31.2,0.252,30,0
|
354 |
+
3,61,82,28,0,34.4,0.243,46,0
|
355 |
+
1,90,62,12,43,27.2,0.58,24,0
|
356 |
+
3,90,78,0,0,42.7,0.559,21,0
|
357 |
+
9,165,88,0,0,30.4,0.302,49,1
|
358 |
+
1,125,50,40,167,33.3,0.962,28,1
|
359 |
+
13,129,0,30,0,39.9,0.569,44,1
|
360 |
+
12,88,74,40,54,35.3,0.378,48,0
|
361 |
+
1,196,76,36,249,36.5,0.875,29,1
|
362 |
+
5,189,64,33,325,31.2,0.583,29,1
|
363 |
+
5,158,70,0,0,29.8,0.207,63,0
|
364 |
+
5,103,108,37,0,39.2,0.305,65,0
|
365 |
+
4,146,78,0,0,38.5,0.52,67,1
|
366 |
+
4,147,74,25,293,34.9,0.385,30,0
|
367 |
+
5,99,54,28,83,34,0.499,30,0
|
368 |
+
6,124,72,0,0,27.6,0.368,29,1
|
369 |
+
0,101,64,17,0,21,0.252,21,0
|
370 |
+
3,81,86,16,66,27.5,0.306,22,0
|
371 |
+
1,133,102,28,140,32.8,0.234,45,1
|
372 |
+
3,173,82,48,465,38.4,2.137,25,1
|
373 |
+
0,118,64,23,89,0,1.731,21,0
|
374 |
+
0,84,64,22,66,35.8,0.545,21,0
|
375 |
+
2,105,58,40,94,34.9,0.225,25,0
|
376 |
+
2,122,52,43,158,36.2,0.816,28,0
|
377 |
+
12,140,82,43,325,39.2,0.528,58,1
|
378 |
+
0,98,82,15,84,25.2,0.299,22,0
|
379 |
+
1,87,60,37,75,37.2,0.509,22,0
|
380 |
+
4,156,75,0,0,48.3,0.238,32,1
|
381 |
+
0,93,100,39,72,43.4,1.021,35,0
|
382 |
+
1,107,72,30,82,30.8,0.821,24,0
|
383 |
+
0,105,68,22,0,20,0.236,22,0
|
384 |
+
1,109,60,8,182,25.4,0.947,21,0
|
385 |
+
1,90,62,18,59,25.1,1.268,25,0
|
386 |
+
1,125,70,24,110,24.3,0.221,25,0
|
387 |
+
1,119,54,13,50,22.3,0.205,24,0
|
388 |
+
5,116,74,29,0,32.3,0.66,35,1
|
389 |
+
8,105,100,36,0,43.3,0.239,45,1
|
390 |
+
5,144,82,26,285,32,0.452,58,1
|
391 |
+
3,100,68,23,81,31.6,0.949,28,0
|
392 |
+
1,100,66,29,196,32,0.444,42,0
|
393 |
+
5,166,76,0,0,45.7,0.34,27,1
|
394 |
+
1,131,64,14,415,23.7,0.389,21,0
|
395 |
+
4,116,72,12,87,22.1,0.463,37,0
|
396 |
+
4,158,78,0,0,32.9,0.803,31,1
|
397 |
+
2,127,58,24,275,27.7,1.6,25,0
|
398 |
+
3,96,56,34,115,24.7,0.944,39,0
|
399 |
+
0,131,66,40,0,34.3,0.196,22,1
|
400 |
+
3,82,70,0,0,21.1,0.389,25,0
|
401 |
+
3,193,70,31,0,34.9,0.241,25,1
|
402 |
+
4,95,64,0,0,32,0.161,31,1
|
403 |
+
6,137,61,0,0,24.2,0.151,55,0
|
404 |
+
5,136,84,41,88,35,0.286,35,1
|
405 |
+
9,72,78,25,0,31.6,0.28,38,0
|
406 |
+
5,168,64,0,0,32.9,0.135,41,1
|
407 |
+
2,123,48,32,165,42.1,0.52,26,0
|
408 |
+
4,115,72,0,0,28.9,0.376,46,1
|
409 |
+
0,101,62,0,0,21.9,0.336,25,0
|
410 |
+
8,197,74,0,0,25.9,1.191,39,1
|
411 |
+
1,172,68,49,579,42.4,0.702,28,1
|
412 |
+
6,102,90,39,0,35.7,0.674,28,0
|
413 |
+
1,112,72,30,176,34.4,0.528,25,0
|
414 |
+
1,143,84,23,310,42.4,1.076,22,0
|
415 |
+
1,143,74,22,61,26.2,0.256,21,0
|
416 |
+
0,138,60,35,167,34.6,0.534,21,1
|
417 |
+
3,173,84,33,474,35.7,0.258,22,1
|
418 |
+
1,97,68,21,0,27.2,1.095,22,0
|
419 |
+
4,144,82,32,0,38.5,0.554,37,1
|
420 |
+
1,83,68,0,0,18.2,0.624,27,0
|
421 |
+
3,129,64,29,115,26.4,0.219,28,1
|
422 |
+
1,119,88,41,170,45.3,0.507,26,0
|
423 |
+
2,94,68,18,76,26,0.561,21,0
|
424 |
+
0,102,64,46,78,40.6,0.496,21,0
|
425 |
+
2,115,64,22,0,30.8,0.421,21,0
|
426 |
+
8,151,78,32,210,42.9,0.516,36,1
|
427 |
+
4,184,78,39,277,37,0.264,31,1
|
428 |
+
0,94,0,0,0,0,0.256,25,0
|
429 |
+
1,181,64,30,180,34.1,0.328,38,1
|
430 |
+
0,135,94,46,145,40.6,0.284,26,0
|
431 |
+
1,95,82,25,180,35,0.233,43,1
|
432 |
+
2,99,0,0,0,22.2,0.108,23,0
|
433 |
+
3,89,74,16,85,30.4,0.551,38,0
|
434 |
+
1,80,74,11,60,30,0.527,22,0
|
435 |
+
2,139,75,0,0,25.6,0.167,29,0
|
436 |
+
1,90,68,8,0,24.5,1.138,36,0
|
437 |
+
0,141,0,0,0,42.4,0.205,29,1
|
438 |
+
12,140,85,33,0,37.4,0.244,41,0
|
439 |
+
5,147,75,0,0,29.9,0.434,28,0
|
440 |
+
1,97,70,15,0,18.2,0.147,21,0
|
441 |
+
6,107,88,0,0,36.8,0.727,31,0
|
442 |
+
0,189,104,25,0,34.3,0.435,41,1
|
443 |
+
2,83,66,23,50,32.2,0.497,22,0
|
444 |
+
4,117,64,27,120,33.2,0.23,24,0
|
445 |
+
8,108,70,0,0,30.5,0.955,33,1
|
446 |
+
4,117,62,12,0,29.7,0.38,30,1
|
447 |
+
0,180,78,63,14,59.4,2.42,25,1
|
448 |
+
1,100,72,12,70,25.3,0.658,28,0
|
449 |
+
0,95,80,45,92,36.5,0.33,26,0
|
450 |
+
0,104,64,37,64,33.6,0.51,22,1
|
451 |
+
0,120,74,18,63,30.5,0.285,26,0
|
452 |
+
1,82,64,13,95,21.2,0.415,23,0
|
453 |
+
2,134,70,0,0,28.9,0.542,23,1
|
454 |
+
0,91,68,32,210,39.9,0.381,25,0
|
455 |
+
2,119,0,0,0,19.6,0.832,72,0
|
456 |
+
2,100,54,28,105,37.8,0.498,24,0
|
457 |
+
14,175,62,30,0,33.6,0.212,38,1
|
458 |
+
1,135,54,0,0,26.7,0.687,62,0
|
459 |
+
5,86,68,28,71,30.2,0.364,24,0
|
460 |
+
10,148,84,48,237,37.6,1.001,51,1
|
461 |
+
9,134,74,33,60,25.9,0.46,81,0
|
462 |
+
9,120,72,22,56,20.8,0.733,48,0
|
463 |
+
1,71,62,0,0,21.8,0.416,26,0
|
464 |
+
8,74,70,40,49,35.3,0.705,39,0
|
465 |
+
5,88,78,30,0,27.6,0.258,37,0
|
466 |
+
10,115,98,0,0,24,1.022,34,0
|
467 |
+
0,124,56,13,105,21.8,0.452,21,0
|
468 |
+
0,74,52,10,36,27.8,0.269,22,0
|
469 |
+
0,97,64,36,100,36.8,0.6,25,0
|
470 |
+
8,120,0,0,0,30,0.183,38,1
|
471 |
+
6,154,78,41,140,46.1,0.571,27,0
|
472 |
+
1,144,82,40,0,41.3,0.607,28,0
|
473 |
+
0,137,70,38,0,33.2,0.17,22,0
|
474 |
+
0,119,66,27,0,38.8,0.259,22,0
|
475 |
+
7,136,90,0,0,29.9,0.21,50,0
|
476 |
+
4,114,64,0,0,28.9,0.126,24,0
|
477 |
+
0,137,84,27,0,27.3,0.231,59,0
|
478 |
+
2,105,80,45,191,33.7,0.711,29,1
|
479 |
+
7,114,76,17,110,23.8,0.466,31,0
|
480 |
+
8,126,74,38,75,25.9,0.162,39,0
|
481 |
+
4,132,86,31,0,28,0.419,63,0
|
482 |
+
3,158,70,30,328,35.5,0.344,35,1
|
483 |
+
0,123,88,37,0,35.2,0.197,29,0
|
484 |
+
4,85,58,22,49,27.8,0.306,28,0
|
485 |
+
0,84,82,31,125,38.2,0.233,23,0
|
486 |
+
0,145,0,0,0,44.2,0.63,31,1
|
487 |
+
0,135,68,42,250,42.3,0.365,24,1
|
488 |
+
1,139,62,41,480,40.7,0.536,21,0
|
489 |
+
0,173,78,32,265,46.5,1.159,58,0
|
490 |
+
4,99,72,17,0,25.6,0.294,28,0
|
491 |
+
8,194,80,0,0,26.1,0.551,67,0
|
492 |
+
2,83,65,28,66,36.8,0.629,24,0
|
493 |
+
2,89,90,30,0,33.5,0.292,42,0
|
494 |
+
4,99,68,38,0,32.8,0.145,33,0
|
495 |
+
4,125,70,18,122,28.9,1.144,45,1
|
496 |
+
3,80,0,0,0,0,0.174,22,0
|
497 |
+
6,166,74,0,0,26.6,0.304,66,0
|
498 |
+
5,110,68,0,0,26,0.292,30,0
|
499 |
+
2,81,72,15,76,30.1,0.547,25,0
|
500 |
+
7,195,70,33,145,25.1,0.163,55,1
|
501 |
+
6,154,74,32,193,29.3,0.839,39,0
|
502 |
+
2,117,90,19,71,25.2,0.313,21,0
|
503 |
+
3,84,72,32,0,37.2,0.267,28,0
|
504 |
+
6,0,68,41,0,39,0.727,41,1
|
505 |
+
7,94,64,25,79,33.3,0.738,41,0
|
506 |
+
3,96,78,39,0,37.3,0.238,40,0
|
507 |
+
10,75,82,0,0,33.3,0.263,38,0
|
508 |
+
0,180,90,26,90,36.5,0.314,35,1
|
509 |
+
1,130,60,23,170,28.6,0.692,21,0
|
510 |
+
2,84,50,23,76,30.4,0.968,21,0
|
511 |
+
8,120,78,0,0,25,0.409,64,0
|
512 |
+
12,84,72,31,0,29.7,0.297,46,1
|
513 |
+
0,139,62,17,210,22.1,0.207,21,0
|
514 |
+
9,91,68,0,0,24.2,0.2,58,0
|
515 |
+
2,91,62,0,0,27.3,0.525,22,0
|
516 |
+
3,99,54,19,86,25.6,0.154,24,0
|
517 |
+
3,163,70,18,105,31.6,0.268,28,1
|
518 |
+
9,145,88,34,165,30.3,0.771,53,1
|
519 |
+
7,125,86,0,0,37.6,0.304,51,0
|
520 |
+
13,76,60,0,0,32.8,0.18,41,0
|
521 |
+
6,129,90,7,326,19.6,0.582,60,0
|
522 |
+
2,68,70,32,66,25,0.187,25,0
|
523 |
+
3,124,80,33,130,33.2,0.305,26,0
|
524 |
+
6,114,0,0,0,0,0.189,26,0
|
525 |
+
9,130,70,0,0,34.2,0.652,45,1
|
526 |
+
3,125,58,0,0,31.6,0.151,24,0
|
527 |
+
3,87,60,18,0,21.8,0.444,21,0
|
528 |
+
1,97,64,19,82,18.2,0.299,21,0
|
529 |
+
3,116,74,15,105,26.3,0.107,24,0
|
530 |
+
0,117,66,31,188,30.8,0.493,22,0
|
531 |
+
0,111,65,0,0,24.6,0.66,31,0
|
532 |
+
2,122,60,18,106,29.8,0.717,22,0
|
533 |
+
0,107,76,0,0,45.3,0.686,24,0
|
534 |
+
1,86,66,52,65,41.3,0.917,29,0
|
535 |
+
6,91,0,0,0,29.8,0.501,31,0
|
536 |
+
1,77,56,30,56,33.3,1.251,24,0
|
537 |
+
4,132,0,0,0,32.9,0.302,23,1
|
538 |
+
0,105,90,0,0,29.6,0.197,46,0
|
539 |
+
0,57,60,0,0,21.7,0.735,67,0
|
540 |
+
0,127,80,37,210,36.3,0.804,23,0
|
541 |
+
3,129,92,49,155,36.4,0.968,32,1
|
542 |
+
8,100,74,40,215,39.4,0.661,43,1
|
543 |
+
3,128,72,25,190,32.4,0.549,27,1
|
544 |
+
10,90,85,32,0,34.9,0.825,56,1
|
545 |
+
4,84,90,23,56,39.5,0.159,25,0
|
546 |
+
1,88,78,29,76,32,0.365,29,0
|
547 |
+
8,186,90,35,225,34.5,0.423,37,1
|
548 |
+
5,187,76,27,207,43.6,1.034,53,1
|
549 |
+
4,131,68,21,166,33.1,0.16,28,0
|
550 |
+
1,164,82,43,67,32.8,0.341,50,0
|
551 |
+
4,189,110,31,0,28.5,0.68,37,0
|
552 |
+
1,116,70,28,0,27.4,0.204,21,0
|
553 |
+
3,84,68,30,106,31.9,0.591,25,0
|
554 |
+
6,114,88,0,0,27.8,0.247,66,0
|
555 |
+
1,88,62,24,44,29.9,0.422,23,0
|
556 |
+
1,84,64,23,115,36.9,0.471,28,0
|
557 |
+
7,124,70,33,215,25.5,0.161,37,0
|
558 |
+
1,97,70,40,0,38.1,0.218,30,0
|
559 |
+
8,110,76,0,0,27.8,0.237,58,0
|
560 |
+
11,103,68,40,0,46.2,0.126,42,0
|
561 |
+
11,85,74,0,0,30.1,0.3,35,0
|
562 |
+
6,125,76,0,0,33.8,0.121,54,1
|
563 |
+
0,198,66,32,274,41.3,0.502,28,1
|
564 |
+
1,87,68,34,77,37.6,0.401,24,0
|
565 |
+
6,99,60,19,54,26.9,0.497,32,0
|
566 |
+
0,91,80,0,0,32.4,0.601,27,0
|
567 |
+
2,95,54,14,88,26.1,0.748,22,0
|
568 |
+
1,99,72,30,18,38.6,0.412,21,0
|
569 |
+
6,92,62,32,126,32,0.085,46,0
|
570 |
+
4,154,72,29,126,31.3,0.338,37,0
|
571 |
+
0,121,66,30,165,34.3,0.203,33,1
|
572 |
+
3,78,70,0,0,32.5,0.27,39,0
|
573 |
+
2,130,96,0,0,22.6,0.268,21,0
|
574 |
+
3,111,58,31,44,29.5,0.43,22,0
|
575 |
+
2,98,60,17,120,34.7,0.198,22,0
|
576 |
+
1,143,86,30,330,30.1,0.892,23,0
|
577 |
+
1,119,44,47,63,35.5,0.28,25,0
|
578 |
+
6,108,44,20,130,24,0.813,35,0
|
579 |
+
2,118,80,0,0,42.9,0.693,21,1
|
580 |
+
10,133,68,0,0,27,0.245,36,0
|
581 |
+
2,197,70,99,0,34.7,0.575,62,1
|
582 |
+
0,151,90,46,0,42.1,0.371,21,1
|
583 |
+
6,109,60,27,0,25,0.206,27,0
|
584 |
+
12,121,78,17,0,26.5,0.259,62,0
|
585 |
+
8,100,76,0,0,38.7,0.19,42,0
|
586 |
+
8,124,76,24,600,28.7,0.687,52,1
|
587 |
+
1,93,56,11,0,22.5,0.417,22,0
|
588 |
+
8,143,66,0,0,34.9,0.129,41,1
|
589 |
+
6,103,66,0,0,24.3,0.249,29,0
|
590 |
+
3,176,86,27,156,33.3,1.154,52,1
|
591 |
+
0,73,0,0,0,21.1,0.342,25,0
|
592 |
+
11,111,84,40,0,46.8,0.925,45,1
|
593 |
+
2,112,78,50,140,39.4,0.175,24,0
|
594 |
+
3,132,80,0,0,34.4,0.402,44,1
|
595 |
+
2,82,52,22,115,28.5,1.699,25,0
|
596 |
+
6,123,72,45,230,33.6,0.733,34,0
|
597 |
+
0,188,82,14,185,32,0.682,22,1
|
598 |
+
0,67,76,0,0,45.3,0.194,46,0
|
599 |
+
1,89,24,19,25,27.8,0.559,21,0
|
600 |
+
1,173,74,0,0,36.8,0.088,38,1
|
601 |
+
1,109,38,18,120,23.1,0.407,26,0
|
602 |
+
1,108,88,19,0,27.1,0.4,24,0
|
603 |
+
6,96,0,0,0,23.7,0.19,28,0
|
604 |
+
1,124,74,36,0,27.8,0.1,30,0
|
605 |
+
7,150,78,29,126,35.2,0.692,54,1
|
606 |
+
4,183,0,0,0,28.4,0.212,36,1
|
607 |
+
1,124,60,32,0,35.8,0.514,21,0
|
608 |
+
1,181,78,42,293,40,1.258,22,1
|
609 |
+
1,92,62,25,41,19.5,0.482,25,0
|
610 |
+
0,152,82,39,272,41.5,0.27,27,0
|
611 |
+
1,111,62,13,182,24,0.138,23,0
|
612 |
+
3,106,54,21,158,30.9,0.292,24,0
|
613 |
+
3,174,58,22,194,32.9,0.593,36,1
|
614 |
+
7,168,88,42,321,38.2,0.787,40,1
|
615 |
+
6,105,80,28,0,32.5,0.878,26,0
|
616 |
+
11,138,74,26,144,36.1,0.557,50,1
|
617 |
+
3,106,72,0,0,25.8,0.207,27,0
|
618 |
+
6,117,96,0,0,28.7,0.157,30,0
|
619 |
+
2,68,62,13,15,20.1,0.257,23,0
|
620 |
+
9,112,82,24,0,28.2,1.282,50,1
|
621 |
+
0,119,0,0,0,32.4,0.141,24,1
|
622 |
+
2,112,86,42,160,38.4,0.246,28,0
|
623 |
+
2,92,76,20,0,24.2,1.698,28,0
|
624 |
+
6,183,94,0,0,40.8,1.461,45,0
|
625 |
+
0,94,70,27,115,43.5,0.347,21,0
|
626 |
+
2,108,64,0,0,30.8,0.158,21,0
|
627 |
+
4,90,88,47,54,37.7,0.362,29,0
|
628 |
+
0,125,68,0,0,24.7,0.206,21,0
|
629 |
+
0,132,78,0,0,32.4,0.393,21,0
|
630 |
+
5,128,80,0,0,34.6,0.144,45,0
|
631 |
+
4,94,65,22,0,24.7,0.148,21,0
|
632 |
+
7,114,64,0,0,27.4,0.732,34,1
|
633 |
+
0,102,78,40,90,34.5,0.238,24,0
|
634 |
+
2,111,60,0,0,26.2,0.343,23,0
|
635 |
+
1,128,82,17,183,27.5,0.115,22,0
|
636 |
+
10,92,62,0,0,25.9,0.167,31,0
|
637 |
+
13,104,72,0,0,31.2,0.465,38,1
|
638 |
+
5,104,74,0,0,28.8,0.153,48,0
|
639 |
+
2,94,76,18,66,31.6,0.649,23,0
|
640 |
+
7,97,76,32,91,40.9,0.871,32,1
|
641 |
+
1,100,74,12,46,19.5,0.149,28,0
|
642 |
+
0,102,86,17,105,29.3,0.695,27,0
|
643 |
+
4,128,70,0,0,34.3,0.303,24,0
|
644 |
+
6,147,80,0,0,29.5,0.178,50,1
|
645 |
+
4,90,0,0,0,28,0.61,31,0
|
646 |
+
3,103,72,30,152,27.6,0.73,27,0
|
647 |
+
2,157,74,35,440,39.4,0.134,30,0
|
648 |
+
1,167,74,17,144,23.4,0.447,33,1
|
649 |
+
0,179,50,36,159,37.8,0.455,22,1
|
650 |
+
11,136,84,35,130,28.3,0.26,42,1
|
651 |
+
0,107,60,25,0,26.4,0.133,23,0
|
652 |
+
1,91,54,25,100,25.2,0.234,23,0
|
653 |
+
1,117,60,23,106,33.8,0.466,27,0
|
654 |
+
5,123,74,40,77,34.1,0.269,28,0
|
655 |
+
2,120,54,0,0,26.8,0.455,27,0
|
656 |
+
1,106,70,28,135,34.2,0.142,22,0
|
657 |
+
2,155,52,27,540,38.7,0.24,25,1
|
658 |
+
2,101,58,35,90,21.8,0.155,22,0
|
659 |
+
1,120,80,48,200,38.9,1.162,41,0
|
660 |
+
11,127,106,0,0,39,0.19,51,0
|
661 |
+
3,80,82,31,70,34.2,1.292,27,1
|
662 |
+
10,162,84,0,0,27.7,0.182,54,0
|
663 |
+
1,199,76,43,0,42.9,1.394,22,1
|
664 |
+
8,167,106,46,231,37.6,0.165,43,1
|
665 |
+
9,145,80,46,130,37.9,0.637,40,1
|
666 |
+
6,115,60,39,0,33.7,0.245,40,1
|
667 |
+
1,112,80,45,132,34.8,0.217,24,0
|
668 |
+
4,145,82,18,0,32.5,0.235,70,1
|
669 |
+
10,111,70,27,0,27.5,0.141,40,1
|
670 |
+
6,98,58,33,190,34,0.43,43,0
|
671 |
+
9,154,78,30,100,30.9,0.164,45,0
|
672 |
+
6,165,68,26,168,33.6,0.631,49,0
|
673 |
+
1,99,58,10,0,25.4,0.551,21,0
|
674 |
+
10,68,106,23,49,35.5,0.285,47,0
|
675 |
+
3,123,100,35,240,57.3,0.88,22,0
|
676 |
+
8,91,82,0,0,35.6,0.587,68,0
|
677 |
+
6,195,70,0,0,30.9,0.328,31,1
|
678 |
+
9,156,86,0,0,24.8,0.23,53,1
|
679 |
+
0,93,60,0,0,35.3,0.263,25,0
|
680 |
+
3,121,52,0,0,36,0.127,25,1
|
681 |
+
2,101,58,17,265,24.2,0.614,23,0
|
682 |
+
2,56,56,28,45,24.2,0.332,22,0
|
683 |
+
0,162,76,36,0,49.6,0.364,26,1
|
684 |
+
0,95,64,39,105,44.6,0.366,22,0
|
685 |
+
4,125,80,0,0,32.3,0.536,27,1
|
686 |
+
5,136,82,0,0,0,0.64,69,0
|
687 |
+
2,129,74,26,205,33.2,0.591,25,0
|
688 |
+
3,130,64,0,0,23.1,0.314,22,0
|
689 |
+
1,107,50,19,0,28.3,0.181,29,0
|
690 |
+
1,140,74,26,180,24.1,0.828,23,0
|
691 |
+
1,144,82,46,180,46.1,0.335,46,1
|
692 |
+
8,107,80,0,0,24.6,0.856,34,0
|
693 |
+
13,158,114,0,0,42.3,0.257,44,1
|
694 |
+
2,121,70,32,95,39.1,0.886,23,0
|
695 |
+
7,129,68,49,125,38.5,0.439,43,1
|
696 |
+
2,90,60,0,0,23.5,0.191,25,0
|
697 |
+
7,142,90,24,480,30.4,0.128,43,1
|
698 |
+
3,169,74,19,125,29.9,0.268,31,1
|
699 |
+
0,99,0,0,0,25,0.253,22,0
|
700 |
+
4,127,88,11,155,34.5,0.598,28,0
|
701 |
+
4,118,70,0,0,44.5,0.904,26,0
|
702 |
+
2,122,76,27,200,35.9,0.483,26,0
|
703 |
+
6,125,78,31,0,27.6,0.565,49,1
|
704 |
+
1,168,88,29,0,35,0.905,52,1
|
705 |
+
2,129,0,0,0,38.5,0.304,41,0
|
706 |
+
4,110,76,20,100,28.4,0.118,27,0
|
707 |
+
6,80,80,36,0,39.8,0.177,28,0
|
708 |
+
10,115,0,0,0,0,0.261,30,1
|
709 |
+
2,127,46,21,335,34.4,0.176,22,0
|
710 |
+
9,164,78,0,0,32.8,0.148,45,1
|
711 |
+
2,93,64,32,160,38,0.674,23,1
|
712 |
+
3,158,64,13,387,31.2,0.295,24,0
|
713 |
+
5,126,78,27,22,29.6,0.439,40,0
|
714 |
+
10,129,62,36,0,41.2,0.441,38,1
|
715 |
+
0,134,58,20,291,26.4,0.352,21,0
|
716 |
+
3,102,74,0,0,29.5,0.121,32,0
|
717 |
+
7,187,50,33,392,33.9,0.826,34,1
|
718 |
+
3,173,78,39,185,33.8,0.97,31,1
|
719 |
+
10,94,72,18,0,23.1,0.595,56,0
|
720 |
+
1,108,60,46,178,35.5,0.415,24,0
|
721 |
+
5,97,76,27,0,35.6,0.378,52,1
|
722 |
+
4,83,86,19,0,29.3,0.317,34,0
|
723 |
+
1,114,66,36,200,38.1,0.289,21,0
|
724 |
+
1,149,68,29,127,29.3,0.349,42,1
|
725 |
+
5,117,86,30,105,39.1,0.251,42,0
|
726 |
+
1,111,94,0,0,32.8,0.265,45,0
|
727 |
+
4,112,78,40,0,39.4,0.236,38,0
|
728 |
+
1,116,78,29,180,36.1,0.496,25,0
|
729 |
+
0,141,84,26,0,32.4,0.433,22,0
|
730 |
+
2,175,88,0,0,22.9,0.326,22,0
|
731 |
+
2,92,52,0,0,30.1,0.141,22,0
|
732 |
+
3,130,78,23,79,28.4,0.323,34,1
|
733 |
+
8,120,86,0,0,28.4,0.259,22,1
|
734 |
+
2,174,88,37,120,44.5,0.646,24,1
|
735 |
+
2,106,56,27,165,29,0.426,22,0
|
736 |
+
2,105,75,0,0,23.3,0.56,53,0
|
737 |
+
4,95,60,32,0,35.4,0.284,28,0
|
738 |
+
0,126,86,27,120,27.4,0.515,21,0
|
739 |
+
8,65,72,23,0,32,0.6,42,0
|
740 |
+
2,99,60,17,160,36.6,0.453,21,0
|
741 |
+
1,102,74,0,0,39.5,0.293,42,1
|
742 |
+
11,120,80,37,150,42.3,0.785,48,1
|
743 |
+
3,102,44,20,94,30.8,0.4,26,0
|
744 |
+
1,109,58,18,116,28.5,0.219,22,0
|
745 |
+
9,140,94,0,0,32.7,0.734,45,1
|
746 |
+
13,153,88,37,140,40.6,1.174,39,0
|
747 |
+
12,100,84,33,105,30,0.488,46,0
|
748 |
+
1,147,94,41,0,49.3,0.358,27,1
|
749 |
+
1,81,74,41,57,46.3,1.096,32,0
|
750 |
+
3,187,70,22,200,36.4,0.408,36,1
|
751 |
+
6,162,62,0,0,24.3,0.178,50,1
|
752 |
+
4,136,70,0,0,31.2,1.182,22,1
|
753 |
+
1,121,78,39,74,39,0.261,28,0
|
754 |
+
3,108,62,24,0,26,0.223,25,0
|
755 |
+
0,181,88,44,510,43.3,0.222,26,1
|
756 |
+
8,154,78,32,0,32.4,0.443,45,1
|
757 |
+
1,128,88,39,110,36.5,1.057,37,1
|
758 |
+
7,137,90,41,0,32,0.391,39,0
|
759 |
+
0,123,72,0,0,36.3,0.258,52,1
|
760 |
+
1,106,76,0,0,37.5,0.197,26,0
|
761 |
+
6,190,92,0,0,35.5,0.278,66,1
|
762 |
+
2,88,58,26,16,28.4,0.766,22,0
|
763 |
+
9,170,74,31,0,44,0.403,43,1
|
764 |
+
9,89,62,0,0,22.5,0.142,33,0
|
765 |
+
10,101,76,48,180,32.9,0.171,63,0
|
766 |
+
2,122,70,27,0,36.8,0.34,27,0
|
767 |
+
5,121,72,23,112,26.2,0.245,30,0
|
768 |
+
1,126,60,0,0,30.1,0.349,47,1
|
769 |
+
1,93,70,31,0,30.4,0.315,23,0
|
healthcare-dataset-stroke-data.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
heart.csv
ADDED
@@ -0,0 +1,304 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
8 |
+
56,0,1,140,294,0,0,153,0,1.3,1,0,2,1
|
9 |
+
44,1,1,120,263,0,1,173,0,0,2,0,3,1
|
10 |
+
52,1,2,172,199,1,1,162,0,0.5,2,0,3,1
|
11 |
+
57,1,2,150,168,0,1,174,0,1.6,2,0,2,1
|
12 |
+
54,1,0,140,239,0,1,160,0,1.2,2,0,2,1
|
13 |
+
48,0,2,130,275,0,1,139,0,0.2,2,0,2,1
|
14 |
+
49,1,1,130,266,0,1,171,0,0.6,2,0,2,1
|
15 |
+
64,1,3,110,211,0,0,144,1,1.8,1,0,2,1
|
16 |
+
58,0,3,150,283,1,0,162,0,1,2,0,2,1
|
17 |
+
50,0,2,120,219,0,1,158,0,1.6,1,0,2,1
|
18 |
+
58,0,2,120,340,0,1,172,0,0,2,0,2,1
|
19 |
+
66,0,3,150,226,0,1,114,0,2.6,0,0,2,1
|
20 |
+
43,1,0,150,247,0,1,171,0,1.5,2,0,2,1
|
21 |
+
69,0,3,140,239,0,1,151,0,1.8,2,2,2,1
|
22 |
+
59,1,0,135,234,0,1,161,0,0.5,1,0,3,1
|
23 |
+
44,1,2,130,233,0,1,179,1,0.4,2,0,2,1
|
24 |
+
42,1,0,140,226,0,1,178,0,0,2,0,2,1
|
25 |
+
61,1,2,150,243,1,1,137,1,1,1,0,2,1
|
26 |
+
40,1,3,140,199,0,1,178,1,1.4,2,0,3,1
|
27 |
+
71,0,1,160,302,0,1,162,0,0.4,2,2,2,1
|
28 |
+
59,1,2,150,212,1,1,157,0,1.6,2,0,2,1
|
29 |
+
51,1,2,110,175,0,1,123,0,0.6,2,0,2,1
|
30 |
+
65,0,2,140,417,1,0,157,0,0.8,2,1,2,1
|
31 |
+
53,1,2,130,197,1,0,152,0,1.2,0,0,2,1
|
32 |
+
41,0,1,105,198,0,1,168,0,0,2,1,2,1
|
33 |
+
65,1,0,120,177,0,1,140,0,0.4,2,0,3,1
|
34 |
+
44,1,1,130,219,0,0,188,0,0,2,0,2,1
|
35 |
+
54,1,2,125,273,0,0,152,0,0.5,0,1,2,1
|
36 |
+
51,1,3,125,213,0,0,125,1,1.4,2,1,2,1
|
37 |
+
46,0,2,142,177,0,0,160,1,1.4,0,0,2,1
|
38 |
+
54,0,2,135,304,1,1,170,0,0,2,0,2,1
|
39 |
+
54,1,2,150,232,0,0,165,0,1.6,2,0,3,1
|
40 |
+
65,0,2,155,269,0,1,148,0,0.8,2,0,2,1
|
41 |
+
65,0,2,160,360,0,0,151,0,0.8,2,0,2,1
|
42 |
+
51,0,2,140,308,0,0,142,0,1.5,2,1,2,1
|
43 |
+
48,1,1,130,245,0,0,180,0,0.2,1,0,2,1
|
44 |
+
45,1,0,104,208,0,0,148,1,3,1,0,2,1
|
45 |
+
53,0,0,130,264,0,0,143,0,0.4,1,0,2,1
|
46 |
+
39,1,2,140,321,0,0,182,0,0,2,0,2,1
|
47 |
+
52,1,1,120,325,0,1,172,0,0.2,2,0,2,1
|
48 |
+
44,1,2,140,235,0,0,180,0,0,2,0,2,1
|
49 |
+
47,1,2,138,257,0,0,156,0,0,2,0,2,1
|
50 |
+
53,0,2,128,216,0,0,115,0,0,2,0,0,1
|
51 |
+
53,0,0,138,234,0,0,160,0,0,2,0,2,1
|
52 |
+
51,0,2,130,256,0,0,149,0,0.5,2,0,2,1
|
53 |
+
66,1,0,120,302,0,0,151,0,0.4,1,0,2,1
|
54 |
+
62,1,2,130,231,0,1,146,0,1.8,1,3,3,1
|
55 |
+
44,0,2,108,141,0,1,175,0,0.6,1,0,2,1
|
56 |
+
63,0,2,135,252,0,0,172,0,0,2,0,2,1
|
57 |
+
52,1,1,134,201,0,1,158,0,0.8,2,1,2,1
|
58 |
+
48,1,0,122,222,0,0,186,0,0,2,0,2,1
|
59 |
+
45,1,0,115,260,0,0,185,0,0,2,0,2,1
|
60 |
+
34,1,3,118,182,0,0,174,0,0,2,0,2,1
|
61 |
+
57,0,0,128,303,0,0,159,0,0,2,1,2,1
|
62 |
+
71,0,2,110,265,1,0,130,0,0,2,1,2,1
|
63 |
+
54,1,1,108,309,0,1,156,0,0,2,0,3,1
|
64 |
+
52,1,3,118,186,0,0,190,0,0,1,0,1,1
|
65 |
+
41,1,1,135,203,0,1,132,0,0,1,0,1,1
|
66 |
+
58,1,2,140,211,1,0,165,0,0,2,0,2,1
|
67 |
+
35,0,0,138,183,0,1,182,0,1.4,2,0,2,1
|
68 |
+
51,1,2,100,222,0,1,143,1,1.2,1,0,2,1
|
69 |
+
45,0,1,130,234,0,0,175,0,0.6,1,0,2,1
|
70 |
+
44,1,1,120,220,0,1,170,0,0,2,0,2,1
|
71 |
+
62,0,0,124,209,0,1,163,0,0,2,0,2,1
|
72 |
+
54,1,2,120,258,0,0,147,0,0.4,1,0,3,1
|
73 |
+
51,1,2,94,227,0,1,154,1,0,2,1,3,1
|
74 |
+
29,1,1,130,204,0,0,202,0,0,2,0,2,1
|
75 |
+
51,1,0,140,261,0,0,186,1,0,2,0,2,1
|
76 |
+
43,0,2,122,213,0,1,165,0,0.2,1,0,2,1
|
77 |
+
55,0,1,135,250,0,0,161,0,1.4,1,0,2,1
|
78 |
+
51,1,2,125,245,1,0,166,0,2.4,1,0,2,1
|
79 |
+
59,1,1,140,221,0,1,164,1,0,2,0,2,1
|
80 |
+
52,1,1,128,205,1,1,184,0,0,2,0,2,1
|
81 |
+
58,1,2,105,240,0,0,154,1,0.6,1,0,3,1
|
82 |
+
41,1,2,112,250,0,1,179,0,0,2,0,2,1
|
83 |
+
45,1,1,128,308,0,0,170,0,0,2,0,2,1
|
84 |
+
60,0,2,102,318,0,1,160,0,0,2,1,2,1
|
85 |
+
52,1,3,152,298,1,1,178,0,1.2,1,0,3,1
|
86 |
+
42,0,0,102,265,0,0,122,0,0.6,1,0,2,1
|
87 |
+
67,0,2,115,564,0,0,160,0,1.6,1,0,3,1
|
88 |
+
68,1,2,118,277,0,1,151,0,1,2,1,3,1
|
89 |
+
46,1,1,101,197,1,1,156,0,0,2,0,3,1
|
90 |
+
54,0,2,110,214,0,1,158,0,1.6,1,0,2,1
|
91 |
+
58,0,0,100,248,0,0,122,0,1,1,0,2,1
|
92 |
+
48,1,2,124,255,1,1,175,0,0,2,2,2,1
|
93 |
+
57,1,0,132,207,0,1,168,1,0,2,0,3,1
|
94 |
+
52,1,2,138,223,0,1,169,0,0,2,4,2,1
|
95 |
+
54,0,1,132,288,1,0,159,1,0,2,1,2,1
|
96 |
+
45,0,1,112,160,0,1,138,0,0,1,0,2,1
|
97 |
+
53,1,0,142,226,0,0,111,1,0,2,0,3,1
|
98 |
+
62,0,0,140,394,0,0,157,0,1.2,1,0,2,1
|
99 |
+
52,1,0,108,233,1,1,147,0,0.1,2,3,3,1
|
100 |
+
43,1,2,130,315,0,1,162,0,1.9,2,1,2,1
|
101 |
+
53,1,2,130,246,1,0,173,0,0,2,3,2,1
|
102 |
+
42,1,3,148,244,0,0,178,0,0.8,2,2,2,1
|
103 |
+
59,1,3,178,270,0,0,145,0,4.2,0,0,3,1
|
104 |
+
63,0,1,140,195,0,1,179,0,0,2,2,2,1
|
105 |
+
42,1,2,120,240,1,1,194,0,0.8,0,0,3,1
|
106 |
+
50,1,2,129,196,0,1,163,0,0,2,0,2,1
|
107 |
+
68,0,2,120,211,0,0,115,0,1.5,1,0,2,1
|
108 |
+
69,1,3,160,234,1,0,131,0,0.1,1,1,2,1
|
109 |
+
45,0,0,138,236,0,0,152,1,0.2,1,0,2,1
|
110 |
+
50,0,1,120,244,0,1,162,0,1.1,2,0,2,1
|
111 |
+
50,0,0,110,254,0,0,159,0,0,2,0,2,1
|
112 |
+
64,0,0,180,325,0,1,154,1,0,2,0,2,1
|
113 |
+
57,1,2,150,126,1,1,173,0,0.2,2,1,3,1
|
114 |
+
64,0,2,140,313,0,1,133,0,0.2,2,0,3,1
|
115 |
+
43,1,0,110,211,0,1,161,0,0,2,0,3,1
|
116 |
+
55,1,1,130,262,0,1,155,0,0,2,0,2,1
|
117 |
+
37,0,2,120,215,0,1,170,0,0,2,0,2,1
|
118 |
+
41,1,2,130,214,0,0,168,0,2,1,0,2,1
|
119 |
+
56,1,3,120,193,0,0,162,0,1.9,1,0,3,1
|
120 |
+
46,0,1,105,204,0,1,172,0,0,2,0,2,1
|
121 |
+
46,0,0,138,243,0,0,152,1,0,1,0,2,1
|
122 |
+
64,0,0,130,303,0,1,122,0,2,1,2,2,1
|
123 |
+
59,1,0,138,271,0,0,182,0,0,2,0,2,1
|
124 |
+
41,0,2,112,268,0,0,172,1,0,2,0,2,1
|
125 |
+
54,0,2,108,267,0,0,167,0,0,2,0,2,1
|
126 |
+
39,0,2,94,199,0,1,179,0,0,2,0,2,1
|
127 |
+
34,0,1,118,210,0,1,192,0,0.7,2,0,2,1
|
128 |
+
47,1,0,112,204,0,1,143,0,0.1,2,0,2,1
|
129 |
+
67,0,2,152,277,0,1,172,0,0,2,1,2,1
|
130 |
+
52,0,2,136,196,0,0,169,0,0.1,1,0,2,1
|
131 |
+
74,0,1,120,269,0,0,121,1,0.2,2,1,2,1
|
132 |
+
54,0,2,160,201,0,1,163,0,0,2,1,2,1
|
133 |
+
49,0,1,134,271,0,1,162,0,0,1,0,2,1
|
134 |
+
42,1,1,120,295,0,1,162,0,0,2,0,2,1
|
135 |
+
41,1,1,110,235,0,1,153,0,0,2,0,2,1
|
136 |
+
41,0,1,126,306,0,1,163,0,0,2,0,2,1
|
137 |
+
49,0,0,130,269,0,1,163,0,0,2,0,2,1
|
138 |
+
60,0,2,120,178,1,1,96,0,0,2,0,2,1
|
139 |
+
62,1,1,128,208,1,0,140,0,0,2,0,2,1
|
140 |
+
57,1,0,110,201,0,1,126,1,1.5,1,0,1,1
|
141 |
+
64,1,0,128,263,0,1,105,1,0.2,1,1,3,1
|
142 |
+
51,0,2,120,295,0,0,157,0,0.6,2,0,2,1
|
143 |
+
43,1,0,115,303,0,1,181,0,1.2,1,0,2,1
|
144 |
+
42,0,2,120,209,0,1,173,0,0,1,0,2,1
|
145 |
+
67,0,0,106,223,0,1,142,0,0.3,2,2,2,1
|
146 |
+
76,0,2,140,197,0,2,116,0,1.1,1,0,2,1
|
147 |
+
70,1,1,156,245,0,0,143,0,0,2,0,2,1
|
148 |
+
44,0,2,118,242,0,1,149,0,0.3,1,1,2,1
|
149 |
+
60,0,3,150,240,0,1,171,0,0.9,2,0,2,1
|
150 |
+
44,1,2,120,226,0,1,169,0,0,2,0,2,1
|
151 |
+
42,1,2,130,180,0,1,150,0,0,2,0,2,1
|
152 |
+
66,1,0,160,228,0,0,138,0,2.3,2,0,1,1
|
153 |
+
71,0,0,112,149,0,1,125,0,1.6,1,0,2,1
|
154 |
+
64,1,3,170,227,0,0,155,0,0.6,1,0,3,1
|
155 |
+
66,0,2,146,278,0,0,152,0,0,1,1,2,1
|
156 |
+
39,0,2,138,220,0,1,152,0,0,1,0,2,1
|
157 |
+
58,0,0,130,197,0,1,131,0,0.6,1,0,2,1
|
158 |
+
47,1,2,130,253,0,1,179,0,0,2,0,2,1
|
159 |
+
35,1,1,122,192,0,1,174,0,0,2,0,2,1
|
160 |
+
58,1,1,125,220,0,1,144,0,0.4,1,4,3,1
|
161 |
+
56,1,1,130,221,0,0,163,0,0,2,0,3,1
|
162 |
+
56,1,1,120,240,0,1,169,0,0,0,0,2,1
|
163 |
+
55,0,1,132,342,0,1,166,0,1.2,2,0,2,1
|
164 |
+
41,1,1,120,157,0,1,182,0,0,2,0,2,1
|
165 |
+
38,1,2,138,175,0,1,173,0,0,2,4,2,1
|
166 |
+
38,1,2,138,175,0,1,173,0,0,2,4,2,1
|
167 |
+
67,1,0,160,286,0,0,108,1,1.5,1,3,2,0
|
168 |
+
67,1,0,120,229,0,0,129,1,2.6,1,2,3,0
|
169 |
+
62,0,0,140,268,0,0,160,0,3.6,0,2,2,0
|
170 |
+
63,1,0,130,254,0,0,147,0,1.4,1,1,3,0
|
171 |
+
53,1,0,140,203,1,0,155,1,3.1,0,0,3,0
|
172 |
+
56,1,2,130,256,1,0,142,1,0.6,1,1,1,0
|
173 |
+
48,1,1,110,229,0,1,168,0,1,0,0,3,0
|
174 |
+
58,1,1,120,284,0,0,160,0,1.8,1,0,2,0
|
175 |
+
58,1,2,132,224,0,0,173,0,3.2,2,2,3,0
|
176 |
+
60,1,0,130,206,0,0,132,1,2.4,1,2,3,0
|
177 |
+
40,1,0,110,167,0,0,114,1,2,1,0,3,0
|
178 |
+
60,1,0,117,230,1,1,160,1,1.4,2,2,3,0
|
179 |
+
64,1,2,140,335,0,1,158,0,0,2,0,2,0
|
180 |
+
43,1,0,120,177,0,0,120,1,2.5,1,0,3,0
|
181 |
+
57,1,0,150,276,0,0,112,1,0.6,1,1,1,0
|
182 |
+
55,1,0,132,353,0,1,132,1,1.2,1,1,3,0
|
183 |
+
65,0,0,150,225,0,0,114,0,1,1,3,3,0
|
184 |
+
61,0,0,130,330,0,0,169,0,0,2,0,2,0
|
185 |
+
58,1,2,112,230,0,0,165,0,2.5,1,1,3,0
|
186 |
+
50,1,0,150,243,0,0,128,0,2.6,1,0,3,0
|
187 |
+
44,1,0,112,290,0,0,153,0,0,2,1,2,0
|
188 |
+
60,1,0,130,253,0,1,144,1,1.4,2,1,3,0
|
189 |
+
54,1,0,124,266,0,0,109,1,2.2,1,1,3,0
|
190 |
+
50,1,2,140,233,0,1,163,0,0.6,1,1,3,0
|
191 |
+
41,1,0,110,172,0,0,158,0,0,2,0,3,0
|
192 |
+
51,0,0,130,305,0,1,142,1,1.2,1,0,3,0
|
193 |
+
58,1,0,128,216,0,0,131,1,2.2,1,3,3,0
|
194 |
+
54,1,0,120,188,0,1,113,0,1.4,1,1,3,0
|
195 |
+
60,1,0,145,282,0,0,142,1,2.8,1,2,3,0
|
196 |
+
60,1,2,140,185,0,0,155,0,3,1,0,2,0
|
197 |
+
59,1,0,170,326,0,0,140,1,3.4,0,0,3,0
|
198 |
+
46,1,2,150,231,0,1,147,0,3.6,1,0,2,0
|
199 |
+
67,1,0,125,254,1,1,163,0,0.2,1,2,3,0
|
200 |
+
62,1,0,120,267,0,1,99,1,1.8,1,2,3,0
|
201 |
+
65,1,0,110,248,0,0,158,0,0.6,2,2,1,0
|
202 |
+
44,1,0,110,197,0,0,177,0,0,2,1,2,0
|
203 |
+
60,1,0,125,258,0,0,141,1,2.8,1,1,3,0
|
204 |
+
58,1,0,150,270,0,0,111,1,0.8,2,0,3,0
|
205 |
+
68,1,2,180,274,1,0,150,1,1.6,1,0,3,0
|
206 |
+
62,0,0,160,164,0,0,145,0,6.2,0,3,3,0
|
207 |
+
52,1,0,128,255,0,1,161,1,0,2,1,3,0
|
208 |
+
59,1,0,110,239,0,0,142,1,1.2,1,1,3,0
|
209 |
+
60,0,0,150,258,0,0,157,0,2.6,1,2,3,0
|
210 |
+
49,1,2,120,188,0,1,139,0,2,1,3,3,0
|
211 |
+
59,1,0,140,177,0,1,162,1,0,2,1,3,0
|
212 |
+
57,1,2,128,229,0,0,150,0,0.4,1,1,3,0
|
213 |
+
61,1,0,120,260,0,1,140,1,3.6,1,1,3,0
|
214 |
+
39,1,0,118,219,0,1,140,0,1.2,1,0,3,0
|
215 |
+
61,0,0,145,307,0,0,146,1,1,1,0,3,0
|
216 |
+
56,1,0,125,249,1,0,144,1,1.2,1,1,2,0
|
217 |
+
43,0,0,132,341,1,0,136,1,3,1,0,3,0
|
218 |
+
62,0,2,130,263,0,1,97,0,1.2,1,1,3,0
|
219 |
+
63,1,0,130,330,1,0,132,1,1.8,2,3,3,0
|
220 |
+
65,1,0,135,254,0,0,127,0,2.8,1,1,3,0
|
221 |
+
48,1,0,130,256,1,0,150,1,0,2,2,3,0
|
222 |
+
63,0,0,150,407,0,0,154,0,4,1,3,3,0
|
223 |
+
55,1,0,140,217,0,1,111,1,5.6,0,0,3,0
|
224 |
+
65,1,3,138,282,1,0,174,0,1.4,1,1,2,0
|
225 |
+
56,0,0,200,288,1,0,133,1,4,0,2,3,0
|
226 |
+
54,1,0,110,239,0,1,126,1,2.8,1,1,3,0
|
227 |
+
70,1,0,145,174,0,1,125,1,2.6,0,0,3,0
|
228 |
+
62,1,1,120,281,0,0,103,0,1.4,1,1,3,0
|
229 |
+
35,1,0,120,198,0,1,130,1,1.6,1,0,3,0
|
230 |
+
59,1,3,170,288,0,0,159,0,0.2,1,0,3,0
|
231 |
+
64,1,2,125,309,0,1,131,1,1.8,1,0,3,0
|
232 |
+
47,1,2,108,243,0,1,152,0,0,2,0,2,0
|
233 |
+
57,1,0,165,289,1,0,124,0,1,1,3,3,0
|
234 |
+
55,1,0,160,289,0,0,145,1,0.8,1,1,3,0
|
235 |
+
64,1,0,120,246,0,0,96,1,2.2,0,1,2,0
|
236 |
+
70,1,0,130,322,0,0,109,0,2.4,1,3,2,0
|
237 |
+
51,1,0,140,299,0,1,173,1,1.6,2,0,3,0
|
238 |
+
58,1,0,125,300,0,0,171,0,0,2,2,3,0
|
239 |
+
60,1,0,140,293,0,0,170,0,1.2,1,2,3,0
|
240 |
+
77,1,0,125,304,0,0,162,1,0,2,3,2,0
|
241 |
+
35,1,0,126,282,0,0,156,1,0,2,0,3,0
|
242 |
+
70,1,2,160,269,0,1,112,1,2.9,1,1,3,0
|
243 |
+
59,0,0,174,249,0,1,143,1,0,1,0,2,0
|
244 |
+
64,1,0,145,212,0,0,132,0,2,1,2,1,0
|
245 |
+
57,1,0,152,274,0,1,88,1,1.2,1,1,3,0
|
246 |
+
56,1,0,132,184,0,0,105,1,2.1,1,1,1,0
|
247 |
+
48,1,0,124,274,0,0,166,0,0.5,1,0,3,0
|
248 |
+
56,0,0,134,409,0,0,150,1,1.9,1,2,3,0
|
249 |
+
66,1,1,160,246,0,1,120,1,0,1,3,1,0
|
250 |
+
54,1,1,192,283,0,0,195,0,0,2,1,3,0
|
251 |
+
69,1,2,140,254,0,0,146,0,2,1,3,3,0
|
252 |
+
51,1,0,140,298,0,1,122,1,4.2,1,3,3,0
|
253 |
+
43,1,0,132,247,1,0,143,1,0.1,1,4,3,0
|
254 |
+
62,0,0,138,294,1,1,106,0,1.9,1,3,2,0
|
255 |
+
67,1,0,100,299,0,0,125,1,0.9,1,2,2,0
|
256 |
+
59,1,3,160,273,0,0,125,0,0,2,0,2,0
|
257 |
+
45,1,0,142,309,0,0,147,1,0,1,3,3,0
|
258 |
+
58,1,0,128,259,0,0,130,1,3,1,2,3,0
|
259 |
+
50,1,0,144,200,0,0,126,1,0.9,1,0,3,0
|
260 |
+
62,0,0,150,244,0,1,154,1,1.4,1,0,2,0
|
261 |
+
38,1,3,120,231,0,1,182,1,3.8,1,0,3,0
|
262 |
+
66,0,0,178,228,1,1,165,1,1,1,2,3,0
|
263 |
+
52,1,0,112,230,0,1,160,0,0,2,1,2,0
|
264 |
+
53,1,0,123,282,0,1,95,1,2,1,2,3,0
|
265 |
+
63,0,0,108,269,0,1,169,1,1.8,1,2,2,0
|
266 |
+
54,1,0,110,206,0,0,108,1,0,1,1,2,0
|
267 |
+
66,1,0,112,212,0,0,132,1,0.1,2,1,2,0
|
268 |
+
55,0,0,180,327,0,2,117,1,3.4,1,0,2,0
|
269 |
+
49,1,2,118,149,0,0,126,0,0.8,2,3,2,0
|
270 |
+
54,1,0,122,286,0,0,116,1,3.2,1,2,2,0
|
271 |
+
56,1,0,130,283,1,0,103,1,1.6,0,0,3,0
|
272 |
+
46,1,0,120,249,0,0,144,0,0.8,2,0,3,0
|
273 |
+
61,1,3,134,234,0,1,145,0,2.6,1,2,2,0
|
274 |
+
67,1,0,120,237,0,1,71,0,1,1,0,2,0
|
275 |
+
58,1,0,100,234,0,1,156,0,0.1,2,1,3,0
|
276 |
+
47,1,0,110,275,0,0,118,1,1,1,1,2,0
|
277 |
+
52,1,0,125,212,0,1,168,0,1,2,2,3,0
|
278 |
+
58,1,0,146,218,0,1,105,0,2,1,1,3,0
|
279 |
+
57,1,1,124,261,0,1,141,0,0.3,2,0,3,0
|
280 |
+
58,0,1,136,319,1,0,152,0,0,2,2,2,0
|
281 |
+
61,1,0,138,166,0,0,125,1,3.6,1,1,2,0
|
282 |
+
42,1,0,136,315,0,1,125,1,1.8,1,0,1,0
|
283 |
+
52,1,0,128,204,1,1,156,1,1,1,0,0,0
|
284 |
+
59,1,2,126,218,1,1,134,0,2.2,1,1,1,0
|
285 |
+
40,1,0,152,223,0,1,181,0,0,2,0,3,0
|
286 |
+
61,1,0,140,207,0,0,138,1,1.9,2,1,3,0
|
287 |
+
46,1,0,140,311,0,1,120,1,1.8,1,2,3,0
|
288 |
+
59,1,3,134,204,0,1,162,0,0.8,2,2,2,0
|
289 |
+
57,1,1,154,232,0,0,164,0,0,2,1,2,0
|
290 |
+
57,1,0,110,335,0,1,143,1,3,1,1,3,0
|
291 |
+
55,0,0,128,205,0,2,130,1,2,1,1,3,0
|
292 |
+
61,1,0,148,203,0,1,161,0,0,2,1,3,0
|
293 |
+
58,1,0,114,318,0,2,140,0,4.4,0,3,1,0
|
294 |
+
58,0,0,170,225,1,0,146,1,2.8,1,2,1,0
|
295 |
+
67,1,2,152,212,0,0,150,0,0.8,1,0,3,0
|
296 |
+
44,1,0,120,169,0,1,144,1,2.8,0,0,1,0
|
297 |
+
63,1,0,140,187,0,0,144,1,4,2,2,3,0
|
298 |
+
63,0,0,124,197,0,1,136,1,0,1,0,2,0
|
299 |
+
59,1,0,164,176,1,0,90,0,1,1,2,1,0
|
300 |
+
57,0,0,140,241,0,1,123,1,0.2,1,0,3,0
|
301 |
+
45,1,3,110,264,0,1,132,0,1.2,1,0,3,0
|
302 |
+
68,1,0,144,193,1,1,141,0,3.4,1,2,3,0
|
303 |
+
57,1,0,130,131,0,1,115,1,1.2,1,1,3,0
|
304 |
+
57,0,1,130,236,0,0,174,0,0,1,1,2,0
|
kcd.ipynb
ADDED
@@ -0,0 +1,1306 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
+
},
|
8 |
+
"kernelspec": {
|
9 |
+
"name": "python3",
|
10 |
+
"display_name": "Python 3"
|
11 |
+
},
|
12 |
+
"language_info": {
|
13 |
+
"name": "python"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
"cells": [
|
17 |
+
{
|
18 |
+
"cell_type": "markdown",
|
19 |
+
"source": [
|
20 |
+
"# Kidney Condition Detection"
|
21 |
+
],
|
22 |
+
"metadata": {
|
23 |
+
"id": "mWqGedZ2IHlm"
|
24 |
+
}
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"cell_type": "code",
|
28 |
+
"execution_count": 1,
|
29 |
+
"metadata": {
|
30 |
+
"id": "L96SNQ8HVI7m"
|
31 |
+
},
|
32 |
+
"outputs": [],
|
33 |
+
"source": [
|
34 |
+
"# imports\n",
|
35 |
+
"import tensorflow as tf\n",
|
36 |
+
"import pandas as pd\n",
|
37 |
+
"import numpy as np\n",
|
38 |
+
"import matplotlib.pyplot as plt\n",
|
39 |
+
"from sklearn.preprocessing import StandardScaler\n",
|
40 |
+
"from imblearn.over_sampling import RandomOverSampler\n",
|
41 |
+
"import seaborn as sns\n",
|
42 |
+
"from sklearn.model_selection import train_test_split"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"cell_type": "code",
|
47 |
+
"source": [
|
48 |
+
"# using drive to load our dataset\n",
|
49 |
+
"from google.colab import drive\n",
|
50 |
+
"drive.mount('/content/drive')"
|
51 |
+
],
|
52 |
+
"metadata": {
|
53 |
+
"colab": {
|
54 |
+
"base_uri": "https://localhost:8080/"
|
55 |
+
},
|
56 |
+
"id": "Ea3adROCVORJ",
|
57 |
+
"outputId": "9fcec8fc-24df-4307-8efe-ad0bf7967226"
|
58 |
+
},
|
59 |
+
"execution_count": 2,
|
60 |
+
"outputs": [
|
61 |
+
{
|
62 |
+
"output_type": "stream",
|
63 |
+
"name": "stdout",
|
64 |
+
"text": [
|
65 |
+
"Mounted at /content/drive\n"
|
66 |
+
]
|
67 |
+
}
|
68 |
+
]
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"cell_type": "code",
|
72 |
+
"source": [
|
73 |
+
"df = pd.read_csv(\"/content/drive/MyDrive/dataset/kidney_disease.csv\")\n",
|
74 |
+
"del df['id'],df['sg'],df['al'],df['su'],df['rbc'],df['pc'],df['pcc'],df['pcv'],df['ba'],df['sc'],df['dm'],df['cad'],df['pe']\n",
|
75 |
+
"df"
|
76 |
+
],
|
77 |
+
"metadata": {
|
78 |
+
"id": "puQFhXRM_inf",
|
79 |
+
"colab": {
|
80 |
+
"base_uri": "https://localhost:8080/",
|
81 |
+
"height": 423
|
82 |
+
},
|
83 |
+
"outputId": "8f6b8886-f61d-4b10-8eea-e1a38ecf8cc4"
|
84 |
+
},
|
85 |
+
"execution_count": 34,
|
86 |
+
"outputs": [
|
87 |
+
{
|
88 |
+
"output_type": "execute_result",
|
89 |
+
"data": {
|
90 |
+
"text/plain": [
|
91 |
+
" age bp bgr bu sod pot hemo wc rc htn appet ane \\\n",
|
92 |
+
"0 48.0 80.0 121.0 36.0 NaN NaN 15.4 7800 5.2 yes good no \n",
|
93 |
+
"1 7.0 50.0 NaN 18.0 NaN NaN 11.3 6000 NaN no good no \n",
|
94 |
+
"2 62.0 80.0 423.0 53.0 NaN NaN 9.6 7500 NaN no poor yes \n",
|
95 |
+
"3 48.0 70.0 117.0 56.0 111.0 2.5 11.2 6700 3.9 yes poor yes \n",
|
96 |
+
"4 51.0 80.0 106.0 26.0 NaN NaN 11.6 7300 4.6 no good no \n",
|
97 |
+
".. ... ... ... ... ... ... ... ... ... ... ... ... \n",
|
98 |
+
"395 55.0 80.0 140.0 49.0 150.0 4.9 15.7 6700 4.9 no good no \n",
|
99 |
+
"396 42.0 70.0 75.0 31.0 141.0 3.5 16.5 7800 6.2 no good no \n",
|
100 |
+
"397 12.0 80.0 100.0 26.0 137.0 4.4 15.8 6600 5.4 no good no \n",
|
101 |
+
"398 17.0 60.0 114.0 50.0 135.0 4.9 14.2 7200 5.9 no good no \n",
|
102 |
+
"399 58.0 80.0 131.0 18.0 141.0 3.5 15.8 6800 6.1 no good no \n",
|
103 |
+
"\n",
|
104 |
+
" classification \n",
|
105 |
+
"0 ckd \n",
|
106 |
+
"1 ckd \n",
|
107 |
+
"2 ckd \n",
|
108 |
+
"3 ckd \n",
|
109 |
+
"4 ckd \n",
|
110 |
+
".. ... \n",
|
111 |
+
"395 notckd \n",
|
112 |
+
"396 notckd \n",
|
113 |
+
"397 notckd \n",
|
114 |
+
"398 notckd \n",
|
115 |
+
"399 notckd \n",
|
116 |
+
"\n",
|
117 |
+
"[400 rows x 13 columns]"
|
118 |
+
],
|
119 |
+
"text/html": [
|
120 |
+
"\n",
|
121 |
+
" <div id=\"df-3cb82063-36b1-440a-b39d-b75134a51920\" class=\"colab-df-container\">\n",
|
122 |
+
" <div>\n",
|
123 |
+
"<style scoped>\n",
|
124 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
125 |
+
" vertical-align: middle;\n",
|
126 |
+
" }\n",
|
127 |
+
"\n",
|
128 |
+
" .dataframe tbody tr th {\n",
|
129 |
+
" vertical-align: top;\n",
|
130 |
+
" }\n",
|
131 |
+
"\n",
|
132 |
+
" .dataframe thead th {\n",
|
133 |
+
" text-align: right;\n",
|
134 |
+
" }\n",
|
135 |
+
"</style>\n",
|
136 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
137 |
+
" <thead>\n",
|
138 |
+
" <tr style=\"text-align: right;\">\n",
|
139 |
+
" <th></th>\n",
|
140 |
+
" <th>age</th>\n",
|
141 |
+
" <th>bp</th>\n",
|
142 |
+
" <th>bgr</th>\n",
|
143 |
+
" <th>bu</th>\n",
|
144 |
+
" <th>sod</th>\n",
|
145 |
+
" <th>pot</th>\n",
|
146 |
+
" <th>hemo</th>\n",
|
147 |
+
" <th>wc</th>\n",
|
148 |
+
" <th>rc</th>\n",
|
149 |
+
" <th>htn</th>\n",
|
150 |
+
" <th>appet</th>\n",
|
151 |
+
" <th>ane</th>\n",
|
152 |
+
" <th>classification</th>\n",
|
153 |
+
" </tr>\n",
|
154 |
+
" </thead>\n",
|
155 |
+
" <tbody>\n",
|
156 |
+
" <tr>\n",
|
157 |
+
" <th>0</th>\n",
|
158 |
+
" <td>48.0</td>\n",
|
159 |
+
" <td>80.0</td>\n",
|
160 |
+
" <td>121.0</td>\n",
|
161 |
+
" <td>36.0</td>\n",
|
162 |
+
" <td>NaN</td>\n",
|
163 |
+
" <td>NaN</td>\n",
|
164 |
+
" <td>15.4</td>\n",
|
165 |
+
" <td>7800</td>\n",
|
166 |
+
" <td>5.2</td>\n",
|
167 |
+
" <td>yes</td>\n",
|
168 |
+
" <td>good</td>\n",
|
169 |
+
" <td>no</td>\n",
|
170 |
+
" <td>ckd</td>\n",
|
171 |
+
" </tr>\n",
|
172 |
+
" <tr>\n",
|
173 |
+
" <th>1</th>\n",
|
174 |
+
" <td>7.0</td>\n",
|
175 |
+
" <td>50.0</td>\n",
|
176 |
+
" <td>NaN</td>\n",
|
177 |
+
" <td>18.0</td>\n",
|
178 |
+
" <td>NaN</td>\n",
|
179 |
+
" <td>NaN</td>\n",
|
180 |
+
" <td>11.3</td>\n",
|
181 |
+
" <td>6000</td>\n",
|
182 |
+
" <td>NaN</td>\n",
|
183 |
+
" <td>no</td>\n",
|
184 |
+
" <td>good</td>\n",
|
185 |
+
" <td>no</td>\n",
|
186 |
+
" <td>ckd</td>\n",
|
187 |
+
" </tr>\n",
|
188 |
+
" <tr>\n",
|
189 |
+
" <th>2</th>\n",
|
190 |
+
" <td>62.0</td>\n",
|
191 |
+
" <td>80.0</td>\n",
|
192 |
+
" <td>423.0</td>\n",
|
193 |
+
" <td>53.0</td>\n",
|
194 |
+
" <td>NaN</td>\n",
|
195 |
+
" <td>NaN</td>\n",
|
196 |
+
" <td>9.6</td>\n",
|
197 |
+
" <td>7500</td>\n",
|
198 |
+
" <td>NaN</td>\n",
|
199 |
+
" <td>no</td>\n",
|
200 |
+
" <td>poor</td>\n",
|
201 |
+
" <td>yes</td>\n",
|
202 |
+
" <td>ckd</td>\n",
|
203 |
+
" </tr>\n",
|
204 |
+
" <tr>\n",
|
205 |
+
" <th>3</th>\n",
|
206 |
+
" <td>48.0</td>\n",
|
207 |
+
" <td>70.0</td>\n",
|
208 |
+
" <td>117.0</td>\n",
|
209 |
+
" <td>56.0</td>\n",
|
210 |
+
" <td>111.0</td>\n",
|
211 |
+
" <td>2.5</td>\n",
|
212 |
+
" <td>11.2</td>\n",
|
213 |
+
" <td>6700</td>\n",
|
214 |
+
" <td>3.9</td>\n",
|
215 |
+
" <td>yes</td>\n",
|
216 |
+
" <td>poor</td>\n",
|
217 |
+
" <td>yes</td>\n",
|
218 |
+
" <td>ckd</td>\n",
|
219 |
+
" </tr>\n",
|
220 |
+
" <tr>\n",
|
221 |
+
" <th>4</th>\n",
|
222 |
+
" <td>51.0</td>\n",
|
223 |
+
" <td>80.0</td>\n",
|
224 |
+
" <td>106.0</td>\n",
|
225 |
+
" <td>26.0</td>\n",
|
226 |
+
" <td>NaN</td>\n",
|
227 |
+
" <td>NaN</td>\n",
|
228 |
+
" <td>11.6</td>\n",
|
229 |
+
" <td>7300</td>\n",
|
230 |
+
" <td>4.6</td>\n",
|
231 |
+
" <td>no</td>\n",
|
232 |
+
" <td>good</td>\n",
|
233 |
+
" <td>no</td>\n",
|
234 |
+
" <td>ckd</td>\n",
|
235 |
+
" </tr>\n",
|
236 |
+
" <tr>\n",
|
237 |
+
" <th>...</th>\n",
|
238 |
+
" <td>...</td>\n",
|
239 |
+
" <td>...</td>\n",
|
240 |
+
" <td>...</td>\n",
|
241 |
+
" <td>...</td>\n",
|
242 |
+
" <td>...</td>\n",
|
243 |
+
" <td>...</td>\n",
|
244 |
+
" <td>...</td>\n",
|
245 |
+
" <td>...</td>\n",
|
246 |
+
" <td>...</td>\n",
|
247 |
+
" <td>...</td>\n",
|
248 |
+
" <td>...</td>\n",
|
249 |
+
" <td>...</td>\n",
|
250 |
+
" <td>...</td>\n",
|
251 |
+
" </tr>\n",
|
252 |
+
" <tr>\n",
|
253 |
+
" <th>395</th>\n",
|
254 |
+
" <td>55.0</td>\n",
|
255 |
+
" <td>80.0</td>\n",
|
256 |
+
" <td>140.0</td>\n",
|
257 |
+
" <td>49.0</td>\n",
|
258 |
+
" <td>150.0</td>\n",
|
259 |
+
" <td>4.9</td>\n",
|
260 |
+
" <td>15.7</td>\n",
|
261 |
+
" <td>6700</td>\n",
|
262 |
+
" <td>4.9</td>\n",
|
263 |
+
" <td>no</td>\n",
|
264 |
+
" <td>good</td>\n",
|
265 |
+
" <td>no</td>\n",
|
266 |
+
" <td>notckd</td>\n",
|
267 |
+
" </tr>\n",
|
268 |
+
" <tr>\n",
|
269 |
+
" <th>396</th>\n",
|
270 |
+
" <td>42.0</td>\n",
|
271 |
+
" <td>70.0</td>\n",
|
272 |
+
" <td>75.0</td>\n",
|
273 |
+
" <td>31.0</td>\n",
|
274 |
+
" <td>141.0</td>\n",
|
275 |
+
" <td>3.5</td>\n",
|
276 |
+
" <td>16.5</td>\n",
|
277 |
+
" <td>7800</td>\n",
|
278 |
+
" <td>6.2</td>\n",
|
279 |
+
" <td>no</td>\n",
|
280 |
+
" <td>good</td>\n",
|
281 |
+
" <td>no</td>\n",
|
282 |
+
" <td>notckd</td>\n",
|
283 |
+
" </tr>\n",
|
284 |
+
" <tr>\n",
|
285 |
+
" <th>397</th>\n",
|
286 |
+
" <td>12.0</td>\n",
|
287 |
+
" <td>80.0</td>\n",
|
288 |
+
" <td>100.0</td>\n",
|
289 |
+
" <td>26.0</td>\n",
|
290 |
+
" <td>137.0</td>\n",
|
291 |
+
" <td>4.4</td>\n",
|
292 |
+
" <td>15.8</td>\n",
|
293 |
+
" <td>6600</td>\n",
|
294 |
+
" <td>5.4</td>\n",
|
295 |
+
" <td>no</td>\n",
|
296 |
+
" <td>good</td>\n",
|
297 |
+
" <td>no</td>\n",
|
298 |
+
" <td>notckd</td>\n",
|
299 |
+
" </tr>\n",
|
300 |
+
" <tr>\n",
|
301 |
+
" <th>398</th>\n",
|
302 |
+
" <td>17.0</td>\n",
|
303 |
+
" <td>60.0</td>\n",
|
304 |
+
" <td>114.0</td>\n",
|
305 |
+
" <td>50.0</td>\n",
|
306 |
+
" <td>135.0</td>\n",
|
307 |
+
" <td>4.9</td>\n",
|
308 |
+
" <td>14.2</td>\n",
|
309 |
+
" <td>7200</td>\n",
|
310 |
+
" <td>5.9</td>\n",
|
311 |
+
" <td>no</td>\n",
|
312 |
+
" <td>good</td>\n",
|
313 |
+
" <td>no</td>\n",
|
314 |
+
" <td>notckd</td>\n",
|
315 |
+
" </tr>\n",
|
316 |
+
" <tr>\n",
|
317 |
+
" <th>399</th>\n",
|
318 |
+
" <td>58.0</td>\n",
|
319 |
+
" <td>80.0</td>\n",
|
320 |
+
" <td>131.0</td>\n",
|
321 |
+
" <td>18.0</td>\n",
|
322 |
+
" <td>141.0</td>\n",
|
323 |
+
" <td>3.5</td>\n",
|
324 |
+
" <td>15.8</td>\n",
|
325 |
+
" <td>6800</td>\n",
|
326 |
+
" <td>6.1</td>\n",
|
327 |
+
" <td>no</td>\n",
|
328 |
+
" <td>good</td>\n",
|
329 |
+
" <td>no</td>\n",
|
330 |
+
" <td>notckd</td>\n",
|
331 |
+
" </tr>\n",
|
332 |
+
" </tbody>\n",
|
333 |
+
"</table>\n",
|
334 |
+
"<p>400 rows × 13 columns</p>\n",
|
335 |
+
"</div>\n",
|
336 |
+
" <div class=\"colab-df-buttons\">\n",
|
337 |
+
"\n",
|
338 |
+
" <div class=\"colab-df-container\">\n",
|
339 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-3cb82063-36b1-440a-b39d-b75134a51920')\"\n",
|
340 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
341 |
+
" style=\"display:none;\">\n",
|
342 |
+
"\n",
|
343 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
344 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
345 |
+
" </svg>\n",
|
346 |
+
" </button>\n",
|
347 |
+
"\n",
|
348 |
+
" <style>\n",
|
349 |
+
" .colab-df-container {\n",
|
350 |
+
" display:flex;\n",
|
351 |
+
" gap: 12px;\n",
|
352 |
+
" }\n",
|
353 |
+
"\n",
|
354 |
+
" .colab-df-convert {\n",
|
355 |
+
" background-color: #E8F0FE;\n",
|
356 |
+
" border: none;\n",
|
357 |
+
" border-radius: 50%;\n",
|
358 |
+
" cursor: pointer;\n",
|
359 |
+
" display: none;\n",
|
360 |
+
" fill: #1967D2;\n",
|
361 |
+
" height: 32px;\n",
|
362 |
+
" padding: 0 0 0 0;\n",
|
363 |
+
" width: 32px;\n",
|
364 |
+
" }\n",
|
365 |
+
"\n",
|
366 |
+
" .colab-df-convert:hover {\n",
|
367 |
+
" background-color: #E2EBFA;\n",
|
368 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
369 |
+
" fill: #174EA6;\n",
|
370 |
+
" }\n",
|
371 |
+
"\n",
|
372 |
+
" .colab-df-buttons div {\n",
|
373 |
+
" margin-bottom: 4px;\n",
|
374 |
+
" }\n",
|
375 |
+
"\n",
|
376 |
+
" [theme=dark] .colab-df-convert {\n",
|
377 |
+
" background-color: #3B4455;\n",
|
378 |
+
" fill: #D2E3FC;\n",
|
379 |
+
" }\n",
|
380 |
+
"\n",
|
381 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
382 |
+
" background-color: #434B5C;\n",
|
383 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
384 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
385 |
+
" fill: #FFFFFF;\n",
|
386 |
+
" }\n",
|
387 |
+
" </style>\n",
|
388 |
+
"\n",
|
389 |
+
" <script>\n",
|
390 |
+
" const buttonEl =\n",
|
391 |
+
" document.querySelector('#df-3cb82063-36b1-440a-b39d-b75134a51920 button.colab-df-convert');\n",
|
392 |
+
" buttonEl.style.display =\n",
|
393 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
394 |
+
"\n",
|
395 |
+
" async function convertToInteractive(key) {\n",
|
396 |
+
" const element = document.querySelector('#df-3cb82063-36b1-440a-b39d-b75134a51920');\n",
|
397 |
+
" const dataTable =\n",
|
398 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
399 |
+
" [key], {});\n",
|
400 |
+
" if (!dataTable) return;\n",
|
401 |
+
"\n",
|
402 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
403 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
404 |
+
" + ' to learn more about interactive tables.';\n",
|
405 |
+
" element.innerHTML = '';\n",
|
406 |
+
" dataTable['output_type'] = 'display_data';\n",
|
407 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
408 |
+
" const docLink = document.createElement('div');\n",
|
409 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
410 |
+
" element.appendChild(docLink);\n",
|
411 |
+
" }\n",
|
412 |
+
" </script>\n",
|
413 |
+
" </div>\n",
|
414 |
+
"\n",
|
415 |
+
"\n",
|
416 |
+
"<div id=\"df-ee17b60b-5833-463e-b4f1-0a39ea00f855\">\n",
|
417 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-ee17b60b-5833-463e-b4f1-0a39ea00f855')\"\n",
|
418 |
+
" title=\"Suggest charts\"\n",
|
419 |
+
" style=\"display:none;\">\n",
|
420 |
+
"\n",
|
421 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
422 |
+
" width=\"24px\">\n",
|
423 |
+
" <g>\n",
|
424 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
425 |
+
" </g>\n",
|
426 |
+
"</svg>\n",
|
427 |
+
" </button>\n",
|
428 |
+
"\n",
|
429 |
+
"<style>\n",
|
430 |
+
" .colab-df-quickchart {\n",
|
431 |
+
" --bg-color: #E8F0FE;\n",
|
432 |
+
" --fill-color: #1967D2;\n",
|
433 |
+
" --hover-bg-color: #E2EBFA;\n",
|
434 |
+
" --hover-fill-color: #174EA6;\n",
|
435 |
+
" --disabled-fill-color: #AAA;\n",
|
436 |
+
" --disabled-bg-color: #DDD;\n",
|
437 |
+
" }\n",
|
438 |
+
"\n",
|
439 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
440 |
+
" --bg-color: #3B4455;\n",
|
441 |
+
" --fill-color: #D2E3FC;\n",
|
442 |
+
" --hover-bg-color: #434B5C;\n",
|
443 |
+
" --hover-fill-color: #FFFFFF;\n",
|
444 |
+
" --disabled-bg-color: #3B4455;\n",
|
445 |
+
" --disabled-fill-color: #666;\n",
|
446 |
+
" }\n",
|
447 |
+
"\n",
|
448 |
+
" .colab-df-quickchart {\n",
|
449 |
+
" background-color: var(--bg-color);\n",
|
450 |
+
" border: none;\n",
|
451 |
+
" border-radius: 50%;\n",
|
452 |
+
" cursor: pointer;\n",
|
453 |
+
" display: none;\n",
|
454 |
+
" fill: var(--fill-color);\n",
|
455 |
+
" height: 32px;\n",
|
456 |
+
" padding: 0;\n",
|
457 |
+
" width: 32px;\n",
|
458 |
+
" }\n",
|
459 |
+
"\n",
|
460 |
+
" .colab-df-quickchart:hover {\n",
|
461 |
+
" background-color: var(--hover-bg-color);\n",
|
462 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
463 |
+
" fill: var(--button-hover-fill-color);\n",
|
464 |
+
" }\n",
|
465 |
+
"\n",
|
466 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
467 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
468 |
+
" background-color: var(--disabled-bg-color);\n",
|
469 |
+
" fill: var(--disabled-fill-color);\n",
|
470 |
+
" box-shadow: none;\n",
|
471 |
+
" }\n",
|
472 |
+
"\n",
|
473 |
+
" .colab-df-spinner {\n",
|
474 |
+
" border: 2px solid var(--fill-color);\n",
|
475 |
+
" border-color: transparent;\n",
|
476 |
+
" border-bottom-color: var(--fill-color);\n",
|
477 |
+
" animation:\n",
|
478 |
+
" spin 1s steps(1) infinite;\n",
|
479 |
+
" }\n",
|
480 |
+
"\n",
|
481 |
+
" @keyframes spin {\n",
|
482 |
+
" 0% {\n",
|
483 |
+
" border-color: transparent;\n",
|
484 |
+
" border-bottom-color: var(--fill-color);\n",
|
485 |
+
" border-left-color: var(--fill-color);\n",
|
486 |
+
" }\n",
|
487 |
+
" 20% {\n",
|
488 |
+
" border-color: transparent;\n",
|
489 |
+
" border-left-color: var(--fill-color);\n",
|
490 |
+
" border-top-color: var(--fill-color);\n",
|
491 |
+
" }\n",
|
492 |
+
" 30% {\n",
|
493 |
+
" border-color: transparent;\n",
|
494 |
+
" border-left-color: var(--fill-color);\n",
|
495 |
+
" border-top-color: var(--fill-color);\n",
|
496 |
+
" border-right-color: var(--fill-color);\n",
|
497 |
+
" }\n",
|
498 |
+
" 40% {\n",
|
499 |
+
" border-color: transparent;\n",
|
500 |
+
" border-right-color: var(--fill-color);\n",
|
501 |
+
" border-top-color: var(--fill-color);\n",
|
502 |
+
" }\n",
|
503 |
+
" 60% {\n",
|
504 |
+
" border-color: transparent;\n",
|
505 |
+
" border-right-color: var(--fill-color);\n",
|
506 |
+
" }\n",
|
507 |
+
" 80% {\n",
|
508 |
+
" border-color: transparent;\n",
|
509 |
+
" border-right-color: var(--fill-color);\n",
|
510 |
+
" border-bottom-color: var(--fill-color);\n",
|
511 |
+
" }\n",
|
512 |
+
" 90% {\n",
|
513 |
+
" border-color: transparent;\n",
|
514 |
+
" border-bottom-color: var(--fill-color);\n",
|
515 |
+
" }\n",
|
516 |
+
" }\n",
|
517 |
+
"</style>\n",
|
518 |
+
"\n",
|
519 |
+
" <script>\n",
|
520 |
+
" async function quickchart(key) {\n",
|
521 |
+
" const quickchartButtonEl =\n",
|
522 |
+
" document.querySelector('#' + key + ' button');\n",
|
523 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
524 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
525 |
+
" try {\n",
|
526 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
527 |
+
" 'suggestCharts', [key], {});\n",
|
528 |
+
" } catch (error) {\n",
|
529 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
530 |
+
" }\n",
|
531 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
532 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
533 |
+
" }\n",
|
534 |
+
" (() => {\n",
|
535 |
+
" let quickchartButtonEl =\n",
|
536 |
+
" document.querySelector('#df-ee17b60b-5833-463e-b4f1-0a39ea00f855 button');\n",
|
537 |
+
" quickchartButtonEl.style.display =\n",
|
538 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
539 |
+
" })();\n",
|
540 |
+
" </script>\n",
|
541 |
+
"</div>\n",
|
542 |
+
"\n",
|
543 |
+
" <div id=\"id_6406ffff-5542-4cc0-95b9-5452281b037d\">\n",
|
544 |
+
" <style>\n",
|
545 |
+
" .colab-df-generate {\n",
|
546 |
+
" background-color: #E8F0FE;\n",
|
547 |
+
" border: none;\n",
|
548 |
+
" border-radius: 50%;\n",
|
549 |
+
" cursor: pointer;\n",
|
550 |
+
" display: none;\n",
|
551 |
+
" fill: #1967D2;\n",
|
552 |
+
" height: 32px;\n",
|
553 |
+
" padding: 0 0 0 0;\n",
|
554 |
+
" width: 32px;\n",
|
555 |
+
" }\n",
|
556 |
+
"\n",
|
557 |
+
" .colab-df-generate:hover {\n",
|
558 |
+
" background-color: #E2EBFA;\n",
|
559 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
560 |
+
" fill: #174EA6;\n",
|
561 |
+
" }\n",
|
562 |
+
"\n",
|
563 |
+
" [theme=dark] .colab-df-generate {\n",
|
564 |
+
" background-color: #3B4455;\n",
|
565 |
+
" fill: #D2E3FC;\n",
|
566 |
+
" }\n",
|
567 |
+
"\n",
|
568 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
569 |
+
" background-color: #434B5C;\n",
|
570 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
571 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
572 |
+
" fill: #FFFFFF;\n",
|
573 |
+
" }\n",
|
574 |
+
" </style>\n",
|
575 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
576 |
+
" title=\"Generate code using this dataframe.\"\n",
|
577 |
+
" style=\"display:none;\">\n",
|
578 |
+
"\n",
|
579 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
580 |
+
" width=\"24px\">\n",
|
581 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
582 |
+
" </svg>\n",
|
583 |
+
" </button>\n",
|
584 |
+
" <script>\n",
|
585 |
+
" (() => {\n",
|
586 |
+
" const buttonEl =\n",
|
587 |
+
" document.querySelector('#id_6406ffff-5542-4cc0-95b9-5452281b037d button.colab-df-generate');\n",
|
588 |
+
" buttonEl.style.display =\n",
|
589 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
590 |
+
"\n",
|
591 |
+
" buttonEl.onclick = () => {\n",
|
592 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
593 |
+
" }\n",
|
594 |
+
" })();\n",
|
595 |
+
" </script>\n",
|
596 |
+
" </div>\n",
|
597 |
+
"\n",
|
598 |
+
" </div>\n",
|
599 |
+
" </div>\n"
|
600 |
+
],
|
601 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
602 |
+
"type": "dataframe",
|
603 |
+
"variable_name": "df",
|
604 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 400,\n \"fields\": [\n {\n \"column\": \"age\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 17.16971408926224,\n \"min\": 2.0,\n \"max\": 90.0,\n \"num_unique_values\": 76,\n \"samples\": [\n 60.0,\n 64.0,\n 63.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bp\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 13.68363749352526,\n \"min\": 50.0,\n \"max\": 180.0,\n \"num_unique_values\": 10,\n \"samples\": [\n 180.0,\n 50.0,\n 60.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bgr\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 79.28171423511773,\n \"min\": 22.0,\n \"max\": 490.0,\n \"num_unique_values\": 146,\n \"samples\": [\n 146.0,\n 273.0,\n 140.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bu\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 50.50300584922251,\n \"min\": 1.5,\n \"max\": 391.0,\n \"num_unique_values\": 118,\n \"samples\": [\n 48.0,\n 76.0,\n 26.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"sod\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 10.40875205179878,\n \"min\": 4.5,\n \"max\": 163.0,\n \"num_unique_values\": 34,\n \"samples\": [\n 133.0,\n 137.0,\n 124.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"pot\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 3.193904176556695,\n \"min\": 2.5,\n \"max\": 47.0,\n \"num_unique_values\": 40,\n \"samples\": [\n 6.6,\n 5.9,\n 4.7\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"hemo\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 2.9125866088267642,\n \"min\": 3.1,\n \"max\": 17.8,\n \"num_unique_values\": 115,\n \"samples\": [\n 6.3,\n 11.6,\n 4.8\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"wc\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 92,\n \"samples\": [\n \"12500\",\n \"6400\",\n \"5000\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"rc\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 49,\n \"samples\": [\n \"3.6\",\n \"6.4\",\n \"5.9\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"htn\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 2,\n \"samples\": [\n \"no\",\n \"yes\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"appet\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 2,\n \"samples\": [\n \"poor\",\n \"good\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ane\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 2,\n \"samples\": [\n \"yes\",\n \"no\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"classification\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 3,\n \"samples\": [\n \"ckd\",\n \"ckd\\t\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
605 |
+
}
|
606 |
+
},
|
607 |
+
"metadata": {},
|
608 |
+
"execution_count": 34
|
609 |
+
}
|
610 |
+
]
|
611 |
+
},
|
612 |
+
{
|
613 |
+
"cell_type": "code",
|
614 |
+
"source": [
|
615 |
+
"df['htn']=(df['htn']=='yes').astype(int)\n",
|
616 |
+
"df['appet']=(df['appet']=='good').astype(int)\n",
|
617 |
+
"df['ane']=(df['ane']=='yes').astype(int)\n",
|
618 |
+
"df['classification']=(df['classification']=='ckd').astype(int)\n"
|
619 |
+
],
|
620 |
+
"metadata": {
|
621 |
+
"id": "Rf9xpgMNEG3y"
|
622 |
+
},
|
623 |
+
"execution_count": 35,
|
624 |
+
"outputs": []
|
625 |
+
},
|
626 |
+
{
|
627 |
+
"cell_type": "code",
|
628 |
+
"source": [
|
629 |
+
"df=df.fillna(0)"
|
630 |
+
],
|
631 |
+
"metadata": {
|
632 |
+
"id": "V5Eelp9zFbUV"
|
633 |
+
},
|
634 |
+
"execution_count": 39,
|
635 |
+
"outputs": []
|
636 |
+
},
|
637 |
+
{
|
638 |
+
"cell_type": "code",
|
639 |
+
"source": [
|
640 |
+
"df=df.drop([df.index[76],df.index[133],df.index[162],df.index[185]])"
|
641 |
+
],
|
642 |
+
"metadata": {
|
643 |
+
"id": "u96jEKrBHH0G"
|
644 |
+
},
|
645 |
+
"execution_count": 40,
|
646 |
+
"outputs": []
|
647 |
+
},
|
648 |
+
{
|
649 |
+
"cell_type": "code",
|
650 |
+
"source": [
|
651 |
+
"df"
|
652 |
+
],
|
653 |
+
"metadata": {
|
654 |
+
"colab": {
|
655 |
+
"base_uri": "https://localhost:8080/",
|
656 |
+
"height": 423
|
657 |
+
},
|
658 |
+
"id": "B4SayP5qHgwp",
|
659 |
+
"outputId": "8b5af7c5-3834-4bdc-b693-1e7e8f2cb8d9"
|
660 |
+
},
|
661 |
+
"execution_count": 41,
|
662 |
+
"outputs": [
|
663 |
+
{
|
664 |
+
"output_type": "execute_result",
|
665 |
+
"data": {
|
666 |
+
"text/plain": [
|
667 |
+
" age bp bgr bu sod pot hemo wc rc htn appet ane \\\n",
|
668 |
+
"0 48.0 80.0 121.0 36.0 0.0 0.0 15.4 7800 5.2 1 1 0 \n",
|
669 |
+
"1 7.0 50.0 0.0 18.0 0.0 0.0 11.3 6000 0 0 1 0 \n",
|
670 |
+
"2 62.0 80.0 423.0 53.0 0.0 0.0 9.6 7500 0 0 0 1 \n",
|
671 |
+
"3 48.0 70.0 117.0 56.0 111.0 2.5 11.2 6700 3.9 1 0 1 \n",
|
672 |
+
"4 51.0 80.0 106.0 26.0 0.0 0.0 11.6 7300 4.6 0 1 0 \n",
|
673 |
+
".. ... ... ... ... ... ... ... ... ... ... ... ... \n",
|
674 |
+
"395 55.0 80.0 140.0 49.0 150.0 4.9 15.7 6700 4.9 0 1 0 \n",
|
675 |
+
"396 42.0 70.0 75.0 31.0 141.0 3.5 16.5 7800 6.2 0 1 0 \n",
|
676 |
+
"397 12.0 80.0 100.0 26.0 137.0 4.4 15.8 6600 5.4 0 1 0 \n",
|
677 |
+
"398 17.0 60.0 114.0 50.0 135.0 4.9 14.2 7200 5.9 0 1 0 \n",
|
678 |
+
"399 58.0 80.0 131.0 18.0 141.0 3.5 15.8 6800 6.1 0 1 0 \n",
|
679 |
+
"\n",
|
680 |
+
" classification \n",
|
681 |
+
"0 1 \n",
|
682 |
+
"1 1 \n",
|
683 |
+
"2 1 \n",
|
684 |
+
"3 1 \n",
|
685 |
+
"4 1 \n",
|
686 |
+
".. ... \n",
|
687 |
+
"395 0 \n",
|
688 |
+
"396 0 \n",
|
689 |
+
"397 0 \n",
|
690 |
+
"398 0 \n",
|
691 |
+
"399 0 \n",
|
692 |
+
"\n",
|
693 |
+
"[392 rows x 13 columns]"
|
694 |
+
],
|
695 |
+
"text/html": [
|
696 |
+
"\n",
|
697 |
+
" <div id=\"df-eae2b145-070f-4b07-b91d-171b0ab53ae5\" class=\"colab-df-container\">\n",
|
698 |
+
" <div>\n",
|
699 |
+
"<style scoped>\n",
|
700 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
701 |
+
" vertical-align: middle;\n",
|
702 |
+
" }\n",
|
703 |
+
"\n",
|
704 |
+
" .dataframe tbody tr th {\n",
|
705 |
+
" vertical-align: top;\n",
|
706 |
+
" }\n",
|
707 |
+
"\n",
|
708 |
+
" .dataframe thead th {\n",
|
709 |
+
" text-align: right;\n",
|
710 |
+
" }\n",
|
711 |
+
"</style>\n",
|
712 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
713 |
+
" <thead>\n",
|
714 |
+
" <tr style=\"text-align: right;\">\n",
|
715 |
+
" <th></th>\n",
|
716 |
+
" <th>age</th>\n",
|
717 |
+
" <th>bp</th>\n",
|
718 |
+
" <th>bgr</th>\n",
|
719 |
+
" <th>bu</th>\n",
|
720 |
+
" <th>sod</th>\n",
|
721 |
+
" <th>pot</th>\n",
|
722 |
+
" <th>hemo</th>\n",
|
723 |
+
" <th>wc</th>\n",
|
724 |
+
" <th>rc</th>\n",
|
725 |
+
" <th>htn</th>\n",
|
726 |
+
" <th>appet</th>\n",
|
727 |
+
" <th>ane</th>\n",
|
728 |
+
" <th>classification</th>\n",
|
729 |
+
" </tr>\n",
|
730 |
+
" </thead>\n",
|
731 |
+
" <tbody>\n",
|
732 |
+
" <tr>\n",
|
733 |
+
" <th>0</th>\n",
|
734 |
+
" <td>48.0</td>\n",
|
735 |
+
" <td>80.0</td>\n",
|
736 |
+
" <td>121.0</td>\n",
|
737 |
+
" <td>36.0</td>\n",
|
738 |
+
" <td>0.0</td>\n",
|
739 |
+
" <td>0.0</td>\n",
|
740 |
+
" <td>15.4</td>\n",
|
741 |
+
" <td>7800</td>\n",
|
742 |
+
" <td>5.2</td>\n",
|
743 |
+
" <td>1</td>\n",
|
744 |
+
" <td>1</td>\n",
|
745 |
+
" <td>0</td>\n",
|
746 |
+
" <td>1</td>\n",
|
747 |
+
" </tr>\n",
|
748 |
+
" <tr>\n",
|
749 |
+
" <th>1</th>\n",
|
750 |
+
" <td>7.0</td>\n",
|
751 |
+
" <td>50.0</td>\n",
|
752 |
+
" <td>0.0</td>\n",
|
753 |
+
" <td>18.0</td>\n",
|
754 |
+
" <td>0.0</td>\n",
|
755 |
+
" <td>0.0</td>\n",
|
756 |
+
" <td>11.3</td>\n",
|
757 |
+
" <td>6000</td>\n",
|
758 |
+
" <td>0</td>\n",
|
759 |
+
" <td>0</td>\n",
|
760 |
+
" <td>1</td>\n",
|
761 |
+
" <td>0</td>\n",
|
762 |
+
" <td>1</td>\n",
|
763 |
+
" </tr>\n",
|
764 |
+
" <tr>\n",
|
765 |
+
" <th>2</th>\n",
|
766 |
+
" <td>62.0</td>\n",
|
767 |
+
" <td>80.0</td>\n",
|
768 |
+
" <td>423.0</td>\n",
|
769 |
+
" <td>53.0</td>\n",
|
770 |
+
" <td>0.0</td>\n",
|
771 |
+
" <td>0.0</td>\n",
|
772 |
+
" <td>9.6</td>\n",
|
773 |
+
" <td>7500</td>\n",
|
774 |
+
" <td>0</td>\n",
|
775 |
+
" <td>0</td>\n",
|
776 |
+
" <td>0</td>\n",
|
777 |
+
" <td>1</td>\n",
|
778 |
+
" <td>1</td>\n",
|
779 |
+
" </tr>\n",
|
780 |
+
" <tr>\n",
|
781 |
+
" <th>3</th>\n",
|
782 |
+
" <td>48.0</td>\n",
|
783 |
+
" <td>70.0</td>\n",
|
784 |
+
" <td>117.0</td>\n",
|
785 |
+
" <td>56.0</td>\n",
|
786 |
+
" <td>111.0</td>\n",
|
787 |
+
" <td>2.5</td>\n",
|
788 |
+
" <td>11.2</td>\n",
|
789 |
+
" <td>6700</td>\n",
|
790 |
+
" <td>3.9</td>\n",
|
791 |
+
" <td>1</td>\n",
|
792 |
+
" <td>0</td>\n",
|
793 |
+
" <td>1</td>\n",
|
794 |
+
" <td>1</td>\n",
|
795 |
+
" </tr>\n",
|
796 |
+
" <tr>\n",
|
797 |
+
" <th>4</th>\n",
|
798 |
+
" <td>51.0</td>\n",
|
799 |
+
" <td>80.0</td>\n",
|
800 |
+
" <td>106.0</td>\n",
|
801 |
+
" <td>26.0</td>\n",
|
802 |
+
" <td>0.0</td>\n",
|
803 |
+
" <td>0.0</td>\n",
|
804 |
+
" <td>11.6</td>\n",
|
805 |
+
" <td>7300</td>\n",
|
806 |
+
" <td>4.6</td>\n",
|
807 |
+
" <td>0</td>\n",
|
808 |
+
" <td>1</td>\n",
|
809 |
+
" <td>0</td>\n",
|
810 |
+
" <td>1</td>\n",
|
811 |
+
" </tr>\n",
|
812 |
+
" <tr>\n",
|
813 |
+
" <th>...</th>\n",
|
814 |
+
" <td>...</td>\n",
|
815 |
+
" <td>...</td>\n",
|
816 |
+
" <td>...</td>\n",
|
817 |
+
" <td>...</td>\n",
|
818 |
+
" <td>...</td>\n",
|
819 |
+
" <td>...</td>\n",
|
820 |
+
" <td>...</td>\n",
|
821 |
+
" <td>...</td>\n",
|
822 |
+
" <td>...</td>\n",
|
823 |
+
" <td>...</td>\n",
|
824 |
+
" <td>...</td>\n",
|
825 |
+
" <td>...</td>\n",
|
826 |
+
" <td>...</td>\n",
|
827 |
+
" </tr>\n",
|
828 |
+
" <tr>\n",
|
829 |
+
" <th>395</th>\n",
|
830 |
+
" <td>55.0</td>\n",
|
831 |
+
" <td>80.0</td>\n",
|
832 |
+
" <td>140.0</td>\n",
|
833 |
+
" <td>49.0</td>\n",
|
834 |
+
" <td>150.0</td>\n",
|
835 |
+
" <td>4.9</td>\n",
|
836 |
+
" <td>15.7</td>\n",
|
837 |
+
" <td>6700</td>\n",
|
838 |
+
" <td>4.9</td>\n",
|
839 |
+
" <td>0</td>\n",
|
840 |
+
" <td>1</td>\n",
|
841 |
+
" <td>0</td>\n",
|
842 |
+
" <td>0</td>\n",
|
843 |
+
" </tr>\n",
|
844 |
+
" <tr>\n",
|
845 |
+
" <th>396</th>\n",
|
846 |
+
" <td>42.0</td>\n",
|
847 |
+
" <td>70.0</td>\n",
|
848 |
+
" <td>75.0</td>\n",
|
849 |
+
" <td>31.0</td>\n",
|
850 |
+
" <td>141.0</td>\n",
|
851 |
+
" <td>3.5</td>\n",
|
852 |
+
" <td>16.5</td>\n",
|
853 |
+
" <td>7800</td>\n",
|
854 |
+
" <td>6.2</td>\n",
|
855 |
+
" <td>0</td>\n",
|
856 |
+
" <td>1</td>\n",
|
857 |
+
" <td>0</td>\n",
|
858 |
+
" <td>0</td>\n",
|
859 |
+
" </tr>\n",
|
860 |
+
" <tr>\n",
|
861 |
+
" <th>397</th>\n",
|
862 |
+
" <td>12.0</td>\n",
|
863 |
+
" <td>80.0</td>\n",
|
864 |
+
" <td>100.0</td>\n",
|
865 |
+
" <td>26.0</td>\n",
|
866 |
+
" <td>137.0</td>\n",
|
867 |
+
" <td>4.4</td>\n",
|
868 |
+
" <td>15.8</td>\n",
|
869 |
+
" <td>6600</td>\n",
|
870 |
+
" <td>5.4</td>\n",
|
871 |
+
" <td>0</td>\n",
|
872 |
+
" <td>1</td>\n",
|
873 |
+
" <td>0</td>\n",
|
874 |
+
" <td>0</td>\n",
|
875 |
+
" </tr>\n",
|
876 |
+
" <tr>\n",
|
877 |
+
" <th>398</th>\n",
|
878 |
+
" <td>17.0</td>\n",
|
879 |
+
" <td>60.0</td>\n",
|
880 |
+
" <td>114.0</td>\n",
|
881 |
+
" <td>50.0</td>\n",
|
882 |
+
" <td>135.0</td>\n",
|
883 |
+
" <td>4.9</td>\n",
|
884 |
+
" <td>14.2</td>\n",
|
885 |
+
" <td>7200</td>\n",
|
886 |
+
" <td>5.9</td>\n",
|
887 |
+
" <td>0</td>\n",
|
888 |
+
" <td>1</td>\n",
|
889 |
+
" <td>0</td>\n",
|
890 |
+
" <td>0</td>\n",
|
891 |
+
" </tr>\n",
|
892 |
+
" <tr>\n",
|
893 |
+
" <th>399</th>\n",
|
894 |
+
" <td>58.0</td>\n",
|
895 |
+
" <td>80.0</td>\n",
|
896 |
+
" <td>131.0</td>\n",
|
897 |
+
" <td>18.0</td>\n",
|
898 |
+
" <td>141.0</td>\n",
|
899 |
+
" <td>3.5</td>\n",
|
900 |
+
" <td>15.8</td>\n",
|
901 |
+
" <td>6800</td>\n",
|
902 |
+
" <td>6.1</td>\n",
|
903 |
+
" <td>0</td>\n",
|
904 |
+
" <td>1</td>\n",
|
905 |
+
" <td>0</td>\n",
|
906 |
+
" <td>0</td>\n",
|
907 |
+
" </tr>\n",
|
908 |
+
" </tbody>\n",
|
909 |
+
"</table>\n",
|
910 |
+
"<p>392 rows × 13 columns</p>\n",
|
911 |
+
"</div>\n",
|
912 |
+
" <div class=\"colab-df-buttons\">\n",
|
913 |
+
"\n",
|
914 |
+
" <div class=\"colab-df-container\">\n",
|
915 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-eae2b145-070f-4b07-b91d-171b0ab53ae5')\"\n",
|
916 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
917 |
+
" style=\"display:none;\">\n",
|
918 |
+
"\n",
|
919 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
920 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
921 |
+
" </svg>\n",
|
922 |
+
" </button>\n",
|
923 |
+
"\n",
|
924 |
+
" <style>\n",
|
925 |
+
" .colab-df-container {\n",
|
926 |
+
" display:flex;\n",
|
927 |
+
" gap: 12px;\n",
|
928 |
+
" }\n",
|
929 |
+
"\n",
|
930 |
+
" .colab-df-convert {\n",
|
931 |
+
" background-color: #E8F0FE;\n",
|
932 |
+
" border: none;\n",
|
933 |
+
" border-radius: 50%;\n",
|
934 |
+
" cursor: pointer;\n",
|
935 |
+
" display: none;\n",
|
936 |
+
" fill: #1967D2;\n",
|
937 |
+
" height: 32px;\n",
|
938 |
+
" padding: 0 0 0 0;\n",
|
939 |
+
" width: 32px;\n",
|
940 |
+
" }\n",
|
941 |
+
"\n",
|
942 |
+
" .colab-df-convert:hover {\n",
|
943 |
+
" background-color: #E2EBFA;\n",
|
944 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
945 |
+
" fill: #174EA6;\n",
|
946 |
+
" }\n",
|
947 |
+
"\n",
|
948 |
+
" .colab-df-buttons div {\n",
|
949 |
+
" margin-bottom: 4px;\n",
|
950 |
+
" }\n",
|
951 |
+
"\n",
|
952 |
+
" [theme=dark] .colab-df-convert {\n",
|
953 |
+
" background-color: #3B4455;\n",
|
954 |
+
" fill: #D2E3FC;\n",
|
955 |
+
" }\n",
|
956 |
+
"\n",
|
957 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
958 |
+
" background-color: #434B5C;\n",
|
959 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
960 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
961 |
+
" fill: #FFFFFF;\n",
|
962 |
+
" }\n",
|
963 |
+
" </style>\n",
|
964 |
+
"\n",
|
965 |
+
" <script>\n",
|
966 |
+
" const buttonEl =\n",
|
967 |
+
" document.querySelector('#df-eae2b145-070f-4b07-b91d-171b0ab53ae5 button.colab-df-convert');\n",
|
968 |
+
" buttonEl.style.display =\n",
|
969 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
970 |
+
"\n",
|
971 |
+
" async function convertToInteractive(key) {\n",
|
972 |
+
" const element = document.querySelector('#df-eae2b145-070f-4b07-b91d-171b0ab53ae5');\n",
|
973 |
+
" const dataTable =\n",
|
974 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
975 |
+
" [key], {});\n",
|
976 |
+
" if (!dataTable) return;\n",
|
977 |
+
"\n",
|
978 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
979 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
980 |
+
" + ' to learn more about interactive tables.';\n",
|
981 |
+
" element.innerHTML = '';\n",
|
982 |
+
" dataTable['output_type'] = 'display_data';\n",
|
983 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
984 |
+
" const docLink = document.createElement('div');\n",
|
985 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
986 |
+
" element.appendChild(docLink);\n",
|
987 |
+
" }\n",
|
988 |
+
" </script>\n",
|
989 |
+
" </div>\n",
|
990 |
+
"\n",
|
991 |
+
"\n",
|
992 |
+
"<div id=\"df-9a845159-dbce-42c0-a7dc-131b4df84b96\">\n",
|
993 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-9a845159-dbce-42c0-a7dc-131b4df84b96')\"\n",
|
994 |
+
" title=\"Suggest charts\"\n",
|
995 |
+
" style=\"display:none;\">\n",
|
996 |
+
"\n",
|
997 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
998 |
+
" width=\"24px\">\n",
|
999 |
+
" <g>\n",
|
1000 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
1001 |
+
" </g>\n",
|
1002 |
+
"</svg>\n",
|
1003 |
+
" </button>\n",
|
1004 |
+
"\n",
|
1005 |
+
"<style>\n",
|
1006 |
+
" .colab-df-quickchart {\n",
|
1007 |
+
" --bg-color: #E8F0FE;\n",
|
1008 |
+
" --fill-color: #1967D2;\n",
|
1009 |
+
" --hover-bg-color: #E2EBFA;\n",
|
1010 |
+
" --hover-fill-color: #174EA6;\n",
|
1011 |
+
" --disabled-fill-color: #AAA;\n",
|
1012 |
+
" --disabled-bg-color: #DDD;\n",
|
1013 |
+
" }\n",
|
1014 |
+
"\n",
|
1015 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
1016 |
+
" --bg-color: #3B4455;\n",
|
1017 |
+
" --fill-color: #D2E3FC;\n",
|
1018 |
+
" --hover-bg-color: #434B5C;\n",
|
1019 |
+
" --hover-fill-color: #FFFFFF;\n",
|
1020 |
+
" --disabled-bg-color: #3B4455;\n",
|
1021 |
+
" --disabled-fill-color: #666;\n",
|
1022 |
+
" }\n",
|
1023 |
+
"\n",
|
1024 |
+
" .colab-df-quickchart {\n",
|
1025 |
+
" background-color: var(--bg-color);\n",
|
1026 |
+
" border: none;\n",
|
1027 |
+
" border-radius: 50%;\n",
|
1028 |
+
" cursor: pointer;\n",
|
1029 |
+
" display: none;\n",
|
1030 |
+
" fill: var(--fill-color);\n",
|
1031 |
+
" height: 32px;\n",
|
1032 |
+
" padding: 0;\n",
|
1033 |
+
" width: 32px;\n",
|
1034 |
+
" }\n",
|
1035 |
+
"\n",
|
1036 |
+
" .colab-df-quickchart:hover {\n",
|
1037 |
+
" background-color: var(--hover-bg-color);\n",
|
1038 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
1039 |
+
" fill: var(--button-hover-fill-color);\n",
|
1040 |
+
" }\n",
|
1041 |
+
"\n",
|
1042 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
1043 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
1044 |
+
" background-color: var(--disabled-bg-color);\n",
|
1045 |
+
" fill: var(--disabled-fill-color);\n",
|
1046 |
+
" box-shadow: none;\n",
|
1047 |
+
" }\n",
|
1048 |
+
"\n",
|
1049 |
+
" .colab-df-spinner {\n",
|
1050 |
+
" border: 2px solid var(--fill-color);\n",
|
1051 |
+
" border-color: transparent;\n",
|
1052 |
+
" border-bottom-color: var(--fill-color);\n",
|
1053 |
+
" animation:\n",
|
1054 |
+
" spin 1s steps(1) infinite;\n",
|
1055 |
+
" }\n",
|
1056 |
+
"\n",
|
1057 |
+
" @keyframes spin {\n",
|
1058 |
+
" 0% {\n",
|
1059 |
+
" border-color: transparent;\n",
|
1060 |
+
" border-bottom-color: var(--fill-color);\n",
|
1061 |
+
" border-left-color: var(--fill-color);\n",
|
1062 |
+
" }\n",
|
1063 |
+
" 20% {\n",
|
1064 |
+
" border-color: transparent;\n",
|
1065 |
+
" border-left-color: var(--fill-color);\n",
|
1066 |
+
" border-top-color: var(--fill-color);\n",
|
1067 |
+
" }\n",
|
1068 |
+
" 30% {\n",
|
1069 |
+
" border-color: transparent;\n",
|
1070 |
+
" border-left-color: var(--fill-color);\n",
|
1071 |
+
" border-top-color: var(--fill-color);\n",
|
1072 |
+
" border-right-color: var(--fill-color);\n",
|
1073 |
+
" }\n",
|
1074 |
+
" 40% {\n",
|
1075 |
+
" border-color: transparent;\n",
|
1076 |
+
" border-right-color: var(--fill-color);\n",
|
1077 |
+
" border-top-color: var(--fill-color);\n",
|
1078 |
+
" }\n",
|
1079 |
+
" 60% {\n",
|
1080 |
+
" border-color: transparent;\n",
|
1081 |
+
" border-right-color: var(--fill-color);\n",
|
1082 |
+
" }\n",
|
1083 |
+
" 80% {\n",
|
1084 |
+
" border-color: transparent;\n",
|
1085 |
+
" border-right-color: var(--fill-color);\n",
|
1086 |
+
" border-bottom-color: var(--fill-color);\n",
|
1087 |
+
" }\n",
|
1088 |
+
" 90% {\n",
|
1089 |
+
" border-color: transparent;\n",
|
1090 |
+
" border-bottom-color: var(--fill-color);\n",
|
1091 |
+
" }\n",
|
1092 |
+
" }\n",
|
1093 |
+
"</style>\n",
|
1094 |
+
"\n",
|
1095 |
+
" <script>\n",
|
1096 |
+
" async function quickchart(key) {\n",
|
1097 |
+
" const quickchartButtonEl =\n",
|
1098 |
+
" document.querySelector('#' + key + ' button');\n",
|
1099 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
1100 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
1101 |
+
" try {\n",
|
1102 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
1103 |
+
" 'suggestCharts', [key], {});\n",
|
1104 |
+
" } catch (error) {\n",
|
1105 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
1106 |
+
" }\n",
|
1107 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
1108 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
1109 |
+
" }\n",
|
1110 |
+
" (() => {\n",
|
1111 |
+
" let quickchartButtonEl =\n",
|
1112 |
+
" document.querySelector('#df-9a845159-dbce-42c0-a7dc-131b4df84b96 button');\n",
|
1113 |
+
" quickchartButtonEl.style.display =\n",
|
1114 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
1115 |
+
" })();\n",
|
1116 |
+
" </script>\n",
|
1117 |
+
"</div>\n",
|
1118 |
+
"\n",
|
1119 |
+
" <div id=\"id_096f24ae-3154-420d-9754-9770c20dffda\">\n",
|
1120 |
+
" <style>\n",
|
1121 |
+
" .colab-df-generate {\n",
|
1122 |
+
" background-color: #E8F0FE;\n",
|
1123 |
+
" border: none;\n",
|
1124 |
+
" border-radius: 50%;\n",
|
1125 |
+
" cursor: pointer;\n",
|
1126 |
+
" display: none;\n",
|
1127 |
+
" fill: #1967D2;\n",
|
1128 |
+
" height: 32px;\n",
|
1129 |
+
" padding: 0 0 0 0;\n",
|
1130 |
+
" width: 32px;\n",
|
1131 |
+
" }\n",
|
1132 |
+
"\n",
|
1133 |
+
" .colab-df-generate:hover {\n",
|
1134 |
+
" background-color: #E2EBFA;\n",
|
1135 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
1136 |
+
" fill: #174EA6;\n",
|
1137 |
+
" }\n",
|
1138 |
+
"\n",
|
1139 |
+
" [theme=dark] .colab-df-generate {\n",
|
1140 |
+
" background-color: #3B4455;\n",
|
1141 |
+
" fill: #D2E3FC;\n",
|
1142 |
+
" }\n",
|
1143 |
+
"\n",
|
1144 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
1145 |
+
" background-color: #434B5C;\n",
|
1146 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
1147 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
1148 |
+
" fill: #FFFFFF;\n",
|
1149 |
+
" }\n",
|
1150 |
+
" </style>\n",
|
1151 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
1152 |
+
" title=\"Generate code using this dataframe.\"\n",
|
1153 |
+
" style=\"display:none;\">\n",
|
1154 |
+
"\n",
|
1155 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
1156 |
+
" width=\"24px\">\n",
|
1157 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
1158 |
+
" </svg>\n",
|
1159 |
+
" </button>\n",
|
1160 |
+
" <script>\n",
|
1161 |
+
" (() => {\n",
|
1162 |
+
" const buttonEl =\n",
|
1163 |
+
" document.querySelector('#id_096f24ae-3154-420d-9754-9770c20dffda button.colab-df-generate');\n",
|
1164 |
+
" buttonEl.style.display =\n",
|
1165 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
1166 |
+
"\n",
|
1167 |
+
" buttonEl.onclick = () => {\n",
|
1168 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
1169 |
+
" }\n",
|
1170 |
+
" })();\n",
|
1171 |
+
" </script>\n",
|
1172 |
+
" </div>\n",
|
1173 |
+
"\n",
|
1174 |
+
" </div>\n",
|
1175 |
+
" </div>\n"
|
1176 |
+
],
|
1177 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
1178 |
+
"type": "dataframe",
|
1179 |
+
"variable_name": "df",
|
1180 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 392,\n \"fields\": [\n {\n \"column\": \"age\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 18.589049704965028,\n \"min\": 0.0,\n \"max\": 90.0,\n \"num_unique_values\": 76,\n \"samples\": [\n 60.0,\n 26.0,\n 63.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bp\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 18.513424355349287,\n \"min\": 0.0,\n \"max\": 180.0,\n \"num_unique_values\": 11,\n \"samples\": [\n 100.0,\n 80.0,\n 180.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bgr\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 88.27078573562652,\n \"min\": 0.0,\n \"max\": 490.0,\n \"num_unique_values\": 146,\n \"samples\": [\n 150.0,\n 424.0,\n 159.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bu\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 50.86006843947563,\n \"min\": 0.0,\n \"max\": 391.0,\n \"num_unique_values\": 118,\n \"samples\": [\n 85.0,\n 42.0,\n 26.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"sod\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 57.76009035147553,\n \"min\": 0.0,\n \"max\": 163.0,\n \"num_unique_values\": 35,\n \"samples\": [\n 122.0,\n 129.0,\n 146.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"pot\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 3.4365711690381584,\n \"min\": 0.0,\n \"max\": 47.0,\n \"num_unique_values\": 41,\n \"samples\": [\n 3.6,\n 3.8,\n 6.4\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"hemo\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 5.034697701579665,\n \"min\": 0.0,\n \"max\": 17.8,\n \"num_unique_values\": 116,\n \"samples\": [\n 3.1,\n 11.6,\n 9.1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"wc\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 90,\n \"samples\": [\n \"5600\",\n \"7900\",\n \"16300\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"rc\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 48,\n \"samples\": [\n \"5.6\",\n \"5.1\",\n \"2.1\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"htn\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"appet\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ane\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"classification\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
1181 |
+
}
|
1182 |
+
},
|
1183 |
+
"metadata": {},
|
1184 |
+
"execution_count": 41
|
1185 |
+
}
|
1186 |
+
]
|
1187 |
+
},
|
1188 |
+
{
|
1189 |
+
"cell_type": "code",
|
1190 |
+
"source": [
|
1191 |
+
"x_data = df.drop(['classification'], axis = 1)\n",
|
1192 |
+
"y = df.classification.values"
|
1193 |
+
],
|
1194 |
+
"metadata": {
|
1195 |
+
"id": "jvdxSOtN35up"
|
1196 |
+
},
|
1197 |
+
"execution_count": 42,
|
1198 |
+
"outputs": []
|
1199 |
+
},
|
1200 |
+
{
|
1201 |
+
"cell_type": "code",
|
1202 |
+
"source": [
|
1203 |
+
"x_train, x_test, y_train, y_test = train_test_split(x_data, y, test_size = 0.2, random_state= 0)"
|
1204 |
+
],
|
1205 |
+
"metadata": {
|
1206 |
+
"id": "dHaFMd8A94Ks"
|
1207 |
+
},
|
1208 |
+
"execution_count": 43,
|
1209 |
+
"outputs": []
|
1210 |
+
},
|
1211 |
+
{
|
1212 |
+
"cell_type": "code",
|
1213 |
+
"source": [
|
1214 |
+
"from sklearn.ensemble import RandomForestClassifier\n",
|
1215 |
+
"rf = RandomForestClassifier(n_estimators = 1000, random_state= 1)\n",
|
1216 |
+
"rf.fit(x_train, y_train)"
|
1217 |
+
],
|
1218 |
+
"metadata": {
|
1219 |
+
"colab": {
|
1220 |
+
"base_uri": "https://localhost:8080/",
|
1221 |
+
"height": 74
|
1222 |
+
},
|
1223 |
+
"id": "JEFcVUBLW9Pi",
|
1224 |
+
"outputId": "dbf5c9f4-d229-4184-abe6-ffa193fb6f85"
|
1225 |
+
},
|
1226 |
+
"execution_count": 44,
|
1227 |
+
"outputs": [
|
1228 |
+
{
|
1229 |
+
"output_type": "execute_result",
|
1230 |
+
"data": {
|
1231 |
+
"text/plain": [
|
1232 |
+
"RandomForestClassifier(n_estimators=1000, random_state=1)"
|
1233 |
+
],
|
1234 |
+
"text/html": [
|
1235 |
+
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>RandomForestClassifier(n_estimators=1000, random_state=1)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">RandomForestClassifier</label><div class=\"sk-toggleable__content\"><pre>RandomForestClassifier(n_estimators=1000, random_state=1)</pre></div></div></div></div></div>"
|
1236 |
+
]
|
1237 |
+
},
|
1238 |
+
"metadata": {},
|
1239 |
+
"execution_count": 44
|
1240 |
+
}
|
1241 |
+
]
|
1242 |
+
},
|
1243 |
+
{
|
1244 |
+
"cell_type": "code",
|
1245 |
+
"source": [
|
1246 |
+
"y_pred=rf.predict(x_test)"
|
1247 |
+
],
|
1248 |
+
"metadata": {
|
1249 |
+
"id": "M66dC8FOXNEt"
|
1250 |
+
},
|
1251 |
+
"execution_count": 45,
|
1252 |
+
"outputs": []
|
1253 |
+
},
|
1254 |
+
{
|
1255 |
+
"cell_type": "code",
|
1256 |
+
"source": [
|
1257 |
+
"from sklearn.metrics import classification_report\n",
|
1258 |
+
"print(classification_report(y_pred,y_test))"
|
1259 |
+
],
|
1260 |
+
"metadata": {
|
1261 |
+
"colab": {
|
1262 |
+
"base_uri": "https://localhost:8080/"
|
1263 |
+
},
|
1264 |
+
"id": "L06DnXKhXPzS",
|
1265 |
+
"outputId": "b454914f-414f-407b-caa7-5599ab136d5a"
|
1266 |
+
},
|
1267 |
+
"execution_count": 46,
|
1268 |
+
"outputs": [
|
1269 |
+
{
|
1270 |
+
"output_type": "stream",
|
1271 |
+
"name": "stdout",
|
1272 |
+
"text": [
|
1273 |
+
" precision recall f1-score support\n",
|
1274 |
+
"\n",
|
1275 |
+
" 0 0.80 0.92 0.86 26\n",
|
1276 |
+
" 1 0.96 0.89 0.92 53\n",
|
1277 |
+
"\n",
|
1278 |
+
" accuracy 0.90 79\n",
|
1279 |
+
" macro avg 0.88 0.90 0.89 79\n",
|
1280 |
+
"weighted avg 0.91 0.90 0.90 79\n",
|
1281 |
+
"\n"
|
1282 |
+
]
|
1283 |
+
}
|
1284 |
+
]
|
1285 |
+
},
|
1286 |
+
{
|
1287 |
+
"cell_type": "code",
|
1288 |
+
"source": [
|
1289 |
+
"import pickle\n",
|
1290 |
+
"\n",
|
1291 |
+
"with open('kcd.pkl','wb') as f:\n",
|
1292 |
+
" pickle.dump(rf,f)\n",
|
1293 |
+
"\n",
|
1294 |
+
"# load\n",
|
1295 |
+
"with open('kcd.pkl', 'rb') as f:\n",
|
1296 |
+
" rf = pickle.load(f)\n",
|
1297 |
+
"#rf.predict()"
|
1298 |
+
],
|
1299 |
+
"metadata": {
|
1300 |
+
"id": "4IrkPQCLXhYw"
|
1301 |
+
},
|
1302 |
+
"execution_count": 47,
|
1303 |
+
"outputs": []
|
1304 |
+
}
|
1305 |
+
]
|
1306 |
+
}
|
kcd.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cefe30b5bd13c43723c71179bf0a2d425a7bfdc9f78f3c5570646afba64bb7a8
|
3 |
+
size 2694299
|
kidney_disease.csv
ADDED
@@ -0,0 +1,401 @@
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
id,age,bp,sg,al,su,rbc,pc,pcc,ba,bgr,bu,sc,sod,pot,hemo,pcv,wc,rc,htn,dm,cad,appet,pe,ane,classification
|
2 |
+
0,48.0,80.0,1.02,1.0,0.0,,normal,notpresent,notpresent,121.0,36.0,1.2,,,15.4,44,7800,5.2,yes,yes,no,good,no,no,ckd
|
3 |
+
1,7.0,50.0,1.02,4.0,0.0,,normal,notpresent,notpresent,,18.0,0.8,,,11.3,38,6000,,no,no,no,good,no,no,ckd
|
4 |
+
2,62.0,80.0,1.01,2.0,3.0,normal,normal,notpresent,notpresent,423.0,53.0,1.8,,,9.6,31,7500,,no,yes,no,poor,no,yes,ckd
|
5 |
+
3,48.0,70.0,1.005,4.0,0.0,normal,abnormal,present,notpresent,117.0,56.0,3.8,111.0,2.5,11.2,32,6700,3.9,yes,no,no,poor,yes,yes,ckd
|
6 |
+
4,51.0,80.0,1.01,2.0,0.0,normal,normal,notpresent,notpresent,106.0,26.0,1.4,,,11.6,35,7300,4.6,no,no,no,good,no,no,ckd
|
7 |
+
5,60.0,90.0,1.015,3.0,0.0,,,notpresent,notpresent,74.0,25.0,1.1,142.0,3.2,12.2,39,7800,4.4,yes,yes,no,good,yes,no,ckd
|
8 |
+
6,68.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,100.0,54.0,24.0,104.0,4.0,12.4,36,,,no,no,no,good,no,no,ckd
|
9 |
+
7,24.0,,1.015,2.0,4.0,normal,abnormal,notpresent,notpresent,410.0,31.0,1.1,,,12.4,44,6900,5,no,yes,no,good,yes,no,ckd
|
10 |
+
8,52.0,100.0,1.015,3.0,0.0,normal,abnormal,present,notpresent,138.0,60.0,1.9,,,10.8,33,9600,4.0,yes,yes,no,good,no,yes,ckd
|
11 |
+
9,53.0,90.0,1.02,2.0,0.0,abnormal,abnormal,present,notpresent,70.0,107.0,7.2,114.0,3.7,9.5,29,12100,3.7,yes,yes,no,poor,no,yes,ckd
|
12 |
+
10,50.0,60.0,1.01,2.0,4.0,,abnormal,present,notpresent,490.0,55.0,4.0,,,9.4,28,,,yes,yes,no,good,no,yes,ckd
|
13 |
+
11,63.0,70.0,1.01,3.0,0.0,abnormal,abnormal,present,notpresent,380.0,60.0,2.7,131.0,4.2,10.8,32,4500,3.8,yes,yes,no,poor,yes,no,ckd
|
14 |
+
12,68.0,70.0,1.015,3.0,1.0,,normal,present,notpresent,208.0,72.0,2.1,138.0,5.8,9.7,28,12200,3.4,yes,yes,yes,poor,yes,no,ckd
|
15 |
+
13,68.0,70.0,,,,,,notpresent,notpresent,98.0,86.0,4.6,135.0,3.4,9.8,,,,yes,yes,yes,poor,yes,no,ckd
|
16 |
+
14,68.0,80.0,1.01,3.0,2.0,normal,abnormal,present,present,157.0,90.0,4.1,130.0,6.4,5.6,16,11000,2.6,yes,yes,yes,poor,yes,no,ckd
|
17 |
+
15,40.0,80.0,1.015,3.0,0.0,,normal,notpresent,notpresent,76.0,162.0,9.6,141.0,4.9,7.6,24,3800,2.8,yes,no,no,good,no,yes,ckd
|
18 |
+
16,47.0,70.0,1.015,2.0,0.0,,normal,notpresent,notpresent,99.0,46.0,2.2,138.0,4.1,12.6,,,,no,no,no,good,no,no,ckd
|
19 |
+
17,47.0,80.0,,,,,,notpresent,notpresent,114.0,87.0,5.2,139.0,3.7,12.1,,,,yes,no,no,poor,no,no,ckd
|
20 |
+
18,60.0,100.0,1.025,0.0,3.0,,normal,notpresent,notpresent,263.0,27.0,1.3,135.0,4.3,12.7,37,11400,4.3,yes,yes,yes,good,no,no,ckd
|
21 |
+
19,62.0,60.0,1.015,1.0,0.0,,abnormal,present,notpresent,100.0,31.0,1.6,,,10.3,30,5300,3.7,yes,no,yes,good,no,no,ckd
|
22 |
+
20,61.0,80.0,1.015,2.0,0.0,abnormal,abnormal,notpresent,notpresent,173.0,148.0,3.9,135.0,5.2,7.7,24,9200,3.2,yes,yes,yes,poor,yes,yes,ckd
|
23 |
+
21,60.0,90.0,,,,,,notpresent,notpresent,,180.0,76.0,4.5,,10.9,32,6200,3.6,yes,yes,yes,good,no,no,ckd
|
24 |
+
22,48.0,80.0,1.025,4.0,0.0,normal,abnormal,notpresent,notpresent,95.0,163.0,7.7,136.0,3.8,9.8,32,6900,3.4,yes,no,no,good,no,yes,ckd
|
25 |
+
23,21.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,,,,,,,,,,no,no,no,poor,no,yes,ckd
|
26 |
+
24,42.0,100.0,1.015,4.0,0.0,normal,abnormal,notpresent,present,,50.0,1.4,129.0,4.0,11.1,39,8300,4.6,yes,no,no,poor,no,no,ckd
|
27 |
+
25,61.0,60.0,1.025,0.0,0.0,,normal,notpresent,notpresent,108.0,75.0,1.9,141.0,5.2,9.9,29,8400,3.7,yes,yes,no,good,no,yes,ckd
|
28 |
+
26,75.0,80.0,1.015,0.0,0.0,,normal,notpresent,notpresent,156.0,45.0,2.4,140.0,3.4,11.6,35,10300,4,yes,yes,no,poor,no,no,ckd
|
29 |
+
27,69.0,70.0,1.01,3.0,4.0,normal,abnormal,notpresent,notpresent,264.0,87.0,2.7,130.0,4.0,12.5,37,9600,4.1,yes,yes,yes,good,yes,no,ckd
|
30 |
+
28,75.0,70.0,,1.0,3.0,,,notpresent,notpresent,123.0,31.0,1.4,,,,,,,no,yes,no,good,no,no,ckd
|
31 |
+
29,68.0,70.0,1.005,1.0,0.0,abnormal,abnormal,present,notpresent,,28.0,1.4,,,12.9,38,,,no,no,yes,good,no,no,ckd
|
32 |
+
30,,70.0,,,,,,notpresent,notpresent,93.0,155.0,7.3,132.0,4.9,,,,,yes, yes,no,good,no,no,ckd
|
33 |
+
31,73.0,90.0,1.015,3.0,0.0,,abnormal,present,notpresent,107.0,33.0,1.5,141.0,4.6,10.1,30,7800,4,no,no,no,poor,no,no,ckd
|
34 |
+
32,61.0,90.0,1.01,1.0,1.0,,normal,notpresent,notpresent,159.0,39.0,1.5,133.0,4.9,11.3,34,9600,4.0,yes,yes,no,poor,no,no,ckd
|
35 |
+
33,60.0,100.0,1.02,2.0,0.0,abnormal,abnormal,notpresent,notpresent,140.0,55.0,2.5,,,10.1,29,,,yes,no,no,poor,no,no,ckd
|
36 |
+
34,70.0,70.0,1.01,1.0,0.0,normal,,present,present,171.0,153.0,5.2,,,,,,,no,yes,no,poor,no,no,ckd
|
37 |
+
35,65.0,90.0,1.02,2.0,1.0,abnormal,normal,notpresent,notpresent,270.0,39.0,2.0,,,12.0,36,9800,4.9,yes,yes,no,poor,no,yes,ckd
|
38 |
+
36,76.0,70.0,1.015,1.0,0.0,normal,normal,notpresent,notpresent,92.0,29.0,1.8,133.0,3.9,10.3,32,,,yes,no,no,good,no,no,ckd
|
39 |
+
37,72.0,80.0,,,,,,notpresent,notpresent,137.0,65.0,3.4,141.0,4.7,9.7,28,6900,2.5,yes,yes,no,poor,no,yes,ckd
|
40 |
+
38,69.0,80.0,1.02,3.0,0.0,abnormal,normal,notpresent,notpresent,,103.0,4.1,132.0,5.9,12.5,,,,yes,no,no,good,no,no,ckd
|
41 |
+
39,82.0,80.0,1.01,2.0,2.0,normal,,notpresent,notpresent,140.0,70.0,3.4,136.0,4.2,13.0,40,9800,4.2,yes,yes,no,good,no,no,ckd
|
42 |
+
40,46.0,90.0,1.01,2.0,0.0,normal,abnormal,notpresent,notpresent,99.0,80.0,2.1,,,11.1,32,9100,4.1,yes,no, no,good,no,no,ckd
|
43 |
+
41,45.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,,20.0,0.7,,,,,,,no,no,no,good,yes,no,ckd
|
44 |
+
42,47.0,100.0,1.01,0.0,0.0,,normal,notpresent,notpresent,204.0,29.0,1.0,139.0,4.2,9.7,33,9200,4.5,yes,no,no,good,no,yes,ckd
|
45 |
+
43,35.0,80.0,1.01,1.0,0.0,abnormal,,notpresent,notpresent,79.0,202.0,10.8,134.0,3.4,7.9,24,7900,3.1,no,yes,no,good,no,no,ckd
|
46 |
+
44,54.0,80.0,1.01,3.0,0.0,abnormal,abnormal,notpresent,notpresent,207.0,77.0,6.3,134.0,4.8,9.7,28,,,yes,yes,no,poor,yes,no,ckd
|
47 |
+
45,54.0,80.0,1.02,3.0,0.0,,abnormal,notpresent,notpresent,208.0,89.0,5.9,130.0,4.9,9.3,,,,yes,yes,no,poor,yes,no,ckd
|
48 |
+
46,48.0,70.0,1.015,0.0,0.0,,normal,notpresent,notpresent,124.0,24.0,1.2,142.0,4.2,12.4,37,6400,4.7,no,yes,no,good,no,no,ckd
|
49 |
+
47,11.0,80.0,1.01,3.0,0.0,,normal,notpresent,notpresent,,17.0,0.8,,,15.0,45,8600,,no,no,no,good,no,no,ckd
|
50 |
+
48,73.0,70.0,1.005,0.0,0.0,normal,normal,notpresent,notpresent,70.0,32.0,0.9,125.0,4.0,10.0,29,18900,3.5,yes,yes,no,good,yes,no,ckd
|
51 |
+
49,60.0,70.0,1.01,2.0,0.0,normal,abnormal,present,notpresent,144.0,72.0,3.0,,,9.7,29,21600,3.5,yes,yes,no,poor,no,yes,ckd
|
52 |
+
50,53.0,60.0,,,,,,notpresent,notpresent,91.0,114.0,3.25,142.0,4.3,8.6,28,11000,3.8,yes,yes,no,poor,yes,yes,ckd
|
53 |
+
51,54.0,100.0,1.015,3.0,0.0,,normal,present,notpresent,162.0,66.0,1.6,136.0,4.4,10.3,33,,,yes,yes,no,poor,yes,no,ckd
|
54 |
+
52,53.0,90.0,1.015,0.0,0.0,,normal,notpresent,notpresent,,38.0,2.2,,,10.9,34,4300,3.7,no,no,no,poor,no,yes,ckd
|
55 |
+
53,62.0,80.0,1.015,0.0,5.0,,,notpresent,notpresent,246.0,24.0,1.0,,,13.6,40,8500,4.7,yes,yes,no,good,no,no,ckd
|
56 |
+
54,63.0,80.0,1.01,2.0,2.0,normal,,notpresent,notpresent,,,3.4,136.0,4.2,13.0,40,9800,4.2,yes,no,yes,good,no,no,ckd
|
57 |
+
55,35.0,80.0,1.005,3.0,0.0,abnormal,normal,notpresent,notpresent,,,,,,9.5,28,,,no,no,no,good,yes,no,ckd
|
58 |
+
56,76.0,70.0,1.015,3.0,4.0,normal,abnormal,present,notpresent,,164.0,9.7,131.0,4.4,10.2,30,11300,3.4,yes,yes,yes,poor,yes,no,ckd
|
59 |
+
57,76.0,90.0,,,,,normal,notpresent,notpresent,93.0,155.0,7.3,132.0,4.9,,,,,yes,yes,yes,poor,no,no,ckd
|
60 |
+
58,73.0,80.0,1.02,2.0,0.0,abnormal,abnormal,notpresent,notpresent,253.0,142.0,4.6,138.0,5.8,10.5,33,7200,4.3,yes,yes,yes,good,no,no,ckd
|
61 |
+
59,59.0,100.0,,,,,,notpresent,notpresent,,96.0,6.4,,,6.6,,,,yes,yes,no,good,no,yes,ckd
|
62 |
+
60,67.0,90.0,1.02,1.0,0.0,,abnormal,present,notpresent,141.0,66.0,3.2,138.0,6.6,,,,,yes,no,no,good,no,no,ckd
|
63 |
+
61,67.0,80.0,1.01,1.0,3.0,normal,abnormal,notpresent,notpresent,182.0,391.0,32.0,163.0,39.0,,,,,no,no,no,good,yes,no,ckd
|
64 |
+
62,15.0,60.0,1.02,3.0,0.0,,normal,notpresent,notpresent,86.0,15.0,0.6,138.0,4.0,11.0,33,7700,3.8,yes,yes,no,good,no,no,ckd
|
65 |
+
63,46.0,70.0,1.015,1.0,0.0,abnormal,normal,notpresent,notpresent,150.0,111.0,6.1,131.0,3.7,7.5,27,,,no,no,no,good,no,yes,ckd
|
66 |
+
64,55.0,80.0,1.01,0.0,0.0,,normal,notpresent,notpresent,146.0,,,,,9.8,,,,no,no, no,good,no,no,ckd
|
67 |
+
65,44.0,90.0,1.01,1.0,0.0,,normal,notpresent,notpresent,,20.0,1.1,,,15.0,48,,,no, no,no,good,no,no,ckd
|
68 |
+
66,67.0,70.0,1.02,2.0,0.0,abnormal,normal,notpresent,notpresent,150.0,55.0,1.6,131.0,4.8,, ?,,,yes,yes,no,good,yes,no,ckd
|
69 |
+
67,45.0,80.0,1.02,3.0,0.0,normal,abnormal,notpresent,notpresent,425.0,,,,,,,,,no,no,no,poor,no,no,ckd
|
70 |
+
68,65.0,70.0,1.01,2.0,0.0,,normal,present,notpresent,112.0,73.0,3.3,,,10.9,37,,,no,no,no,good,no,no,ckd
|
71 |
+
69,26.0,70.0,1.015,0.0,4.0,,normal,notpresent,notpresent,250.0,20.0,1.1,,,15.6,52,6900,6.0,no,yes,no,good,no,no,ckd
|
72 |
+
70,61.0,80.0,1.015,0.0,4.0,,normal,notpresent,notpresent,360.0,19.0,0.7,137.0,4.4,15.2,44,8300,5.2,yes,yes,no,good,no,no,ckd
|
73 |
+
71,46.0,60.0,1.01,1.0,0.0,normal,normal,notpresent,notpresent,163.0,92.0,3.3,141.0,4.0,9.8,28,14600,3.2,yes,yes,no,good,no,no,ckd
|
74 |
+
72,64.0,90.0,1.01,3.0,3.0,,abnormal,present,notpresent,,35.0,1.3,,,10.3,,,,yes,yes,no,good,yes,no,ckd
|
75 |
+
73,,100.0,1.015,2.0,0.0,abnormal,abnormal,notpresent,notpresent,129.0,107.0,6.7,132.0,4.4,4.8,14,6300,,yes,no,no,good,yes,yes,ckd
|
76 |
+
74,56.0,90.0,1.015,2.0,0.0,abnormal,abnormal,notpresent,notpresent,129.0,107.0,6.7,131.0,4.8,9.1,29,6400,3.4,yes,no,no,good,no,no,ckd
|
77 |
+
75,5.0,,1.015,1.0,0.0,,normal,notpresent,notpresent,,16.0,0.7,138.0,3.2,8.1,,,,no,no,no,good,no,yes,ckd
|
78 |
+
76,48.0,80.0,1.005,4.0,0.0,abnormal,abnormal,notpresent,present,133.0,139.0,8.5,132.0,5.5,10.3,36, 6200,4,no,yes,no,good,yes,no,ckd
|
79 |
+
77,67.0,70.0,1.01,1.0,0.0,,normal,notpresent,notpresent,102.0,48.0,3.2,137.0,5.0,11.9,34,7100,3.7,yes,yes,no,good,yes,no,ckd
|
80 |
+
78,70.0,80.0,,,,,,notpresent,notpresent,158.0,85.0,3.2,141.0,3.5,10.1,30,,,yes,no,no,good,yes,no,ckd
|
81 |
+
79,56.0,80.0,1.01,1.0,0.0,,normal,notpresent,notpresent,165.0,55.0,1.8,,,13.5,40,11800,5.0,yes,yes,no,poor,yes,no,ckd
|
82 |
+
80,74.0,80.0,1.01,0.0,0.0,,normal,notpresent,notpresent,132.0,98.0,2.8,133.0,5.0,10.8,31,9400,3.8,yes,yes,no,good,no,no,ckd
|
83 |
+
81,45.0,90.0,,,,,,notpresent,notpresent,360.0,45.0,2.4,128.0,4.4,8.3,29,5500,3.7,yes,yes,no,good,no,no,ckd
|
84 |
+
82,38.0,70.0,,,,,,notpresent,notpresent,104.0,77.0,1.9,140.0,3.9,,,,,yes,no,no,poor,yes,no,ckd
|
85 |
+
83,48.0,70.0,1.015,1.0,0.0,normal,normal,notpresent,notpresent,127.0,19.0,1.0,134.0,3.6,,,,,yes,yes,no,good,no,no,ckd
|
86 |
+
84,59.0,70.0,1.01,3.0,0.0,normal,abnormal,notpresent,notpresent,76.0,186.0,15.0,135.0,7.6,7.1,22,3800,2.1,yes,no,no,poor,yes,yes,ckd
|
87 |
+
85,70.0,70.0,1.015,2.0,,,,notpresent,notpresent,,46.0,1.5,,,9.9,,,,no,yes,no,poor,yes,no,ckd
|
88 |
+
86,56.0,80.0,,,,,,notpresent,notpresent,415.0,37.0,1.9,,,,,,,no,yes,no,good,no,no,ckd
|
89 |
+
87,70.0,100.0,1.005,1.0,0.0,normal,abnormal,present,notpresent,169.0,47.0,2.9,,,11.1,32,5800,5,yes,yes,no,poor,no,no,ckd
|
90 |
+
88,58.0,110.0,1.01,4.0,0.0,,normal,notpresent,notpresent,251.0,52.0,2.2,,,,,13200,4.7,yes, yes,no,good,no,no,ckd
|
91 |
+
89,50.0,70.0,1.02,0.0,0.0,,normal,notpresent,notpresent,109.0,32.0,1.4,139.0,4.7,,,,,no,no,no,poor,no,no,ckd
|
92 |
+
90,63.0,100.0,1.01,2.0,2.0,normal,normal,notpresent,present,280.0,35.0,3.2,143.0,3.5,13.0,40,9800,4.2,yes,no,yes,good,no,no,ckd
|
93 |
+
91,56.0,70.0,1.015,4.0,1.0,abnormal,normal,notpresent,notpresent,210.0,26.0,1.7,136.0,3.8,16.1,52,12500,5.6,no,no,no,good,no,no,ckd
|
94 |
+
92,71.0,70.0,1.01,3.0,0.0,normal,abnormal,present,present,219.0,82.0,3.6,133.0,4.4,10.4,33,5600,3.6,yes,yes,yes,good,no,no,ckd
|
95 |
+
93,73.0,100.0,1.01,3.0,2.0,abnormal,abnormal,present,notpresent,295.0,90.0,5.6,140.0,2.9,9.2,30,7000,3.2,yes,yes,yes,poor,no,no,ckd
|
96 |
+
94,65.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,93.0,66.0,1.6,137.0,4.5,11.6,36,11900,3.9,no,yes,no,good,no,no,ckd
|
97 |
+
95,62.0,90.0,1.015,1.0,0.0,,normal,notpresent,notpresent,94.0,25.0,1.1,131.0,3.7,,,,,yes,no,no,good,yes,yes,ckd
|
98 |
+
96,60.0,80.0,1.01,1.0,1.0,,normal,notpresent,notpresent,172.0,32.0,2.7,,,11.2,36,,,no,yes,yes,poor,no,no,ckd
|
99 |
+
97,65.0,60.0,1.015,1.0,0.0,,normal,notpresent,notpresent,91.0,51.0,2.2,132.0,3.8,10.0,32,9100,4.0,yes,yes,no,poor,yes,no,ckd
|
100 |
+
98,50.0,140.0,,,,,,notpresent,notpresent,101.0,106.0,6.5,135.0,4.3,6.2,18,5800,2.3,yes,yes,no,poor,no,yes,ckd
|
101 |
+
99,56.0,180.0,,0.0,4.0,,abnormal,notpresent,notpresent,298.0,24.0,1.2,139.0,3.9,11.2,32,10400,4.2,yes,yes,no,poor,yes,no,ckd
|
102 |
+
100,34.0,70.0,1.015,4.0,0.0,abnormal,abnormal,notpresent,notpresent,153.0,22.0,0.9,133.0,3.8,,,,,no,no,no,good,yes,no,ckd
|
103 |
+
101,71.0,90.0,1.015,2.0,0.0,,abnormal,present,present,88.0,80.0,4.4,139.0,5.7,11.3,33,10700,3.9,no,no,no,good,no,no,ckd
|
104 |
+
102,17.0,60.0,1.01,0.0,0.0,,normal,notpresent,notpresent,92.0,32.0,2.1,141.0,4.2,13.9,52,7000,,no,no,no,good,no,no,ckd
|
105 |
+
103,76.0,70.0,1.015,2.0,0.0,normal,abnormal,present,notpresent,226.0,217.0,10.2,,,10.2,36,12700,4.2,yes,no,no,poor,yes,yes,ckd
|
106 |
+
104,55.0,90.0,,,,,,notpresent,notpresent,143.0,88.0,2.0,,,,,,,yes,yes,no,poor,yes,no,ckd
|
107 |
+
105,65.0,80.0,1.015,0.0,0.0,,normal,notpresent,notpresent,115.0,32.0,11.5,139.0,4.0,14.1,42,6800,5.2,no,no,no,good,no,no,ckd
|
108 |
+
106,50.0,90.0,,,,,,notpresent,notpresent,89.0,118.0,6.1,127.0,4.4,6.0,17,6500,,yes,yes,no,good,yes,yes,ckd
|
109 |
+
107,55.0,100.0,1.015,1.0,4.0,normal,,notpresent,notpresent,297.0,53.0,2.8,139.0,4.5,11.2,34,13600,4.4,yes,yes,no,good,no,no,ckd
|
110 |
+
108,45.0,80.0,1.015,0.0,0.0,,abnormal,notpresent,notpresent,107.0,15.0,1.0,141.0,4.2,11.8,37,10200,4.2,no,no,no,good,no,no,ckd
|
111 |
+
109,54.0,70.0,,,,,,notpresent,notpresent,233.0,50.1,1.9,,,11.7,,,,no,yes,no,good,no,no,ckd
|
112 |
+
110,63.0,90.0,1.015,0.0,0.0,,normal,notpresent,notpresent,123.0,19.0,2.0,142.0,3.8,11.7,34,11400,4.7,no,no,no,good,no,no,ckd
|
113 |
+
111,65.0,80.0,1.01,3.0,3.0,,normal,notpresent,notpresent,294.0,71.0,4.4,128.0,5.4,10.0,32,9000,3.9,yes,yes,yes,good,no,no,ckd
|
114 |
+
112,,60.0,1.015,3.0,0.0,abnormal,abnormal,notpresent,notpresent,,34.0,1.2,,,10.8,33,,,no,no,no,good,no,no,ckd
|
115 |
+
113,61.0,90.0,1.015,0.0,2.0,,normal,notpresent,notpresent,,,,,,,,9800,,no,yes,no,poor,no,yes,ckd
|
116 |
+
114,12.0,60.0,1.015,3.0,0.0,abnormal,abnormal,present,notpresent,,51.0,1.8,,,12.1,,10300,,no,no,no,good,no,no,ckd
|
117 |
+
115,47.0,80.0,1.01,0.0,0.0,,abnormal,notpresent,notpresent,,28.0,0.9,,,12.4,44,5600,4.3,no,no,no,good,no,yes,ckd
|
118 |
+
116,,70.0,1.015,4.0,0.0,abnormal,normal,notpresent,notpresent,104.0,16.0,0.5,,,,,,,no,no,no,good,yes,no,ckd
|
119 |
+
117,,70.0,1.02,0.0,0.0,,,notpresent,notpresent,219.0,36.0,1.3,139.0,3.7,12.5,37,9800,4.4,no,no,no,good,no,no,ckd
|
120 |
+
118,55.0,70.0,1.01,3.0,0.0,,normal,notpresent,notpresent,99.0,25.0,1.2,,,11.4,,,,no,no,no,poor,yes,no,ckd
|
121 |
+
119,60.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,140.0,27.0,1.2,,,,,,,no,no,no,good,no,no,ckd
|
122 |
+
120,72.0,90.0,1.025,1.0,3.0,,normal,notpresent,notpresent,323.0,40.0,2.2,137.0,5.3,12.6,,,,no,yes,yes,poor,no,no,ckd
|
123 |
+
121,54.0,60.0,,3.0,,,,notpresent,notpresent,125.0,21.0,1.3,137.0,3.4,15.0,46,,,yes,yes,no,good,yes,no,ckd
|
124 |
+
122,34.0,70.0,,,,,,notpresent,notpresent,,219.0,12.2,130.0,3.8,6.0,,,,yes,no,no,good,no,yes,ckd
|
125 |
+
123,43.0,80.0,1.015,2.0,3.0,,abnormal,present,present,,30.0,1.1,,,14.0,42,14900,,no,no,no,good,no,no,ckd
|
126 |
+
124,65.0,100.0,1.015,0.0,0.0,,normal,notpresent,notpresent,90.0,98.0,2.5,,,9.1,28,5500,3.6,yes,no,no,good,no,no,ckd
|
127 |
+
125,72.0,90.0,,,,,,notpresent,notpresent,308.0,36.0,2.5,131.0,4.3,,,,,yes,yes,no,poor,no,no,ckd
|
128 |
+
126,70.0,90.0,1.015,0.0,0.0,,normal,notpresent,notpresent,144.0,125.0,4.0,136.0,4.6,12.0,37,8200,4.5,yes,yes,no,poor,yes,no,ckd
|
129 |
+
127,71.0,60.0,1.015,4.0,0.0,normal,normal,notpresent,notpresent,118.0,125.0,5.3,136.0,4.9,11.4,35,15200,4.3,yes,yes,no,poor,yes,no,ckd
|
130 |
+
128,52.0,90.0,1.015,4.0,3.0,normal,abnormal,notpresent,notpresent,224.0,166.0,5.6,133.0,47.0,8.1,23,5000,2.9,yes,yes,no,good,no,yes,ckd
|
131 |
+
129,75.0,70.0,1.025,1.0,0.0,,normal,notpresent,notpresent,158.0,49.0,1.4,135.0,4.7,11.1,,,,yes,no,no,poor,yes,no,ckd
|
132 |
+
130,50.0,90.0,1.01,2.0,0.0,normal,abnormal,present,present,128.0,208.0,9.2,134.0,4.8,8.2,22,16300,2.7,no,no,no,poor,yes,yes,ckd
|
133 |
+
131,5.0,50.0,1.01,0.0,0.0,,normal,notpresent,notpresent,,25.0,0.6,,,11.8,36,12400,,no,no,no,good,no,no,ckd
|
134 |
+
132,50.0,,,,,normal,,notpresent,notpresent,219.0,176.0,13.8,136.0,4.5,8.6,24,13200,2.7,yes,no,no,good,yes,yes,ckd
|
135 |
+
133,70.0,100.0,1.015,4.0,0.0,normal,normal,notpresent,notpresent,118.0,125.0,5.3,136.0,4.9,12.0,37, 8400,8.0,yes,no,no,good,no,no,ckd
|
136 |
+
134,47.0,100.0,1.01,,,normal,,notpresent,notpresent,122.0,,16.9,138.0,5.2,10.8,33,10200,3.8,no,yes,no,good,no,no,ckd
|
137 |
+
135,48.0,80.0,1.015,0.0,2.0,,normal,notpresent,notpresent,214.0,24.0,1.3,140.0,4.0,13.2,39,,,no,yes,no,poor,no,no,ckd
|
138 |
+
136,46.0,90.0,1.02,,,,normal,notpresent,notpresent,213.0,68.0,2.8,146.0,6.3,9.3,,,,yes,yes,no,good,no,no,ckd
|
139 |
+
137,45.0,60.0,1.01,2.0,0.0,normal,abnormal,present,notpresent,268.0,86.0,4.0,134.0,5.1,10.0,29,9200,,yes,yes,no,good,no,no,ckd
|
140 |
+
138,73.0,,1.01,1.0,0.0,,,notpresent,notpresent,95.0,51.0,1.6,142.0,3.5,,,,,no, no,no,good,no,no,ckd
|
141 |
+
139,41.0,70.0,1.015,2.0,0.0,,abnormal,notpresent,present,,68.0,2.8,132.0,4.1,11.1,33,,,yes,no,no,good,yes,yes,ckd
|
142 |
+
140,69.0,70.0,1.01,0.0,4.0,,normal,notpresent,notpresent,256.0,40.0,1.2,142.0,5.6,,,,,no,no,no,good,no,no,ckd
|
143 |
+
141,67.0,70.0,1.01,1.0,0.0,normal,normal,notpresent,notpresent,,106.0,6.0,137.0,4.9,6.1,19,6500,,yes,no,no,good,no,yes,ckd
|
144 |
+
142,72.0,90.0,,,,,,notpresent,notpresent,84.0,145.0,7.1,135.0,5.3,,,,,no,yes,no,good,no,no,ckd
|
145 |
+
143,41.0,80.0,1.015,1.0,4.0,abnormal,normal,notpresent,notpresent,210.0,165.0,18.0,135.0,4.7,,,,,no,yes,no,good,no,no,ckd
|
146 |
+
144,60.0,90.0,1.01,2.0,0.0,abnormal,normal,notpresent,notpresent,105.0,53.0,2.3,136.0,5.2,11.1,33,10500,4.1,no,no,no,good,no,no,ckd
|
147 |
+
145,57.0,90.0,1.015,5.0,0.0,abnormal,abnormal,notpresent,present,,322.0,13.0,126.0,4.8,8.0,24,4200,3.3,yes,yes,yes,poor,yes,yes,ckd
|
148 |
+
146,53.0,100.0,1.01,1.0,3.0,abnormal,normal,notpresent,notpresent,213.0,23.0,1.0,139.0,4.0,,,,,no,yes,no,good,no,no,ckd
|
149 |
+
147,60.0,60.0,1.01,3.0,1.0,normal,abnormal,present,notpresent,288.0,36.0,1.7,130.0,3.0,7.9,25,15200,3.0,yes,no,no,poor,no,yes,ckd
|
150 |
+
148,69.0,60.0,,,,,,notpresent,notpresent,171.0,26.0,48.1,,,,,,,yes,no,no,poor,no,no,ckd
|
151 |
+
149,65.0,70.0,1.02,1.0,0.0,abnormal,abnormal,notpresent,notpresent,139.0,29.0,1.0,,,10.5,32,,,yes,no,no,good,yes,no,ckd
|
152 |
+
150,8.0,60.0,1.025,3.0,0.0,normal,normal,notpresent,notpresent,78.0,27.0,0.9,,,12.3,41,6700,,no,no,no,poor,yes,no,ckd
|
153 |
+
151,76.0,90.0,,,,,,notpresent,notpresent,172.0,46.0,1.7,141.0,5.5,9.6,30,,,yes,yes,no,good,no,yes,ckd
|
154 |
+
152,39.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,121.0,20.0,0.8,133.0,3.5,10.9,32,,,no,yes,no,good,no,no,ckd
|
155 |
+
153,55.0,90.0,1.01,2.0,1.0,abnormal,abnormal,notpresent,notpresent,273.0,235.0,14.2,132.0,3.4,8.3,22,14600,2.9,yes,yes,no,poor,yes,yes,ckd
|
156 |
+
154,56.0,90.0,1.005,4.0,3.0,abnormal,abnormal,notpresent,notpresent,242.0,132.0,16.4,140.0,4.2,8.4,26,,3,yes,yes,no,poor,yes,yes,ckd
|
157 |
+
155,50.0,70.0,1.02,3.0,0.0,abnormal,normal,present,present,123.0,40.0,1.8,,,11.1,36,4700,,no,no,no,good,no,no,ckd
|
158 |
+
156,66.0,90.0,1.015,2.0,0.0,,normal,notpresent,present,153.0,76.0,3.3,,,,,,,no,no,no,poor,no,no,ckd
|
159 |
+
157,62.0,70.0,1.025,3.0,0.0,normal,abnormal,notpresent,notpresent,122.0,42.0,1.7,136.0,4.7,12.6,39,7900,3.9,yes,yes,no,good,no,no,ckd
|
160 |
+
158,71.0,60.0,1.02,3.0,2.0,normal,normal,present,notpresent,424.0,48.0,1.5,132.0,4.0,10.9,31,,,yes,yes,yes,good,no,no,ckd
|
161 |
+
159,59.0,80.0,1.01,1.0,0.0,abnormal,normal,notpresent,notpresent,303.0,35.0,1.3,122.0,3.5,10.4,35,10900,4.3,no,yes,no,poor,no,no,ckd
|
162 |
+
160,81.0,60.0,,,,,,notpresent,notpresent,148.0,39.0,2.1,147.0,4.2,10.9,35,9400,2.4,yes,yes,yes,poor,yes,no,ckd
|
163 |
+
161,62.0,,1.015,3.0,0.0,abnormal,,notpresent,notpresent,,,,,,14.3,42,10200,4.8,yes,yes,no,good,no,no,ckd
|
164 |
+
162,59.0,70.0,,,,,,notpresent,notpresent,204.0,34.0,1.5,124.0,4.1,9.8,37,6000, ?,no,yes,no,good,no,no,ckd
|
165 |
+
163,46.0,80.0,1.01,0.0,0.0,,normal,notpresent,notpresent,160.0,40.0,2.0,140.0,4.1,9.0,27,8100,3.2,yes,no,no,poor,no,yes,ckd
|
166 |
+
164,14.0,,1.015,0.0,0.0,,,notpresent,notpresent,192.0,15.0,0.8,137.0,4.2,14.3,40,9500,5.4,no,yes,no,poor,yes,no,ckd
|
167 |
+
165,60.0,80.0,1.02,0.0,2.0,,,notpresent,notpresent,,,,,,,,,,no,yes,no,good,no,no,ckd
|
168 |
+
166,27.0,60.0,,,,,,notpresent,notpresent,76.0,44.0,3.9,127.0,4.3,,,,,no,no,no,poor,yes,yes,ckd
|
169 |
+
167,34.0,70.0,1.02,0.0,0.0,abnormal,normal,notpresent,notpresent,139.0,19.0,0.9,,,12.7,42,2200,,no,no,no,poor,no,no,ckd
|
170 |
+
168,65.0,70.0,1.015,4.0,4.0,,normal,present,notpresent,307.0,28.0,1.5,,,11.0,39,6700,,yes,yes,no,good,no,no,ckd
|
171 |
+
169,,70.0,1.01,0.0,2.0,,normal,notpresent,notpresent,220.0,68.0,2.8,,,8.7,27,,,yes,yes,no,good,no,yes,ckd
|
172 |
+
170,66.0,70.0,1.015,2.0,5.0,,normal,notpresent,notpresent,447.0,41.0,1.7,131.0,3.9,12.5,33,9600,4.4,yes,yes,no,good,no,no,ckd
|
173 |
+
171,83.0,70.0,1.02,3.0,0.0,normal,normal,notpresent,notpresent,102.0,60.0,2.6,115.0,5.7,8.7,26,12800,3.1,yes,no,no,poor,no,yes,ckd
|
174 |
+
172,62.0,80.0,1.01,1.0,2.0,,,notpresent,notpresent,309.0,113.0,2.9,130.0,2.5,10.6,34,12800,4.9,no,no,no,good,no,no,ckd
|
175 |
+
173,17.0,70.0,1.015,1.0,0.0,abnormal,normal,notpresent,notpresent,22.0,1.5,7.3,145.0,2.8,13.1,41,11200,,no,no,no,good,no,no,ckd
|
176 |
+
174,54.0,70.0,,,,,,notpresent,notpresent,111.0,146.0,7.5,141.0,4.7,11.0,35,8600,4.6,no,no,no,good,no,no,ckd
|
177 |
+
175,60.0,50.0,1.01,0.0,0.0,,normal,notpresent,notpresent,261.0,58.0,2.2,113.0,3.0,,,4200,3.4,yes,no,no,good,no,no,ckd
|
178 |
+
176,21.0,90.0,1.01,4.0,0.0,normal,abnormal,present,present,107.0,40.0,1.7,125.0,3.5,8.3,23,12400,3.9,no,no,no,good,no,yes,ckd
|
179 |
+
177,65.0,80.0,1.015,2.0,1.0,normal,normal,present,notpresent,215.0,133.0,2.5,,,13.2,41,,,no,yes,no,good,no,no,ckd
|
180 |
+
178,42.0,90.0,1.02,2.0,0.0,abnormal,abnormal,present,notpresent,93.0,153.0,2.7,139.0,4.3,9.8,34,9800,,no,no,no,poor,yes,yes,ckd
|
181 |
+
179,72.0,90.0,1.01,2.0,0.0,,abnormal,present,notpresent,124.0,53.0,2.3,,,11.9,39,,,no,no,no,good,no,no,ckd
|
182 |
+
180,73.0,90.0,1.01,1.0,4.0,abnormal,abnormal,present,notpresent,234.0,56.0,1.9,,,10.3,28,,,no,yes,no,good,no,no,ckd
|
183 |
+
181,45.0,70.0,1.025,2.0,0.0,normal,abnormal,present,notpresent,117.0,52.0,2.2,136.0,3.8,10.0,30,19100,3.7,no,no,no,good,no,no,ckd
|
184 |
+
182,61.0,80.0,1.02,0.0,0.0,,normal,notpresent,notpresent,131.0,23.0,0.8,140.0,4.1,11.3,35,,,no,no,no,good,no,no,ckd
|
185 |
+
183,30.0,70.0,1.015,0.0,0.0,,normal,notpresent,notpresent,101.0,106.0,6.5,135.0,4.3,,,,,no,no,no,poor,no,no,ckd
|
186 |
+
184,54.0,60.0,1.015,3.0,2.0,,abnormal,notpresent,notpresent,352.0,137.0,3.3,133.0,4.5,11.3,31,5800,3.6,yes,yes,yes,poor,yes,no,ckd
|
187 |
+
185,4.0,,1.02,1.0,0.0,,normal,notpresent,notpresent,99.0,23.0,0.6,138.0,4.4,12.0,34, ?,,no,no,no,good,no,no,ckd
|
188 |
+
186,8.0,50.0,1.02,4.0,0.0,normal,normal,notpresent,notpresent,,46.0,1.0,135.0,3.8,,,,,no,no,no,good,yes,no,ckd
|
189 |
+
187,3.0,,1.01,2.0,0.0,normal,normal,notpresent,notpresent,,22.0,0.7,,,10.7,34,12300,,no,no,no,good,no,no,ckd
|
190 |
+
188,8.0,,,,,,,notpresent,notpresent,80.0,66.0,2.5,142.0,3.6,12.2,38,,,no, no,no,good,no,no,ckd
|
191 |
+
189,64.0,60.0,1.01,4.0,1.0,abnormal,abnormal,notpresent,present,239.0,58.0,4.3,137.0,5.4,9.5,29,7500,3.4,yes,yes,no,poor,yes,no,ckd
|
192 |
+
190,6.0,60.0,1.01,4.0,0.0,abnormal,abnormal,notpresent,present,94.0,67.0,1.0,135.0,4.9,9.9,30,16700,4.8,no,no,no,poor,no,no,ckd
|
193 |
+
191,,70.0,1.01,3.0,0.0,normal,normal,notpresent,notpresent,110.0,115.0,6.0,134.0,2.7,9.1,26,9200,3.4,yes,yes,no,poor,no,no,ckd
|
194 |
+
192,46.0,110.0,1.015,0.0,0.0,,normal,notpresent,notpresent,130.0,16.0,0.9,,,,,,,no,no,no,good,no,no,ckd
|
195 |
+
193,32.0,90.0,1.025,1.0,0.0,abnormal,abnormal,notpresent,notpresent,,223.0,18.1,113.0,6.5,5.5,15,2600,2.8,yes,yes,no,poor,yes,yes,ckd
|
196 |
+
194,80.0,70.0,1.01,2.0,,,abnormal,notpresent,notpresent,,49.0,1.2,,,,,,,yes, yes,no,good,no,no,ckd
|
197 |
+
195,70.0,90.0,1.02,2.0,1.0,abnormal,abnormal,notpresent,present,184.0,98.6,3.3,138.0,3.9,5.8,,,,yes,yes,yes,poor,no,no,ckd
|
198 |
+
196,49.0,100.0,1.01,3.0,0.0,abnormal,abnormal,notpresent,notpresent,129.0,158.0,11.8,122.0,3.2,8.1,24,9600,3.5,yes,yes,no,poor,yes,yes,ckd
|
199 |
+
197,57.0,80.0,,,,,,notpresent,notpresent,,111.0,9.3,124.0,5.3,6.8,,4300,3.0,yes,yes,no,good,no,yes,ckd
|
200 |
+
198,59.0,100.0,1.02,4.0,2.0,normal,normal,notpresent,notpresent,252.0,40.0,3.2,137.0,4.7,11.2,30,26400,3.9,yes,yes,no,poor,yes,no,ckd
|
201 |
+
199,65.0,80.0,1.015,0.0,0.0,,normal,notpresent,notpresent,92.0,37.0,1.5,140.0,5.2,8.8,25,10700,3.2,yes,no,yes,good,yes,no,ckd
|
202 |
+
200,90.0,90.0,1.025,1.0,0.0,,normal,notpresent,notpresent,139.0,89.0,3.0,140.0,4.1,12.0,37,7900,3.9,yes,yes,no,good,no,no,ckd
|
203 |
+
201,64.0,70.0,,,,,,notpresent,notpresent,113.0,94.0,7.3,137.0,4.3,7.9,21,,,yes,yes,yes,good,yes,yes,ckd
|
204 |
+
202,78.0,60.0,,,,,,notpresent,notpresent,114.0,74.0,2.9,135.0,5.9,8.0,24,,,no,yes,no,good,no,yes,ckd
|
205 |
+
203,,90.0,,,,,,notpresent,notpresent,207.0,80.0,6.8,142.0,5.5,8.5,,,,yes,yes,no,good,no,yes,ckd
|
206 |
+
204,65.0,90.0,1.01,4.0,2.0,normal,normal,notpresent,notpresent,172.0,82.0,13.5,145.0,6.3,8.8,31,,,yes,yes,no,good,yes,yes,ckd
|
207 |
+
205,61.0,70.0,,,,,,notpresent,notpresent,100.0,28.0,2.1,,,12.6,43,,,yes,yes,no,good,no,no,ckd
|
208 |
+
206,60.0,70.0,1.01,1.0,0.0,,normal,notpresent,notpresent,109.0,96.0,3.9,135.0,4.0,13.8,41,,,yes,no,no,good,no,no,ckd
|
209 |
+
207,50.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,230.0,50.0,2.2,,,12.0,41,10400,4.6,yes,yes,no,good,no,no,ckd
|
210 |
+
208,67.0,80.0,,,,,,notpresent,notpresent,341.0,37.0,1.5,,,12.3,41,6900,4.9,yes,yes,no,good,no,yes,ckd
|
211 |
+
209,19.0,70.0,1.02,0.0,0.0,,normal,notpresent,notpresent,,,,,,11.5,,6900,,no,no,no,good,no,no,ckd
|
212 |
+
210,59.0,100.0,1.015,4.0,2.0,normal,normal,notpresent,notpresent,255.0,132.0,12.8,135.0,5.7,7.3,20,9800,3.9,yes,yes,yes,good,no,yes,ckd
|
213 |
+
211,54.0,120.0,1.015,0.0,0.0,,normal,notpresent,notpresent,103.0,18.0,1.2,,,,,,,no,no,no,good,no,no,ckd
|
214 |
+
212,40.0,70.0,1.015,3.0,4.0,normal,normal,notpresent,notpresent,253.0,150.0,11.9,132.0,5.6,10.9,31,8800,3.4,yes,yes,no,poor,yes,no,ckd
|
215 |
+
213,55.0,80.0,1.01,3.0,1.0,normal,abnormal,present,present,214.0,73.0,3.9,137.0,4.9,10.9,34,7400,3.7,yes,yes,no,good,yes,no,ckd
|
216 |
+
214,68.0,80.0,1.015,0.0,0.0,,abnormal,notpresent,notpresent,171.0,30.0,1.0,,,13.7, 43,4900,5.2,no,yes,no,good,no,no,ckd
|
217 |
+
215,2.0,,1.01,3.0,0.0,normal,abnormal,notpresent,notpresent,,,,,,,,,,no,no,no,good,yes,no,ckd
|
218 |
+
216,64.0,70.0,1.01,0.0,0.0,,normal,notpresent,notpresent,107.0,15.0,,,,12.8,38,,,no,no,no,good,no,no,ckd
|
219 |
+
217,63.0,100.0,1.01,1.0,0.0,,normal,notpresent,notpresent,78.0,61.0,1.8,141.0,4.4,12.2,36,10500,4.3,no,yes,no,good,no,no,ckd
|
220 |
+
218,33.0,90.0,1.015,0.0,0.0,,normal,notpresent,notpresent,92.0,19.0,0.8,,,11.8,34,7000,,no,no,no,good,no,no,ckd
|
221 |
+
219,68.0,90.0,1.01,0.0,0.0,,normal,notpresent,notpresent,238.0,57.0,2.5,,,9.8,28,8000,3.3,yes,yes,no,poor,no,no,ckd
|
222 |
+
220,36.0,80.0,1.01,0.0,0.0,,normal,notpresent,notpresent,103.0,,,,,11.9,36,8800,,no,no,no,good,no,no,ckd
|
223 |
+
221,66.0,70.0,1.02,1.0,0.0,normal,,notpresent,notpresent,248.0,30.0,1.7,138.0,5.3,,,,,yes,yes,no,good,no,no,ckd
|
224 |
+
222,74.0,60.0,,,,,,notpresent,notpresent,108.0,68.0,1.8,,,,,,,yes,yes,no,good,no,no,ckd
|
225 |
+
223,71.0,90.0,1.01,0.0,3.0,,normal,notpresent,notpresent,303.0,30.0,1.3,136.0,4.1,13.0,38,9200,4.6,yes,yes,no,good,no,no,ckd
|
226 |
+
224,34.0,60.0,1.02,0.0,0.0,,normal,notpresent,notpresent,117.0,28.0,2.2,138.0,3.8,,,,,no,no,no,good,yes,no,ckd
|
227 |
+
225,60.0,90.0,1.01,3.0,5.0,abnormal,normal,notpresent,present,490.0,95.0,2.7,131.0,3.8,11.5,35,12000,4.5,yes,yes,no,good,no,no,ckd
|
228 |
+
226,64.0,100.0,1.015,4.0,2.0,abnormal,abnormal,notpresent,present,163.0,54.0,7.2,140.0,4.6,7.9,26,7500,3.4,yes,yes,no,good,yes,no,ckd
|
229 |
+
227,57.0,80.0,1.015,0.0,0.0,,normal,notpresent,notpresent,120.0,48.0,1.6,,,11.3,36,7200,3.8,yes,yes,no,good,no,no,ckd
|
230 |
+
228,60.0,70.0,,,,,,notpresent,notpresent,124.0,52.0,2.5,,,,,,,yes,no,no,good,no,no,ckd
|
231 |
+
229,59.0,50.0,1.01,3.0,0.0,normal,abnormal,notpresent,notpresent,241.0,191.0,12.0,114.0,2.9,9.6,31,15700,3.8,no,yes,no,good,yes,no,ckd
|
232 |
+
230,65.0,60.0,1.01,2.0,0.0,normal,abnormal,present,notpresent,192.0,17.0,1.7,130.0,4.3,,,9500,,yes,yes,no,poor,no,no,ckd
|
233 |
+
231,60.0,90.0,,,,,,notpresent,notpresent,269.0,51.0,2.8,138.0,3.7,11.5,35,,,yes,yes,yes,good,yes,no,ckd
|
234 |
+
232,50.0,90.0,1.015,1.0,0.0,abnormal,abnormal,notpresent,notpresent,,,,,,,,,,no,no,no,good,yes,no,ckd
|
235 |
+
233,51.0,100.0,1.015,2.0,0.0,normal,normal,notpresent,present,93.0,20.0,1.6,146.0,4.5,,,,,no,no,no,poor,no,no,ckd
|
236 |
+
234,37.0,100.0,1.01,0.0,0.0,abnormal,normal,notpresent,notpresent,,19.0,1.3,,,15.0,44,4100,5.2,yes,no,no,good,no,no,ckd
|
237 |
+
235,45.0,70.0,1.01,2.0,0.0,,normal,notpresent,notpresent,113.0,93.0,2.3,,,7.9,26,5700,,no,no,yes,good,no,yes,ckd
|
238 |
+
236,65.0,80.0,,,,,,notpresent,notpresent,74.0,66.0,2.0,136.0,5.4,9.1,25,,,yes,yes,yes,good,yes,no,ckd
|
239 |
+
237,80.0,70.0,1.015,2.0,2.0,,normal,notpresent,notpresent,141.0,53.0,2.2,,,12.7,40,9600,,yes,yes,no,poor,yes,no,ckd
|
240 |
+
238,72.0,100.0,,,,,,notpresent,notpresent,201.0,241.0,13.4,127.0,4.8,9.4,28,,,yes,yes,no,good,no,yes,ckd
|
241 |
+
239,34.0,90.0,1.015,2.0,0.0,normal,normal,notpresent,notpresent,104.0,50.0,1.6,137.0,4.1,11.9,39,,,no,no,no,good,no,no,ckd
|
242 |
+
240,65.0,70.0,1.015,1.0,0.0,,normal,notpresent,notpresent,203.0,46.0,1.4,,,11.4,36,5000,4.1,yes,yes,no,poor,yes,no,ckd
|
243 |
+
241,57.0,70.0,1.015,1.0,0.0,,abnormal,notpresent,notpresent,165.0,45.0,1.5,140.0,3.3,10.4,31,4200,3.9,no,no,no,good,no,no,ckd
|
244 |
+
242,69.0,70.0,1.01,4.0,3.0,normal,abnormal,present,present,214.0,96.0,6.3,120.0,3.9,9.4,28,11500,3.3,yes,yes,yes,good,yes,yes,ckd
|
245 |
+
243,62.0,90.0,1.02,2.0,1.0,,normal,notpresent,notpresent,169.0,48.0,2.4,138.0,2.9,13.4,47,11000,6.1,yes,no,no,good,no,no,ckd
|
246 |
+
244,64.0,90.0,1.015,3.0,2.0,,abnormal,present,notpresent,463.0,64.0,2.8,135.0,4.1,12.2,40,9800,4.6,yes,yes,no,good,no,yes,ckd
|
247 |
+
245,48.0,100.0,,,,,,notpresent,notpresent,103.0,79.0,5.3,135.0,6.3,6.3,19,7200,2.6,yes,no,yes,poor,no,no,ckd
|
248 |
+
246,48.0,110.0,1.015,3.0,0.0,abnormal,normal,present,notpresent,106.0,215.0,15.2,120.0,5.7,8.6,26,5000,2.5,yes,no,yes,good,no,yes,ckd
|
249 |
+
247,54.0,90.0,1.025,1.0,0.0,normal,abnormal,notpresent,notpresent,150.0,18.0,1.2,140.0,4.2,,,,,no,no,no,poor,yes,yes,ckd
|
250 |
+
248,59.0,70.0,1.01,1.0,3.0,abnormal,abnormal,notpresent,notpresent,424.0,55.0,1.7,138.0,4.5,12.6,37,10200,4.1,yes,yes,yes,good,no,no,ckd
|
251 |
+
249,56.0,90.0,1.01,4.0,1.0,normal,abnormal,present,notpresent,176.0,309.0,13.3,124.0,6.5,3.1,9,5400,2.1,yes,yes,no,poor,yes,yes,ckd
|
252 |
+
250,40.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,140.0,10.0,1.2,135.0,5.0,15.0,48,10400,4.5,no,no,no,good,no,no,notckd
|
253 |
+
251,23.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,70.0,36.0,1.0,150.0,4.6,17.0,52,9800,5.0,no,no,no,good,no,no,notckd
|
254 |
+
252,45.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,82.0,49.0,0.6,147.0,4.4,15.9,46,9100,4.7,no,no,no,good,no,no,notckd
|
255 |
+
253,57.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,119.0,17.0,1.2,135.0,4.7,15.4,42,6200,6.2,no,no,no,good,no,no,notckd
|
256 |
+
254,51.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,99.0,38.0,0.8,135.0,3.7,13.0,49,8300,5.2,no,no,no,good,no,no,notckd
|
257 |
+
255,34.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,121.0,27.0,1.2,144.0,3.9,13.6,52,9200,6.3,no,no,no,good,no,no,notckd
|
258 |
+
256,60.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,131.0,10.0,0.5,146.0,5.0,14.5,41,10700,5.1,no,no,no,good,no,no,notckd
|
259 |
+
257,38.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,91.0,36.0,0.7,135.0,3.7,14.0,46,9100,5.8,no,no,no,good,no,no,notckd
|
260 |
+
258,42.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,98.0,20.0,0.5,140.0,3.5,13.9,44,8400,5.5,no,no,no,good,no,no,notckd
|
261 |
+
259,35.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,104.0,31.0,1.2,135.0,5.0,16.1,45,4300,5.2,no,no,no,good,no,no,notckd
|
262 |
+
260,30.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,131.0,38.0,1.0,147.0,3.8,14.1,45,9400,5.3,no,no,no,good,no,no,notckd
|
263 |
+
261,49.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,122.0,32.0,1.2,139.0,3.9,17.0,41,5600,4.9,no,no,no,good,no,no,notckd
|
264 |
+
262,55.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,118.0,18.0,0.9,135.0,3.6,15.5,43,7200,5.4,no,no,no,good,no,no,notckd
|
265 |
+
263,45.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,117.0,46.0,1.2,137.0,5.0,16.2,45,8600,5.2,no,no,no,good,no,no,notckd
|
266 |
+
264,42.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,132.0,24.0,0.7,140.0,4.1,14.4,50,5000,4.5,no,no,no,good,no,no,notckd
|
267 |
+
265,50.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,97.0,40.0,0.6,150.0,4.5,14.2,48,10500,5.0,no,no,no,good,no,no,notckd
|
268 |
+
266,55.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,133.0,17.0,1.2,135.0,4.8,13.2,41,6800,5.3,no,no,no,good,no,no,notckd
|
269 |
+
267,48.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,122.0,33.0,0.9,146.0,3.9,13.9,48,9500,4.8,no,no,no,good,no,no,notckd
|
270 |
+
268,,80.0,,,,,,notpresent,notpresent,100.0,49.0,1.0,140.0,5.0,16.3,53,8500,4.9,no,no,no,good,no,no,notckd
|
271 |
+
269,25.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,121.0,19.0,1.2,142.0,4.9,15.0,48,6900,5.3,no,no,no,good,no,no,notckd
|
272 |
+
270,23.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,111.0,34.0,1.1,145.0,4.0,14.3,41,7200,5.0,no,no,no,good,no,no,notckd
|
273 |
+
271,30.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,96.0,25.0,0.5,144.0,4.8,13.8,42,9000,4.5,no,no,no,good,no,no,notckd
|
274 |
+
272,56.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,139.0,15.0,1.2,135.0,5.0,14.8,42,5600,5.5,no,no,no,good,no,no,notckd
|
275 |
+
273,47.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,95.0,35.0,0.9,140.0,4.1,,,,,no,no,no,good,no,no,notckd
|
276 |
+
274,19.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,107.0,23.0,0.7,141.0,4.2,14.4,44,,,no,no,no,good,no,no,notckd
|
277 |
+
275,52.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,125.0,22.0,1.2,139.0,4.6,16.5,43,4700,4.6,no,no,no,good,no,no,notckd
|
278 |
+
276,20.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,,,,137.0,4.7,14.0,41,4500,5.5,no,no,no,good,no,no,notckd
|
279 |
+
277,46.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,123.0,46.0,1.0,135.0,5.0,15.7,50,6300,4.8,no,no,no,good,no,no,notckd
|
280 |
+
278,48.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,112.0,44.0,1.2,142.0,4.9,14.5,44,9400,6.4,no,no,no,good,no,no,notckd
|
281 |
+
279,24.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,140.0,23.0,0.6,140.0,4.7,16.3,48,5800,5.6,no,no,no,good,no,no,notckd
|
282 |
+
280,47.0,80.0,,,,,,notpresent,notpresent,93.0,33.0,0.9,144.0,4.5,13.3,52,8100,5.2,no,no,no,good,no,no,notckd
|
283 |
+
281,55.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,130.0,50.0,1.2,147.0,5.0,15.5,41,9100,6.0,no,no,no,good,no,no,notckd
|
284 |
+
282,20.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,123.0,44.0,1.0,135.0,3.8,14.6,44,5500,4.8,no,no,no,good,no,no,notckd
|
285 |
+
283,60.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,,,,,,16.4,43,10800,5.7,no,no,no,good,no,no,notckd
|
286 |
+
284,33.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,100.0,37.0,1.2,142.0,4.0,16.9,52,6700,6.0,no,no,no,good,no,no,notckd
|
287 |
+
285,66.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,94.0,19.0,0.7,135.0,3.9,16.0,41,5300,5.9,no,no,no,good,no,no,notckd
|
288 |
+
286,71.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,81.0,18.0,0.8,145.0,5.0,14.7,44,9800,6.0,no,no,no,good,no,no,notckd
|
289 |
+
287,39.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,124.0,22.0,0.6,137.0,3.8,13.4,43,,,no,no,no,good,no,no,notckd
|
290 |
+
288,56.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,70.0,46.0,1.2,135.0,4.9,15.9,50,11000,5.1,,,,good,no,no,notckd
|
291 |
+
289,42.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,93.0,32.0,0.9,143.0,4.7,16.6,43,7100,5.3,no,no,no,good,no,no,notckd
|
292 |
+
290,54.0,70.0,1.02,0.0,0.0,,,,,76.0,28.0,0.6,146.0,3.5,14.8,52,8400,5.9,no,no,no,good,no,no,notckd
|
293 |
+
291,47.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,124.0,44.0,1.0,140.0,4.9,14.9,41,7000,5.7,no,no,no,good,no,no,notckd
|
294 |
+
292,30.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,89.0,42.0,0.5,139.0,5.0,16.7,52,10200,5.0,no,no,no,good,no,no,notckd
|
295 |
+
293,50.0,,1.02,0.0,0.0,normal,normal,notpresent,notpresent,92.0,19.0,1.2,150.0,4.8,14.9,48,4700,5.4,no,no,no,good,no,no,notckd
|
296 |
+
294,75.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,110.0,50.0,0.7,135.0,5.0,14.3,40,8300,5.8,no,no,no,,,,notckd
|
297 |
+
295,44.0,70.0,,,,,,notpresent,notpresent,106.0,25.0,0.9,150.0,3.6,15.0,50,9600,6.5,no,no,no,good,no,no,notckd
|
298 |
+
296,41.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,125.0,38.0,0.6,140.0,5.0,16.8,41,6300,5.9,no,no,no,good,no,no,notckd
|
299 |
+
297,53.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,116.0,26.0,1.0,146.0,4.9,15.8,45,7700,5.2,,,,good,no,no,notckd
|
300 |
+
298,34.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,91.0,49.0,1.2,135.0,4.5,13.5,48,8600,4.9,no,no,no,good,no,no,notckd
|
301 |
+
299,73.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,127.0,48.0,0.5,150.0,3.5,15.1,52,11000,4.7,no,no,no,good,no,no,notckd
|
302 |
+
300,45.0,60.0,1.02,0.0,0.0,normal,normal,,,114.0,26.0,0.7,141.0,4.2,15.0,43,9200,5.8,no,no,no,good,no,no,notckd
|
303 |
+
301,44.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,96.0,33.0,0.9,147.0,4.5,16.9,41,7200,5.0,no,no,no,good,no,no,notckd
|
304 |
+
302,29.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,127.0,44.0,1.2,145.0,5.0,14.8,48,,,no,no,no,good,no,no,notckd
|
305 |
+
303,55.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,107.0,26.0,1.1,,,17.0,50,6700,6.1,no,no,no,good,no,no,notckd
|
306 |
+
304,33.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,128.0,38.0,0.6,135.0,3.9,13.1,45,6200,4.5,no,no,no,good,no,no,notckd
|
307 |
+
305,41.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,122.0,25.0,0.8,138.0,5.0,17.1,41,9100,5.2,no,no,no,good,no,no,notckd
|
308 |
+
306,52.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,128.0,30.0,1.2,140.0,4.5,15.2,52,4300,5.7,no,no,no,good,no,no,notckd
|
309 |
+
307,47.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,137.0,17.0,0.5,150.0,3.5,13.6,44,7900,4.5,no,no,no,good,no,no,notckd
|
310 |
+
308,43.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,81.0,46.0,0.6,135.0,4.9,13.9,48,6900,4.9,no,no,no,good,no,no,notckd
|
311 |
+
309,51.0,60.0,1.02,0.0,0.0,,,notpresent,notpresent,129.0,25.0,1.2,139.0,5.0,17.2,40,8100,5.9,no,no,no,good,no,no,notckd
|
312 |
+
310,46.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,102.0,27.0,0.7,142.0,4.9,13.2,44,11000,5.4,no,no,no,good,no,no,notckd
|
313 |
+
311,56.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,132.0,18.0,1.1,147.0,4.7,13.7,45,7500,5.6,no,no,no,good,no,no,notckd
|
314 |
+
312,80.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,,,,135.0,4.1,15.3,48,6300,6.1,no,no,no,good,no,no,notckd
|
315 |
+
313,55.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,104.0,28.0,0.9,142.0,4.8,17.3,52,8200,4.8,no,no,no,good,no,no,notckd
|
316 |
+
314,39.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,131.0,46.0,0.6,145.0,5.0,15.6,41,9400,4.7,no,no,no,good,no,no,notckd
|
317 |
+
315,44.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,,,,,,13.8,48,7800,4.4,no,no,no,good,no,no,notckd
|
318 |
+
316,35.0,,1.02,0.0,0.0,normal,normal,,,99.0,30.0,0.5,135.0,4.9,15.4,48,5000,5.2,no,no,no,good,no,no,notckd
|
319 |
+
317,58.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,102.0,48.0,1.2,139.0,4.3,15.0,40,8100,4.9,no,no,no,good,no,no,notckd
|
320 |
+
318,61.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,120.0,29.0,0.7,137.0,3.5,17.4,52,7000,5.3,no,no,no,good,no,no,notckd
|
321 |
+
319,30.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,138.0,15.0,1.1,135.0,4.4,,,,,no,no,no,good,no,no,notckd
|
322 |
+
320,57.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,105.0,49.0,1.2,150.0,4.7,15.7,44,10400,6.2,no,no,no,good,no,no,notckd
|
323 |
+
321,65.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,109.0,39.0,1.0,144.0,3.5,13.9,48,9600,4.8,no,no,no,good,no,no,notckd
|
324 |
+
322,70.0,60.0,,,,,,notpresent,notpresent,120.0,40.0,0.5,140.0,4.6,16.0,43,4500,4.9,no,no,no,good,no,no,notckd
|
325 |
+
323,43.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,130.0,30.0,1.1,143.0,5.0,15.9,45,7800,4.5,no,no,no,good,no,no,notckd
|
326 |
+
324,40.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,119.0,15.0,0.7,150.0,4.9,,,,,no,no,no,good,no,no,notckd
|
327 |
+
325,58.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,100.0,50.0,1.2,140.0,3.5,14.0,50,6700,6.5,no,no,no,good,no,no,notckd
|
328 |
+
326,47.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,109.0,25.0,1.1,141.0,4.7,15.8,41,8300,5.2,no,no,no,good,no,no,notckd
|
329 |
+
327,30.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,120.0,31.0,0.8,150.0,4.6,13.4,44,10700,5.8,no,no,no,good,no,no,notckd
|
330 |
+
328,28.0,70.0,1.02,0.0,0.0,normal,normal,,,131.0,29.0,0.6,145.0,4.9,,45,8600,6.5,no,no,no,good,no,no,notckd
|
331 |
+
329,33.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,80.0,25.0,0.9,146.0,3.5,14.1,48,7800,5.1,no,no,no,good,no,no,notckd
|
332 |
+
330,43.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,114.0,32.0,1.1,135.0,3.9,,42,,,no,no,no,good,no,no,notckd
|
333 |
+
331,59.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,130.0,39.0,0.7,147.0,4.7,13.5,46,6700,4.5,no,no,no,good,no,no,notckd
|
334 |
+
332,34.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,,33.0,1.0,150.0,5.0,15.3,44,10500,6.1,no,no,no,good,no,no,notckd
|
335 |
+
333,23.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,99.0,46.0,1.2,142.0,4.0,17.7,46,4300,5.5,no,no,no,good,no,no,notckd
|
336 |
+
334,24.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,125.0,,,136.0,3.5,15.4,43,5600,4.5,no,no,no,good,no,no,notckd
|
337 |
+
335,60.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,134.0,45.0,0.5,139.0,4.8,14.2,48,10700,5.6,no,no,no,good,no,no,notckd
|
338 |
+
336,25.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,119.0,27.0,0.5,,,15.2,40,9200,5.2,no,no,no,good,no,no,notckd
|
339 |
+
337,44.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,92.0,40.0,0.9,141.0,4.9,14.0,52,7500,6.2,no,no,no,good,no,no,notckd
|
340 |
+
338,62.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,132.0,34.0,0.8,147.0,3.5,17.8,44,4700,4.5,no,no,no,good,no,no,notckd
|
341 |
+
339,25.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,88.0,42.0,0.5,136.0,3.5,13.3,48,7000,4.9,no,no,no,good,no,no,notckd
|
342 |
+
340,32.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,100.0,29.0,1.1,142.0,4.5,14.3,43,6700,5.9,no,no,no,good,no,no,notckd
|
343 |
+
341,63.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,130.0,37.0,0.9,150.0,5.0,13.4,41,7300,4.7,no,no,no,good,no,no,notckd
|
344 |
+
342,44.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,95.0,46.0,0.5,138.0,4.2,15.0,50,7700,6.3,no,no,no,good,no,no,notckd
|
345 |
+
343,37.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,111.0,35.0,0.8,135.0,4.1,16.2,50,5500,5.7,no,no,no,good,no,no,notckd
|
346 |
+
344,64.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,106.0,27.0,0.7,150.0,3.3,14.4,42,8100,4.7,no,no,no,good,no,no,notckd
|
347 |
+
345,22.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,97.0,18.0,1.2,138.0,4.3,13.5,42,7900,6.4,no,no,no,good,no,no,notckd
|
348 |
+
346,33.0,60.0,,,,normal,normal,notpresent,notpresent,130.0,41.0,0.9,141.0,4.4,15.5,52,4300,5.8,no,no,no,good,no,no,notckd
|
349 |
+
347,43.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,108.0,25.0,1.0,144.0,5.0,17.8,43,7200,5.5,no,no,no,good,no,no,notckd
|
350 |
+
348,38.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,99.0,19.0,0.5,147.0,3.5,13.6,44,7300,6.4,no,no,no,good,no,no,notckd
|
351 |
+
349,35.0,70.0,1.025,0.0,0.0,,,notpresent,notpresent,82.0,36.0,1.1,150.0,3.5,14.5,52,9400,6.1,no,no,no,good,no,no,notckd
|
352 |
+
350,65.0,70.0,1.025,0.0,0.0,,,notpresent,notpresent,85.0,20.0,1.0,142.0,4.8,16.1,43,9600,4.5,no,no,no,good,no,no,notckd
|
353 |
+
351,29.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,83.0,49.0,0.9,139.0,3.3,17.5,40,9900,4.7,no,no,no,good,no,no,notckd
|
354 |
+
352,37.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,109.0,47.0,1.1,141.0,4.9,15.0,48,7000,5.2,no,no,no,good,no,no,notckd
|
355 |
+
353,39.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,86.0,37.0,0.6,150.0,5.0,13.6,51,5800,4.5,no,no,no,good,no,no,notckd
|
356 |
+
354,32.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,102.0,17.0,0.4,147.0,4.7,14.6,41,6800,5.1,no,no,no,good,no,no,notckd
|
357 |
+
355,23.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,95.0,24.0,0.8,145.0,5.0,15.0,52,6300,4.6,no,no,no,good,no,no,notckd
|
358 |
+
356,34.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,87.0,38.0,0.5,144.0,4.8,17.1,47,7400,6.1,no,no,no,good,no,no,notckd
|
359 |
+
357,66.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,107.0,16.0,1.1,140.0,3.6,13.6,42,11000,4.9,no,no,no,good,no,no,notckd
|
360 |
+
358,47.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,117.0,22.0,1.2,138.0,3.5,13.0,45,5200,5.6,no,no,no,good,no,no,notckd
|
361 |
+
359,74.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,88.0,50.0,0.6,147.0,3.7,17.2,53,6000,4.5,no,no,no,good,no,no,notckd
|
362 |
+
360,35.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,105.0,39.0,0.5,135.0,3.9,14.7,43,5800,6.2,no,no,no,good,no,no,notckd
|
363 |
+
361,29.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,70.0,16.0,0.7,138.0,3.5,13.7,54,5400,5.8,no,no,no,good,no,no,notckd
|
364 |
+
362,33.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,89.0,19.0,1.1,144.0,5.0,15.0,40,10300,4.8,no,no,no,good,no,no,notckd
|
365 |
+
363,67.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,99.0,40.0,0.5,,,17.8,44,5900,5.2,no,no,no,good,no,no,notckd
|
366 |
+
364,73.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,118.0,44.0,0.7,137.0,3.5,14.8,45,9300,4.7,no,no,no,good,no,no,notckd
|
367 |
+
365,24.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,93.0,46.0,1.0,145.0,3.5,,,10700,6.3,no,no,no,good,no,no,notckd
|
368 |
+
366,60.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,81.0,15.0,0.5,141.0,3.6,15.0,46,10500,5.3,no,no,no,good,no,no,notckd
|
369 |
+
367,68.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,125.0,41.0,1.1,139.0,3.8,17.4,50,6700,6.1,no,no,no,good,no,no,notckd
|
370 |
+
368,30.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,82.0,42.0,0.7,146.0,5.0,14.9,45,9400,5.9,no,no,no,good,no,no,notckd
|
371 |
+
369,75.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,107.0,48.0,0.8,144.0,3.5,13.6,46,10300,4.8,no,no,no,good,no,no,notckd
|
372 |
+
370,69.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,83.0,42.0,1.2,139.0,3.7,16.2,50,9300,5.4,no,no,no,good,no,no,notckd
|
373 |
+
371,28.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,79.0,50.0,0.5,145.0,5.0,17.6,51,6500,5.0,no,no,no,good,no,no,notckd
|
374 |
+
372,72.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,109.0,26.0,0.9,150.0,4.9,15.0,52,10500,5.5,no,no,no,good,no,no,notckd
|
375 |
+
373,61.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,133.0,38.0,1.0,142.0,3.6,13.7,47,9200,4.9,no,no,no,good,no,no,notckd
|
376 |
+
374,79.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,111.0,44.0,1.2,146.0,3.6,16.3,40,8000,6.4,no,no,no,good,no,no,notckd
|
377 |
+
375,70.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,74.0,41.0,0.5,143.0,4.5,15.1,48,9700,5.6,no,no,no,good,no,no,notckd
|
378 |
+
376,58.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,88.0,16.0,1.1,147.0,3.5,16.4,53,9100,5.2,no,no,no,good,no,no,notckd
|
379 |
+
377,64.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,97.0,27.0,0.7,145.0,4.8,13.8,49,6400,4.8,no,no,no,good,no,no,notckd
|
380 |
+
378,71.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,,,0.9,140.0,4.8,15.2,42,7700,5.5,no,no,no,good,no,no,notckd
|
381 |
+
379,62.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,78.0,45.0,0.6,138.0,3.5,16.1,50,5400,5.7,no,no,no,good,no,no,notckd
|
382 |
+
380,59.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,113.0,23.0,1.1,139.0,3.5,15.3,54,6500,4.9,no,no,no,good,no,no,notckd
|
383 |
+
381,71.0,70.0,1.025,0.0,0.0,,,notpresent,notpresent,79.0,47.0,0.5,142.0,4.8,16.6,40,5800,5.9,no,no,no,good,no,no,notckd
|
384 |
+
382,48.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,75.0,22.0,0.8,137.0,5.0,16.8,51,6000,6.5,no,no,no,good,no,no,notckd
|
385 |
+
383,80.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,119.0,46.0,0.7,141.0,4.9,13.9,49,5100,5.0,no,no,no,good,no,no,notckd
|
386 |
+
384,57.0,60.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,132.0,18.0,1.1,150.0,4.7,15.4,42,11000,4.5,no,no,no,good,no,no,notckd
|
387 |
+
385,63.0,70.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,113.0,25.0,0.6,146.0,4.9,16.5,52,8000,5.1,no,no,no,good,no,no,notckd
|
388 |
+
386,46.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,100.0,47.0,0.5,142.0,3.5,16.4,43,5700,6.5,no,no,no,good,no,no,notckd
|
389 |
+
387,15.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,93.0,17.0,0.9,136.0,3.9,16.7,50,6200,5.2,no,no,no,good,no,no,notckd
|
390 |
+
388,51.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,94.0,15.0,1.2,144.0,3.7,15.5,46,9500,6.4,no,no,no,good,no,no,notckd
|
391 |
+
389,41.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,112.0,48.0,0.7,140.0,5.0,17.0,52,7200,5.8,no,no,no,good,no,no,notckd
|
392 |
+
390,52.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,99.0,25.0,0.8,135.0,3.7,15.0,52,6300,5.3,no,no,no,good,no,no,notckd
|
393 |
+
391,36.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,85.0,16.0,1.1,142.0,4.1,15.6,44,5800,6.3,no,no,no,good,no,no,notckd
|
394 |
+
392,57.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,133.0,48.0,1.2,147.0,4.3,14.8,46,6600,5.5,no,no,no,good,no,no,notckd
|
395 |
+
393,43.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,117.0,45.0,0.7,141.0,4.4,13.0,54,7400,5.4,no,no,no,good,no,no,notckd
|
396 |
+
394,50.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,137.0,46.0,0.8,139.0,5.0,14.1,45,9500,4.6,no,no,no,good,no,no,notckd
|
397 |
+
395,55.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,140.0,49.0,0.5,150.0,4.9,15.7,47,6700,4.9,no,no,no,good,no,no,notckd
|
398 |
+
396,42.0,70.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,75.0,31.0,1.2,141.0,3.5,16.5,54,7800,6.2,no,no,no,good,no,no,notckd
|
399 |
+
397,12.0,80.0,1.02,0.0,0.0,normal,normal,notpresent,notpresent,100.0,26.0,0.6,137.0,4.4,15.8,49,6600,5.4,no,no,no,good,no,no,notckd
|
400 |
+
398,17.0,60.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,114.0,50.0,1.0,135.0,4.9,14.2,51,7200,5.9,no,no,no,good,no,no,notckd
|
401 |
+
399,58.0,80.0,1.025,0.0,0.0,normal,normal,notpresent,notpresent,131.0,18.0,1.1,141.0,3.5,15.8,53,6800,6.1,no,no,no,good,no,no,notckd
|
mp.ipynb
ADDED
@@ -0,0 +1,1108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"nbformat": 4,
|
3 |
+
"nbformat_minor": 0,
|
4 |
+
"metadata": {
|
5 |
+
"colab": {
|
6 |
+
"provenance": []
|
7 |
+
},
|
8 |
+
"kernelspec": {
|
9 |
+
"name": "python3",
|
10 |
+
"display_name": "Python 3"
|
11 |
+
},
|
12 |
+
"language_info": {
|
13 |
+
"name": "python"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
"cells": [
|
17 |
+
{
|
18 |
+
"cell_type": "markdown",
|
19 |
+
"source": [
|
20 |
+
"\n",
|
21 |
+
"\n",
|
22 |
+
"# Mind Pulse\n",
|
23 |
+
"\n"
|
24 |
+
],
|
25 |
+
"metadata": {
|
26 |
+
"id": "uVBQ8eFYMJii"
|
27 |
+
}
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"cell_type": "code",
|
31 |
+
"execution_count": 1,
|
32 |
+
"metadata": {
|
33 |
+
"id": "sOKb4InlIWgE"
|
34 |
+
},
|
35 |
+
"outputs": [],
|
36 |
+
"source": [
|
37 |
+
"# imports\n",
|
38 |
+
"import tensorflow as tf\n",
|
39 |
+
"import pandas as pd\n",
|
40 |
+
"import numpy as np\n",
|
41 |
+
"import matplotlib.pyplot as plt\n",
|
42 |
+
"from sklearn.preprocessing import StandardScaler\n",
|
43 |
+
"from imblearn.over_sampling import RandomOverSampler\n",
|
44 |
+
"import seaborn as sns\n",
|
45 |
+
"from sklearn.model_selection import train_test_split"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"cell_type": "code",
|
50 |
+
"source": [
|
51 |
+
"# using drive to load our dataset\n",
|
52 |
+
"from google.colab import drive\n",
|
53 |
+
"drive.mount('/content/drive')"
|
54 |
+
],
|
55 |
+
"metadata": {
|
56 |
+
"colab": {
|
57 |
+
"base_uri": "https://localhost:8080/"
|
58 |
+
},
|
59 |
+
"id": "Zt5eI3jZI-HI",
|
60 |
+
"outputId": "f396fb7a-04ab-4656-d1c7-634bc71e5916"
|
61 |
+
},
|
62 |
+
"execution_count": 2,
|
63 |
+
"outputs": [
|
64 |
+
{
|
65 |
+
"output_type": "stream",
|
66 |
+
"name": "stdout",
|
67 |
+
"text": [
|
68 |
+
"Mounted at /content/drive\n"
|
69 |
+
]
|
70 |
+
}
|
71 |
+
]
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"cell_type": "code",
|
75 |
+
"source": [
|
76 |
+
"df=pd.read_csv(\"/content/drive/MyDrive/dataset/bs.csv\")\n",
|
77 |
+
"del df['id'],df['ever_married'],df['work_type'],df['Residence_type']\n",
|
78 |
+
"df"
|
79 |
+
],
|
80 |
+
"metadata": {
|
81 |
+
"colab": {
|
82 |
+
"base_uri": "https://localhost:8080/",
|
83 |
+
"height": 423
|
84 |
+
},
|
85 |
+
"id": "q17IF39-JA5c",
|
86 |
+
"outputId": "7827647c-c8a7-48bb-8c61-86df6396fc0d"
|
87 |
+
},
|
88 |
+
"execution_count": 5,
|
89 |
+
"outputs": [
|
90 |
+
{
|
91 |
+
"output_type": "execute_result",
|
92 |
+
"data": {
|
93 |
+
"text/plain": [
|
94 |
+
" gender age hypertension heart_disease avg_glucose_level bmi \\\n",
|
95 |
+
"0 Male 67.0 0 1 228.69 36.6 \n",
|
96 |
+
"1 Female 61.0 0 0 202.21 NaN \n",
|
97 |
+
"2 Male 80.0 0 1 105.92 32.5 \n",
|
98 |
+
"3 Female 49.0 0 0 171.23 34.4 \n",
|
99 |
+
"4 Female 79.0 1 0 174.12 24.0 \n",
|
100 |
+
"... ... ... ... ... ... ... \n",
|
101 |
+
"5105 Female 80.0 1 0 83.75 NaN \n",
|
102 |
+
"5106 Female 81.0 0 0 125.20 40.0 \n",
|
103 |
+
"5107 Female 35.0 0 0 82.99 30.6 \n",
|
104 |
+
"5108 Male 51.0 0 0 166.29 25.6 \n",
|
105 |
+
"5109 Female 44.0 0 0 85.28 26.2 \n",
|
106 |
+
"\n",
|
107 |
+
" smoking_status stroke \n",
|
108 |
+
"0 formerly smoked 1 \n",
|
109 |
+
"1 never smoked 1 \n",
|
110 |
+
"2 never smoked 1 \n",
|
111 |
+
"3 smokes 1 \n",
|
112 |
+
"4 never smoked 1 \n",
|
113 |
+
"... ... ... \n",
|
114 |
+
"5105 never smoked 0 \n",
|
115 |
+
"5106 never smoked 0 \n",
|
116 |
+
"5107 never smoked 0 \n",
|
117 |
+
"5108 formerly smoked 0 \n",
|
118 |
+
"5109 Unknown 0 \n",
|
119 |
+
"\n",
|
120 |
+
"[5110 rows x 8 columns]"
|
121 |
+
],
|
122 |
+
"text/html": [
|
123 |
+
"\n",
|
124 |
+
" <div id=\"df-333ae646-88a6-4364-b7fe-4aeeca781e7e\" class=\"colab-df-container\">\n",
|
125 |
+
" <div>\n",
|
126 |
+
"<style scoped>\n",
|
127 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
128 |
+
" vertical-align: middle;\n",
|
129 |
+
" }\n",
|
130 |
+
"\n",
|
131 |
+
" .dataframe tbody tr th {\n",
|
132 |
+
" vertical-align: top;\n",
|
133 |
+
" }\n",
|
134 |
+
"\n",
|
135 |
+
" .dataframe thead th {\n",
|
136 |
+
" text-align: right;\n",
|
137 |
+
" }\n",
|
138 |
+
"</style>\n",
|
139 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
140 |
+
" <thead>\n",
|
141 |
+
" <tr style=\"text-align: right;\">\n",
|
142 |
+
" <th></th>\n",
|
143 |
+
" <th>gender</th>\n",
|
144 |
+
" <th>age</th>\n",
|
145 |
+
" <th>hypertension</th>\n",
|
146 |
+
" <th>heart_disease</th>\n",
|
147 |
+
" <th>avg_glucose_level</th>\n",
|
148 |
+
" <th>bmi</th>\n",
|
149 |
+
" <th>smoking_status</th>\n",
|
150 |
+
" <th>stroke</th>\n",
|
151 |
+
" </tr>\n",
|
152 |
+
" </thead>\n",
|
153 |
+
" <tbody>\n",
|
154 |
+
" <tr>\n",
|
155 |
+
" <th>0</th>\n",
|
156 |
+
" <td>Male</td>\n",
|
157 |
+
" <td>67.0</td>\n",
|
158 |
+
" <td>0</td>\n",
|
159 |
+
" <td>1</td>\n",
|
160 |
+
" <td>228.69</td>\n",
|
161 |
+
" <td>36.6</td>\n",
|
162 |
+
" <td>formerly smoked</td>\n",
|
163 |
+
" <td>1</td>\n",
|
164 |
+
" </tr>\n",
|
165 |
+
" <tr>\n",
|
166 |
+
" <th>1</th>\n",
|
167 |
+
" <td>Female</td>\n",
|
168 |
+
" <td>61.0</td>\n",
|
169 |
+
" <td>0</td>\n",
|
170 |
+
" <td>0</td>\n",
|
171 |
+
" <td>202.21</td>\n",
|
172 |
+
" <td>NaN</td>\n",
|
173 |
+
" <td>never smoked</td>\n",
|
174 |
+
" <td>1</td>\n",
|
175 |
+
" </tr>\n",
|
176 |
+
" <tr>\n",
|
177 |
+
" <th>2</th>\n",
|
178 |
+
" <td>Male</td>\n",
|
179 |
+
" <td>80.0</td>\n",
|
180 |
+
" <td>0</td>\n",
|
181 |
+
" <td>1</td>\n",
|
182 |
+
" <td>105.92</td>\n",
|
183 |
+
" <td>32.5</td>\n",
|
184 |
+
" <td>never smoked</td>\n",
|
185 |
+
" <td>1</td>\n",
|
186 |
+
" </tr>\n",
|
187 |
+
" <tr>\n",
|
188 |
+
" <th>3</th>\n",
|
189 |
+
" <td>Female</td>\n",
|
190 |
+
" <td>49.0</td>\n",
|
191 |
+
" <td>0</td>\n",
|
192 |
+
" <td>0</td>\n",
|
193 |
+
" <td>171.23</td>\n",
|
194 |
+
" <td>34.4</td>\n",
|
195 |
+
" <td>smokes</td>\n",
|
196 |
+
" <td>1</td>\n",
|
197 |
+
" </tr>\n",
|
198 |
+
" <tr>\n",
|
199 |
+
" <th>4</th>\n",
|
200 |
+
" <td>Female</td>\n",
|
201 |
+
" <td>79.0</td>\n",
|
202 |
+
" <td>1</td>\n",
|
203 |
+
" <td>0</td>\n",
|
204 |
+
" <td>174.12</td>\n",
|
205 |
+
" <td>24.0</td>\n",
|
206 |
+
" <td>never smoked</td>\n",
|
207 |
+
" <td>1</td>\n",
|
208 |
+
" </tr>\n",
|
209 |
+
" <tr>\n",
|
210 |
+
" <th>...</th>\n",
|
211 |
+
" <td>...</td>\n",
|
212 |
+
" <td>...</td>\n",
|
213 |
+
" <td>...</td>\n",
|
214 |
+
" <td>...</td>\n",
|
215 |
+
" <td>...</td>\n",
|
216 |
+
" <td>...</td>\n",
|
217 |
+
" <td>...</td>\n",
|
218 |
+
" <td>...</td>\n",
|
219 |
+
" </tr>\n",
|
220 |
+
" <tr>\n",
|
221 |
+
" <th>5105</th>\n",
|
222 |
+
" <td>Female</td>\n",
|
223 |
+
" <td>80.0</td>\n",
|
224 |
+
" <td>1</td>\n",
|
225 |
+
" <td>0</td>\n",
|
226 |
+
" <td>83.75</td>\n",
|
227 |
+
" <td>NaN</td>\n",
|
228 |
+
" <td>never smoked</td>\n",
|
229 |
+
" <td>0</td>\n",
|
230 |
+
" </tr>\n",
|
231 |
+
" <tr>\n",
|
232 |
+
" <th>5106</th>\n",
|
233 |
+
" <td>Female</td>\n",
|
234 |
+
" <td>81.0</td>\n",
|
235 |
+
" <td>0</td>\n",
|
236 |
+
" <td>0</td>\n",
|
237 |
+
" <td>125.20</td>\n",
|
238 |
+
" <td>40.0</td>\n",
|
239 |
+
" <td>never smoked</td>\n",
|
240 |
+
" <td>0</td>\n",
|
241 |
+
" </tr>\n",
|
242 |
+
" <tr>\n",
|
243 |
+
" <th>5107</th>\n",
|
244 |
+
" <td>Female</td>\n",
|
245 |
+
" <td>35.0</td>\n",
|
246 |
+
" <td>0</td>\n",
|
247 |
+
" <td>0</td>\n",
|
248 |
+
" <td>82.99</td>\n",
|
249 |
+
" <td>30.6</td>\n",
|
250 |
+
" <td>never smoked</td>\n",
|
251 |
+
" <td>0</td>\n",
|
252 |
+
" </tr>\n",
|
253 |
+
" <tr>\n",
|
254 |
+
" <th>5108</th>\n",
|
255 |
+
" <td>Male</td>\n",
|
256 |
+
" <td>51.0</td>\n",
|
257 |
+
" <td>0</td>\n",
|
258 |
+
" <td>0</td>\n",
|
259 |
+
" <td>166.29</td>\n",
|
260 |
+
" <td>25.6</td>\n",
|
261 |
+
" <td>formerly smoked</td>\n",
|
262 |
+
" <td>0</td>\n",
|
263 |
+
" </tr>\n",
|
264 |
+
" <tr>\n",
|
265 |
+
" <th>5109</th>\n",
|
266 |
+
" <td>Female</td>\n",
|
267 |
+
" <td>44.0</td>\n",
|
268 |
+
" <td>0</td>\n",
|
269 |
+
" <td>0</td>\n",
|
270 |
+
" <td>85.28</td>\n",
|
271 |
+
" <td>26.2</td>\n",
|
272 |
+
" <td>Unknown</td>\n",
|
273 |
+
" <td>0</td>\n",
|
274 |
+
" </tr>\n",
|
275 |
+
" </tbody>\n",
|
276 |
+
"</table>\n",
|
277 |
+
"<p>5110 rows × 8 columns</p>\n",
|
278 |
+
"</div>\n",
|
279 |
+
" <div class=\"colab-df-buttons\">\n",
|
280 |
+
"\n",
|
281 |
+
" <div class=\"colab-df-container\">\n",
|
282 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-333ae646-88a6-4364-b7fe-4aeeca781e7e')\"\n",
|
283 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
284 |
+
" style=\"display:none;\">\n",
|
285 |
+
"\n",
|
286 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
287 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
288 |
+
" </svg>\n",
|
289 |
+
" </button>\n",
|
290 |
+
"\n",
|
291 |
+
" <style>\n",
|
292 |
+
" .colab-df-container {\n",
|
293 |
+
" display:flex;\n",
|
294 |
+
" gap: 12px;\n",
|
295 |
+
" }\n",
|
296 |
+
"\n",
|
297 |
+
" .colab-df-convert {\n",
|
298 |
+
" background-color: #E8F0FE;\n",
|
299 |
+
" border: none;\n",
|
300 |
+
" border-radius: 50%;\n",
|
301 |
+
" cursor: pointer;\n",
|
302 |
+
" display: none;\n",
|
303 |
+
" fill: #1967D2;\n",
|
304 |
+
" height: 32px;\n",
|
305 |
+
" padding: 0 0 0 0;\n",
|
306 |
+
" width: 32px;\n",
|
307 |
+
" }\n",
|
308 |
+
"\n",
|
309 |
+
" .colab-df-convert:hover {\n",
|
310 |
+
" background-color: #E2EBFA;\n",
|
311 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
312 |
+
" fill: #174EA6;\n",
|
313 |
+
" }\n",
|
314 |
+
"\n",
|
315 |
+
" .colab-df-buttons div {\n",
|
316 |
+
" margin-bottom: 4px;\n",
|
317 |
+
" }\n",
|
318 |
+
"\n",
|
319 |
+
" [theme=dark] .colab-df-convert {\n",
|
320 |
+
" background-color: #3B4455;\n",
|
321 |
+
" fill: #D2E3FC;\n",
|
322 |
+
" }\n",
|
323 |
+
"\n",
|
324 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
325 |
+
" background-color: #434B5C;\n",
|
326 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
327 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
328 |
+
" fill: #FFFFFF;\n",
|
329 |
+
" }\n",
|
330 |
+
" </style>\n",
|
331 |
+
"\n",
|
332 |
+
" <script>\n",
|
333 |
+
" const buttonEl =\n",
|
334 |
+
" document.querySelector('#df-333ae646-88a6-4364-b7fe-4aeeca781e7e button.colab-df-convert');\n",
|
335 |
+
" buttonEl.style.display =\n",
|
336 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
337 |
+
"\n",
|
338 |
+
" async function convertToInteractive(key) {\n",
|
339 |
+
" const element = document.querySelector('#df-333ae646-88a6-4364-b7fe-4aeeca781e7e');\n",
|
340 |
+
" const dataTable =\n",
|
341 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
342 |
+
" [key], {});\n",
|
343 |
+
" if (!dataTable) return;\n",
|
344 |
+
"\n",
|
345 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
346 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
347 |
+
" + ' to learn more about interactive tables.';\n",
|
348 |
+
" element.innerHTML = '';\n",
|
349 |
+
" dataTable['output_type'] = 'display_data';\n",
|
350 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
351 |
+
" const docLink = document.createElement('div');\n",
|
352 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
353 |
+
" element.appendChild(docLink);\n",
|
354 |
+
" }\n",
|
355 |
+
" </script>\n",
|
356 |
+
" </div>\n",
|
357 |
+
"\n",
|
358 |
+
"\n",
|
359 |
+
"<div id=\"df-ef5bf78d-a8c3-434b-a2cc-b9481c5cc867\">\n",
|
360 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-ef5bf78d-a8c3-434b-a2cc-b9481c5cc867')\"\n",
|
361 |
+
" title=\"Suggest charts\"\n",
|
362 |
+
" style=\"display:none;\">\n",
|
363 |
+
"\n",
|
364 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
365 |
+
" width=\"24px\">\n",
|
366 |
+
" <g>\n",
|
367 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
368 |
+
" </g>\n",
|
369 |
+
"</svg>\n",
|
370 |
+
" </button>\n",
|
371 |
+
"\n",
|
372 |
+
"<style>\n",
|
373 |
+
" .colab-df-quickchart {\n",
|
374 |
+
" --bg-color: #E8F0FE;\n",
|
375 |
+
" --fill-color: #1967D2;\n",
|
376 |
+
" --hover-bg-color: #E2EBFA;\n",
|
377 |
+
" --hover-fill-color: #174EA6;\n",
|
378 |
+
" --disabled-fill-color: #AAA;\n",
|
379 |
+
" --disabled-bg-color: #DDD;\n",
|
380 |
+
" }\n",
|
381 |
+
"\n",
|
382 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
383 |
+
" --bg-color: #3B4455;\n",
|
384 |
+
" --fill-color: #D2E3FC;\n",
|
385 |
+
" --hover-bg-color: #434B5C;\n",
|
386 |
+
" --hover-fill-color: #FFFFFF;\n",
|
387 |
+
" --disabled-bg-color: #3B4455;\n",
|
388 |
+
" --disabled-fill-color: #666;\n",
|
389 |
+
" }\n",
|
390 |
+
"\n",
|
391 |
+
" .colab-df-quickchart {\n",
|
392 |
+
" background-color: var(--bg-color);\n",
|
393 |
+
" border: none;\n",
|
394 |
+
" border-radius: 50%;\n",
|
395 |
+
" cursor: pointer;\n",
|
396 |
+
" display: none;\n",
|
397 |
+
" fill: var(--fill-color);\n",
|
398 |
+
" height: 32px;\n",
|
399 |
+
" padding: 0;\n",
|
400 |
+
" width: 32px;\n",
|
401 |
+
" }\n",
|
402 |
+
"\n",
|
403 |
+
" .colab-df-quickchart:hover {\n",
|
404 |
+
" background-color: var(--hover-bg-color);\n",
|
405 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
406 |
+
" fill: var(--button-hover-fill-color);\n",
|
407 |
+
" }\n",
|
408 |
+
"\n",
|
409 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
410 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
411 |
+
" background-color: var(--disabled-bg-color);\n",
|
412 |
+
" fill: var(--disabled-fill-color);\n",
|
413 |
+
" box-shadow: none;\n",
|
414 |
+
" }\n",
|
415 |
+
"\n",
|
416 |
+
" .colab-df-spinner {\n",
|
417 |
+
" border: 2px solid var(--fill-color);\n",
|
418 |
+
" border-color: transparent;\n",
|
419 |
+
" border-bottom-color: var(--fill-color);\n",
|
420 |
+
" animation:\n",
|
421 |
+
" spin 1s steps(1) infinite;\n",
|
422 |
+
" }\n",
|
423 |
+
"\n",
|
424 |
+
" @keyframes spin {\n",
|
425 |
+
" 0% {\n",
|
426 |
+
" border-color: transparent;\n",
|
427 |
+
" border-bottom-color: var(--fill-color);\n",
|
428 |
+
" border-left-color: var(--fill-color);\n",
|
429 |
+
" }\n",
|
430 |
+
" 20% {\n",
|
431 |
+
" border-color: transparent;\n",
|
432 |
+
" border-left-color: var(--fill-color);\n",
|
433 |
+
" border-top-color: var(--fill-color);\n",
|
434 |
+
" }\n",
|
435 |
+
" 30% {\n",
|
436 |
+
" border-color: transparent;\n",
|
437 |
+
" border-left-color: var(--fill-color);\n",
|
438 |
+
" border-top-color: var(--fill-color);\n",
|
439 |
+
" border-right-color: var(--fill-color);\n",
|
440 |
+
" }\n",
|
441 |
+
" 40% {\n",
|
442 |
+
" border-color: transparent;\n",
|
443 |
+
" border-right-color: var(--fill-color);\n",
|
444 |
+
" border-top-color: var(--fill-color);\n",
|
445 |
+
" }\n",
|
446 |
+
" 60% {\n",
|
447 |
+
" border-color: transparent;\n",
|
448 |
+
" border-right-color: var(--fill-color);\n",
|
449 |
+
" }\n",
|
450 |
+
" 80% {\n",
|
451 |
+
" border-color: transparent;\n",
|
452 |
+
" border-right-color: var(--fill-color);\n",
|
453 |
+
" border-bottom-color: var(--fill-color);\n",
|
454 |
+
" }\n",
|
455 |
+
" 90% {\n",
|
456 |
+
" border-color: transparent;\n",
|
457 |
+
" border-bottom-color: var(--fill-color);\n",
|
458 |
+
" }\n",
|
459 |
+
" }\n",
|
460 |
+
"</style>\n",
|
461 |
+
"\n",
|
462 |
+
" <script>\n",
|
463 |
+
" async function quickchart(key) {\n",
|
464 |
+
" const quickchartButtonEl =\n",
|
465 |
+
" document.querySelector('#' + key + ' button');\n",
|
466 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
467 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
468 |
+
" try {\n",
|
469 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
470 |
+
" 'suggestCharts', [key], {});\n",
|
471 |
+
" } catch (error) {\n",
|
472 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
473 |
+
" }\n",
|
474 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
475 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
476 |
+
" }\n",
|
477 |
+
" (() => {\n",
|
478 |
+
" let quickchartButtonEl =\n",
|
479 |
+
" document.querySelector('#df-ef5bf78d-a8c3-434b-a2cc-b9481c5cc867 button');\n",
|
480 |
+
" quickchartButtonEl.style.display =\n",
|
481 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
482 |
+
" })();\n",
|
483 |
+
" </script>\n",
|
484 |
+
"</div>\n",
|
485 |
+
"\n",
|
486 |
+
" <div id=\"id_77560788-fc85-435e-acd2-36daee073dd0\">\n",
|
487 |
+
" <style>\n",
|
488 |
+
" .colab-df-generate {\n",
|
489 |
+
" background-color: #E8F0FE;\n",
|
490 |
+
" border: none;\n",
|
491 |
+
" border-radius: 50%;\n",
|
492 |
+
" cursor: pointer;\n",
|
493 |
+
" display: none;\n",
|
494 |
+
" fill: #1967D2;\n",
|
495 |
+
" height: 32px;\n",
|
496 |
+
" padding: 0 0 0 0;\n",
|
497 |
+
" width: 32px;\n",
|
498 |
+
" }\n",
|
499 |
+
"\n",
|
500 |
+
" .colab-df-generate:hover {\n",
|
501 |
+
" background-color: #E2EBFA;\n",
|
502 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
503 |
+
" fill: #174EA6;\n",
|
504 |
+
" }\n",
|
505 |
+
"\n",
|
506 |
+
" [theme=dark] .colab-df-generate {\n",
|
507 |
+
" background-color: #3B4455;\n",
|
508 |
+
" fill: #D2E3FC;\n",
|
509 |
+
" }\n",
|
510 |
+
"\n",
|
511 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
512 |
+
" background-color: #434B5C;\n",
|
513 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
514 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
515 |
+
" fill: #FFFFFF;\n",
|
516 |
+
" }\n",
|
517 |
+
" </style>\n",
|
518 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
519 |
+
" title=\"Generate code using this dataframe.\"\n",
|
520 |
+
" style=\"display:none;\">\n",
|
521 |
+
"\n",
|
522 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
523 |
+
" width=\"24px\">\n",
|
524 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
525 |
+
" </svg>\n",
|
526 |
+
" </button>\n",
|
527 |
+
" <script>\n",
|
528 |
+
" (() => {\n",
|
529 |
+
" const buttonEl =\n",
|
530 |
+
" document.querySelector('#id_77560788-fc85-435e-acd2-36daee073dd0 button.colab-df-generate');\n",
|
531 |
+
" buttonEl.style.display =\n",
|
532 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
533 |
+
"\n",
|
534 |
+
" buttonEl.onclick = () => {\n",
|
535 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
536 |
+
" }\n",
|
537 |
+
" })();\n",
|
538 |
+
" </script>\n",
|
539 |
+
" </div>\n",
|
540 |
+
"\n",
|
541 |
+
" </div>\n",
|
542 |
+
" </div>\n"
|
543 |
+
],
|
544 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
545 |
+
"type": "dataframe",
|
546 |
+
"variable_name": "df",
|
547 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 5110,\n \"fields\": [\n {\n \"column\": \"gender\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 3,\n \"samples\": [\n \"Male\",\n \"Female\",\n \"Other\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"age\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 22.61264672311349,\n \"min\": 0.08,\n \"max\": 82.0,\n \"num_unique_values\": 104,\n \"samples\": [\n 45.0,\n 24.0,\n 33.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"hypertension\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 1,\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"heart_disease\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"avg_glucose_level\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 45.28356015058198,\n \"min\": 55.12,\n \"max\": 271.74,\n \"num_unique_values\": 3979,\n \"samples\": [\n 178.29,\n 156.69\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bmi\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 7.854066729680164,\n \"min\": 10.3,\n \"max\": 97.6,\n \"num_unique_values\": 418,\n \"samples\": [\n 49.5,\n 18.5\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"smoking_status\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 4,\n \"samples\": [\n \"never smoked\",\n \"Unknown\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"stroke\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
548 |
+
}
|
549 |
+
},
|
550 |
+
"metadata": {},
|
551 |
+
"execution_count": 5
|
552 |
+
}
|
553 |
+
]
|
554 |
+
},
|
555 |
+
{
|
556 |
+
"cell_type": "code",
|
557 |
+
"source": [
|
558 |
+
"df['gender']=(df['gender']=='Male').astype(int)\n",
|
559 |
+
"df['smoking_status']=(df['smoking_status']=='smokes').astype(int)\n"
|
560 |
+
],
|
561 |
+
"metadata": {
|
562 |
+
"colab": {
|
563 |
+
"base_uri": "https://localhost:8080/",
|
564 |
+
"height": 423
|
565 |
+
},
|
566 |
+
"id": "P9x3rK02KCaZ",
|
567 |
+
"outputId": "75594c20-f7b6-4365-fa1b-edeb50d1b94c"
|
568 |
+
},
|
569 |
+
"execution_count": 7,
|
570 |
+
"outputs": [
|
571 |
+
{
|
572 |
+
"output_type": "execute_result",
|
573 |
+
"data": {
|
574 |
+
"text/plain": [
|
575 |
+
" gender age hypertension heart_disease avg_glucose_level bmi \\\n",
|
576 |
+
"0 0 67.0 0 1 228.69 36.6 \n",
|
577 |
+
"1 0 61.0 0 0 202.21 0.0 \n",
|
578 |
+
"2 0 80.0 0 1 105.92 32.5 \n",
|
579 |
+
"3 0 49.0 0 0 171.23 34.4 \n",
|
580 |
+
"4 0 79.0 1 0 174.12 24.0 \n",
|
581 |
+
"... ... ... ... ... ... ... \n",
|
582 |
+
"5105 0 80.0 1 0 83.75 0.0 \n",
|
583 |
+
"5106 0 81.0 0 0 125.20 40.0 \n",
|
584 |
+
"5107 0 35.0 0 0 82.99 30.6 \n",
|
585 |
+
"5108 0 51.0 0 0 166.29 25.6 \n",
|
586 |
+
"5109 0 44.0 0 0 85.28 26.2 \n",
|
587 |
+
"\n",
|
588 |
+
" smoking_status stroke \n",
|
589 |
+
"0 0 1 \n",
|
590 |
+
"1 0 1 \n",
|
591 |
+
"2 0 1 \n",
|
592 |
+
"3 1 1 \n",
|
593 |
+
"4 0 1 \n",
|
594 |
+
"... ... ... \n",
|
595 |
+
"5105 0 0 \n",
|
596 |
+
"5106 0 0 \n",
|
597 |
+
"5107 0 0 \n",
|
598 |
+
"5108 0 0 \n",
|
599 |
+
"5109 0 0 \n",
|
600 |
+
"\n",
|
601 |
+
"[5110 rows x 8 columns]"
|
602 |
+
],
|
603 |
+
"text/html": [
|
604 |
+
"\n",
|
605 |
+
" <div id=\"df-796d4fd1-ab8b-4b13-895a-2a2415839097\" class=\"colab-df-container\">\n",
|
606 |
+
" <div>\n",
|
607 |
+
"<style scoped>\n",
|
608 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
609 |
+
" vertical-align: middle;\n",
|
610 |
+
" }\n",
|
611 |
+
"\n",
|
612 |
+
" .dataframe tbody tr th {\n",
|
613 |
+
" vertical-align: top;\n",
|
614 |
+
" }\n",
|
615 |
+
"\n",
|
616 |
+
" .dataframe thead th {\n",
|
617 |
+
" text-align: right;\n",
|
618 |
+
" }\n",
|
619 |
+
"</style>\n",
|
620 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
621 |
+
" <thead>\n",
|
622 |
+
" <tr style=\"text-align: right;\">\n",
|
623 |
+
" <th></th>\n",
|
624 |
+
" <th>gender</th>\n",
|
625 |
+
" <th>age</th>\n",
|
626 |
+
" <th>hypertension</th>\n",
|
627 |
+
" <th>heart_disease</th>\n",
|
628 |
+
" <th>avg_glucose_level</th>\n",
|
629 |
+
" <th>bmi</th>\n",
|
630 |
+
" <th>smoking_status</th>\n",
|
631 |
+
" <th>stroke</th>\n",
|
632 |
+
" </tr>\n",
|
633 |
+
" </thead>\n",
|
634 |
+
" <tbody>\n",
|
635 |
+
" <tr>\n",
|
636 |
+
" <th>0</th>\n",
|
637 |
+
" <td>0</td>\n",
|
638 |
+
" <td>67.0</td>\n",
|
639 |
+
" <td>0</td>\n",
|
640 |
+
" <td>1</td>\n",
|
641 |
+
" <td>228.69</td>\n",
|
642 |
+
" <td>36.6</td>\n",
|
643 |
+
" <td>0</td>\n",
|
644 |
+
" <td>1</td>\n",
|
645 |
+
" </tr>\n",
|
646 |
+
" <tr>\n",
|
647 |
+
" <th>1</th>\n",
|
648 |
+
" <td>0</td>\n",
|
649 |
+
" <td>61.0</td>\n",
|
650 |
+
" <td>0</td>\n",
|
651 |
+
" <td>0</td>\n",
|
652 |
+
" <td>202.21</td>\n",
|
653 |
+
" <td>0.0</td>\n",
|
654 |
+
" <td>0</td>\n",
|
655 |
+
" <td>1</td>\n",
|
656 |
+
" </tr>\n",
|
657 |
+
" <tr>\n",
|
658 |
+
" <th>2</th>\n",
|
659 |
+
" <td>0</td>\n",
|
660 |
+
" <td>80.0</td>\n",
|
661 |
+
" <td>0</td>\n",
|
662 |
+
" <td>1</td>\n",
|
663 |
+
" <td>105.92</td>\n",
|
664 |
+
" <td>32.5</td>\n",
|
665 |
+
" <td>0</td>\n",
|
666 |
+
" <td>1</td>\n",
|
667 |
+
" </tr>\n",
|
668 |
+
" <tr>\n",
|
669 |
+
" <th>3</th>\n",
|
670 |
+
" <td>0</td>\n",
|
671 |
+
" <td>49.0</td>\n",
|
672 |
+
" <td>0</td>\n",
|
673 |
+
" <td>0</td>\n",
|
674 |
+
" <td>171.23</td>\n",
|
675 |
+
" <td>34.4</td>\n",
|
676 |
+
" <td>1</td>\n",
|
677 |
+
" <td>1</td>\n",
|
678 |
+
" </tr>\n",
|
679 |
+
" <tr>\n",
|
680 |
+
" <th>4</th>\n",
|
681 |
+
" <td>0</td>\n",
|
682 |
+
" <td>79.0</td>\n",
|
683 |
+
" <td>1</td>\n",
|
684 |
+
" <td>0</td>\n",
|
685 |
+
" <td>174.12</td>\n",
|
686 |
+
" <td>24.0</td>\n",
|
687 |
+
" <td>0</td>\n",
|
688 |
+
" <td>1</td>\n",
|
689 |
+
" </tr>\n",
|
690 |
+
" <tr>\n",
|
691 |
+
" <th>...</th>\n",
|
692 |
+
" <td>...</td>\n",
|
693 |
+
" <td>...</td>\n",
|
694 |
+
" <td>...</td>\n",
|
695 |
+
" <td>...</td>\n",
|
696 |
+
" <td>...</td>\n",
|
697 |
+
" <td>...</td>\n",
|
698 |
+
" <td>...</td>\n",
|
699 |
+
" <td>...</td>\n",
|
700 |
+
" </tr>\n",
|
701 |
+
" <tr>\n",
|
702 |
+
" <th>5105</th>\n",
|
703 |
+
" <td>0</td>\n",
|
704 |
+
" <td>80.0</td>\n",
|
705 |
+
" <td>1</td>\n",
|
706 |
+
" <td>0</td>\n",
|
707 |
+
" <td>83.75</td>\n",
|
708 |
+
" <td>0.0</td>\n",
|
709 |
+
" <td>0</td>\n",
|
710 |
+
" <td>0</td>\n",
|
711 |
+
" </tr>\n",
|
712 |
+
" <tr>\n",
|
713 |
+
" <th>5106</th>\n",
|
714 |
+
" <td>0</td>\n",
|
715 |
+
" <td>81.0</td>\n",
|
716 |
+
" <td>0</td>\n",
|
717 |
+
" <td>0</td>\n",
|
718 |
+
" <td>125.20</td>\n",
|
719 |
+
" <td>40.0</td>\n",
|
720 |
+
" <td>0</td>\n",
|
721 |
+
" <td>0</td>\n",
|
722 |
+
" </tr>\n",
|
723 |
+
" <tr>\n",
|
724 |
+
" <th>5107</th>\n",
|
725 |
+
" <td>0</td>\n",
|
726 |
+
" <td>35.0</td>\n",
|
727 |
+
" <td>0</td>\n",
|
728 |
+
" <td>0</td>\n",
|
729 |
+
" <td>82.99</td>\n",
|
730 |
+
" <td>30.6</td>\n",
|
731 |
+
" <td>0</td>\n",
|
732 |
+
" <td>0</td>\n",
|
733 |
+
" </tr>\n",
|
734 |
+
" <tr>\n",
|
735 |
+
" <th>5108</th>\n",
|
736 |
+
" <td>0</td>\n",
|
737 |
+
" <td>51.0</td>\n",
|
738 |
+
" <td>0</td>\n",
|
739 |
+
" <td>0</td>\n",
|
740 |
+
" <td>166.29</td>\n",
|
741 |
+
" <td>25.6</td>\n",
|
742 |
+
" <td>0</td>\n",
|
743 |
+
" <td>0</td>\n",
|
744 |
+
" </tr>\n",
|
745 |
+
" <tr>\n",
|
746 |
+
" <th>5109</th>\n",
|
747 |
+
" <td>0</td>\n",
|
748 |
+
" <td>44.0</td>\n",
|
749 |
+
" <td>0</td>\n",
|
750 |
+
" <td>0</td>\n",
|
751 |
+
" <td>85.28</td>\n",
|
752 |
+
" <td>26.2</td>\n",
|
753 |
+
" <td>0</td>\n",
|
754 |
+
" <td>0</td>\n",
|
755 |
+
" </tr>\n",
|
756 |
+
" </tbody>\n",
|
757 |
+
"</table>\n",
|
758 |
+
"<p>5110 rows × 8 columns</p>\n",
|
759 |
+
"</div>\n",
|
760 |
+
" <div class=\"colab-df-buttons\">\n",
|
761 |
+
"\n",
|
762 |
+
" <div class=\"colab-df-container\">\n",
|
763 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-796d4fd1-ab8b-4b13-895a-2a2415839097')\"\n",
|
764 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
765 |
+
" style=\"display:none;\">\n",
|
766 |
+
"\n",
|
767 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
768 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
769 |
+
" </svg>\n",
|
770 |
+
" </button>\n",
|
771 |
+
"\n",
|
772 |
+
" <style>\n",
|
773 |
+
" .colab-df-container {\n",
|
774 |
+
" display:flex;\n",
|
775 |
+
" gap: 12px;\n",
|
776 |
+
" }\n",
|
777 |
+
"\n",
|
778 |
+
" .colab-df-convert {\n",
|
779 |
+
" background-color: #E8F0FE;\n",
|
780 |
+
" border: none;\n",
|
781 |
+
" border-radius: 50%;\n",
|
782 |
+
" cursor: pointer;\n",
|
783 |
+
" display: none;\n",
|
784 |
+
" fill: #1967D2;\n",
|
785 |
+
" height: 32px;\n",
|
786 |
+
" padding: 0 0 0 0;\n",
|
787 |
+
" width: 32px;\n",
|
788 |
+
" }\n",
|
789 |
+
"\n",
|
790 |
+
" .colab-df-convert:hover {\n",
|
791 |
+
" background-color: #E2EBFA;\n",
|
792 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
793 |
+
" fill: #174EA6;\n",
|
794 |
+
" }\n",
|
795 |
+
"\n",
|
796 |
+
" .colab-df-buttons div {\n",
|
797 |
+
" margin-bottom: 4px;\n",
|
798 |
+
" }\n",
|
799 |
+
"\n",
|
800 |
+
" [theme=dark] .colab-df-convert {\n",
|
801 |
+
" background-color: #3B4455;\n",
|
802 |
+
" fill: #D2E3FC;\n",
|
803 |
+
" }\n",
|
804 |
+
"\n",
|
805 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
806 |
+
" background-color: #434B5C;\n",
|
807 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
808 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
809 |
+
" fill: #FFFFFF;\n",
|
810 |
+
" }\n",
|
811 |
+
" </style>\n",
|
812 |
+
"\n",
|
813 |
+
" <script>\n",
|
814 |
+
" const buttonEl =\n",
|
815 |
+
" document.querySelector('#df-796d4fd1-ab8b-4b13-895a-2a2415839097 button.colab-df-convert');\n",
|
816 |
+
" buttonEl.style.display =\n",
|
817 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
818 |
+
"\n",
|
819 |
+
" async function convertToInteractive(key) {\n",
|
820 |
+
" const element = document.querySelector('#df-796d4fd1-ab8b-4b13-895a-2a2415839097');\n",
|
821 |
+
" const dataTable =\n",
|
822 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
823 |
+
" [key], {});\n",
|
824 |
+
" if (!dataTable) return;\n",
|
825 |
+
"\n",
|
826 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
827 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
828 |
+
" + ' to learn more about interactive tables.';\n",
|
829 |
+
" element.innerHTML = '';\n",
|
830 |
+
" dataTable['output_type'] = 'display_data';\n",
|
831 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
832 |
+
" const docLink = document.createElement('div');\n",
|
833 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
834 |
+
" element.appendChild(docLink);\n",
|
835 |
+
" }\n",
|
836 |
+
" </script>\n",
|
837 |
+
" </div>\n",
|
838 |
+
"\n",
|
839 |
+
"\n",
|
840 |
+
"<div id=\"df-5ce35595-61da-4aab-98fe-349d0b9e787f\">\n",
|
841 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-5ce35595-61da-4aab-98fe-349d0b9e787f')\"\n",
|
842 |
+
" title=\"Suggest charts\"\n",
|
843 |
+
" style=\"display:none;\">\n",
|
844 |
+
"\n",
|
845 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
846 |
+
" width=\"24px\">\n",
|
847 |
+
" <g>\n",
|
848 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
849 |
+
" </g>\n",
|
850 |
+
"</svg>\n",
|
851 |
+
" </button>\n",
|
852 |
+
"\n",
|
853 |
+
"<style>\n",
|
854 |
+
" .colab-df-quickchart {\n",
|
855 |
+
" --bg-color: #E8F0FE;\n",
|
856 |
+
" --fill-color: #1967D2;\n",
|
857 |
+
" --hover-bg-color: #E2EBFA;\n",
|
858 |
+
" --hover-fill-color: #174EA6;\n",
|
859 |
+
" --disabled-fill-color: #AAA;\n",
|
860 |
+
" --disabled-bg-color: #DDD;\n",
|
861 |
+
" }\n",
|
862 |
+
"\n",
|
863 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
864 |
+
" --bg-color: #3B4455;\n",
|
865 |
+
" --fill-color: #D2E3FC;\n",
|
866 |
+
" --hover-bg-color: #434B5C;\n",
|
867 |
+
" --hover-fill-color: #FFFFFF;\n",
|
868 |
+
" --disabled-bg-color: #3B4455;\n",
|
869 |
+
" --disabled-fill-color: #666;\n",
|
870 |
+
" }\n",
|
871 |
+
"\n",
|
872 |
+
" .colab-df-quickchart {\n",
|
873 |
+
" background-color: var(--bg-color);\n",
|
874 |
+
" border: none;\n",
|
875 |
+
" border-radius: 50%;\n",
|
876 |
+
" cursor: pointer;\n",
|
877 |
+
" display: none;\n",
|
878 |
+
" fill: var(--fill-color);\n",
|
879 |
+
" height: 32px;\n",
|
880 |
+
" padding: 0;\n",
|
881 |
+
" width: 32px;\n",
|
882 |
+
" }\n",
|
883 |
+
"\n",
|
884 |
+
" .colab-df-quickchart:hover {\n",
|
885 |
+
" background-color: var(--hover-bg-color);\n",
|
886 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
887 |
+
" fill: var(--button-hover-fill-color);\n",
|
888 |
+
" }\n",
|
889 |
+
"\n",
|
890 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
891 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
892 |
+
" background-color: var(--disabled-bg-color);\n",
|
893 |
+
" fill: var(--disabled-fill-color);\n",
|
894 |
+
" box-shadow: none;\n",
|
895 |
+
" }\n",
|
896 |
+
"\n",
|
897 |
+
" .colab-df-spinner {\n",
|
898 |
+
" border: 2px solid var(--fill-color);\n",
|
899 |
+
" border-color: transparent;\n",
|
900 |
+
" border-bottom-color: var(--fill-color);\n",
|
901 |
+
" animation:\n",
|
902 |
+
" spin 1s steps(1) infinite;\n",
|
903 |
+
" }\n",
|
904 |
+
"\n",
|
905 |
+
" @keyframes spin {\n",
|
906 |
+
" 0% {\n",
|
907 |
+
" border-color: transparent;\n",
|
908 |
+
" border-bottom-color: var(--fill-color);\n",
|
909 |
+
" border-left-color: var(--fill-color);\n",
|
910 |
+
" }\n",
|
911 |
+
" 20% {\n",
|
912 |
+
" border-color: transparent;\n",
|
913 |
+
" border-left-color: var(--fill-color);\n",
|
914 |
+
" border-top-color: var(--fill-color);\n",
|
915 |
+
" }\n",
|
916 |
+
" 30% {\n",
|
917 |
+
" border-color: transparent;\n",
|
918 |
+
" border-left-color: var(--fill-color);\n",
|
919 |
+
" border-top-color: var(--fill-color);\n",
|
920 |
+
" border-right-color: var(--fill-color);\n",
|
921 |
+
" }\n",
|
922 |
+
" 40% {\n",
|
923 |
+
" border-color: transparent;\n",
|
924 |
+
" border-right-color: var(--fill-color);\n",
|
925 |
+
" border-top-color: var(--fill-color);\n",
|
926 |
+
" }\n",
|
927 |
+
" 60% {\n",
|
928 |
+
" border-color: transparent;\n",
|
929 |
+
" border-right-color: var(--fill-color);\n",
|
930 |
+
" }\n",
|
931 |
+
" 80% {\n",
|
932 |
+
" border-color: transparent;\n",
|
933 |
+
" border-right-color: var(--fill-color);\n",
|
934 |
+
" border-bottom-color: var(--fill-color);\n",
|
935 |
+
" }\n",
|
936 |
+
" 90% {\n",
|
937 |
+
" border-color: transparent;\n",
|
938 |
+
" border-bottom-color: var(--fill-color);\n",
|
939 |
+
" }\n",
|
940 |
+
" }\n",
|
941 |
+
"</style>\n",
|
942 |
+
"\n",
|
943 |
+
" <script>\n",
|
944 |
+
" async function quickchart(key) {\n",
|
945 |
+
" const quickchartButtonEl =\n",
|
946 |
+
" document.querySelector('#' + key + ' button');\n",
|
947 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
948 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
949 |
+
" try {\n",
|
950 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
951 |
+
" 'suggestCharts', [key], {});\n",
|
952 |
+
" } catch (error) {\n",
|
953 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
954 |
+
" }\n",
|
955 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
956 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
957 |
+
" }\n",
|
958 |
+
" (() => {\n",
|
959 |
+
" let quickchartButtonEl =\n",
|
960 |
+
" document.querySelector('#df-5ce35595-61da-4aab-98fe-349d0b9e787f button');\n",
|
961 |
+
" quickchartButtonEl.style.display =\n",
|
962 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
963 |
+
" })();\n",
|
964 |
+
" </script>\n",
|
965 |
+
"</div>\n",
|
966 |
+
"\n",
|
967 |
+
" </div>\n",
|
968 |
+
" </div>\n"
|
969 |
+
],
|
970 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
971 |
+
"type": "dataframe",
|
972 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 5110,\n \"fields\": [\n {\n \"column\": \"gender\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 0,\n \"num_unique_values\": 1,\n \"samples\": [\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"age\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 22.61264672311349,\n \"min\": 0.08,\n \"max\": 82.0,\n \"num_unique_values\": 104,\n \"samples\": [\n 45.0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"hypertension\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"heart_disease\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"avg_glucose_level\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 45.28356015058198,\n \"min\": 55.12,\n \"max\": 271.74,\n \"num_unique_values\": 3979,\n \"samples\": [\n 178.29\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"bmi\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 9.529497256055075,\n \"min\": 0.0,\n \"max\": 97.6,\n \"num_unique_values\": 419,\n \"samples\": [\n 36.3\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"smoking_status\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"stroke\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
973 |
+
}
|
974 |
+
},
|
975 |
+
"metadata": {},
|
976 |
+
"execution_count": 7
|
977 |
+
}
|
978 |
+
]
|
979 |
+
},
|
980 |
+
{
|
981 |
+
"cell_type": "code",
|
982 |
+
"source": [
|
983 |
+
"df=df.fillna(0)"
|
984 |
+
],
|
985 |
+
"metadata": {
|
986 |
+
"id": "Z3VztZ8HLtmD"
|
987 |
+
},
|
988 |
+
"execution_count": 11,
|
989 |
+
"outputs": []
|
990 |
+
},
|
991 |
+
{
|
992 |
+
"cell_type": "code",
|
993 |
+
"source": [
|
994 |
+
"x_data = df.drop(['stroke'], axis = 1)\n",
|
995 |
+
"y = df.stroke.values"
|
996 |
+
],
|
997 |
+
"metadata": {
|
998 |
+
"id": "jvdxSOtN35up"
|
999 |
+
},
|
1000 |
+
"execution_count": 12,
|
1001 |
+
"outputs": []
|
1002 |
+
},
|
1003 |
+
{
|
1004 |
+
"cell_type": "code",
|
1005 |
+
"source": [
|
1006 |
+
"x_train, x_test, y_train, y_test = train_test_split(x_data, y, test_size = 0.2, random_state= 0)"
|
1007 |
+
],
|
1008 |
+
"metadata": {
|
1009 |
+
"id": "nk7QPMxYLian"
|
1010 |
+
},
|
1011 |
+
"execution_count": 13,
|
1012 |
+
"outputs": []
|
1013 |
+
},
|
1014 |
+
{
|
1015 |
+
"cell_type": "code",
|
1016 |
+
"source": [
|
1017 |
+
"from sklearn.linear_model import LogisticRegression\n",
|
1018 |
+
"lr = LogisticRegression()\n",
|
1019 |
+
"lr.fit(x_train, y_train)"
|
1020 |
+
],
|
1021 |
+
"metadata": {
|
1022 |
+
"colab": {
|
1023 |
+
"base_uri": "https://localhost:8080/",
|
1024 |
+
"height": 74
|
1025 |
+
},
|
1026 |
+
"id": "TB8qV9OnkH_5",
|
1027 |
+
"outputId": "b710672b-3a9b-4cf4-fd59-7bb0cd436e41"
|
1028 |
+
},
|
1029 |
+
"execution_count": 16,
|
1030 |
+
"outputs": [
|
1031 |
+
{
|
1032 |
+
"output_type": "execute_result",
|
1033 |
+
"data": {
|
1034 |
+
"text/plain": [
|
1035 |
+
"LogisticRegression()"
|
1036 |
+
],
|
1037 |
+
"text/html": [
|
1038 |
+
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>LogisticRegression()</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">LogisticRegression</label><div class=\"sk-toggleable__content\"><pre>LogisticRegression()</pre></div></div></div></div></div>"
|
1039 |
+
]
|
1040 |
+
},
|
1041 |
+
"metadata": {},
|
1042 |
+
"execution_count": 16
|
1043 |
+
}
|
1044 |
+
]
|
1045 |
+
},
|
1046 |
+
{
|
1047 |
+
"cell_type": "code",
|
1048 |
+
"source": [
|
1049 |
+
"y_pred=lr.predict(x_test)"
|
1050 |
+
],
|
1051 |
+
"metadata": {
|
1052 |
+
"id": "M66dC8FOXNEt"
|
1053 |
+
},
|
1054 |
+
"execution_count": 17,
|
1055 |
+
"outputs": []
|
1056 |
+
},
|
1057 |
+
{
|
1058 |
+
"cell_type": "code",
|
1059 |
+
"source": [
|
1060 |
+
"from sklearn.metrics import classification_report\n",
|
1061 |
+
"print(classification_report(y_pred,y_test))"
|
1062 |
+
],
|
1063 |
+
"metadata": {
|
1064 |
+
"colab": {
|
1065 |
+
"base_uri": "https://localhost:8080/"
|
1066 |
+
},
|
1067 |
+
"id": "L06DnXKhXPzS",
|
1068 |
+
"outputId": "cd79637c-876e-4d65-c515-f58c8b145481"
|
1069 |
+
},
|
1070 |
+
"execution_count": null,
|
1071 |
+
"outputs": [
|
1072 |
+
{
|
1073 |
+
"output_type": "stream",
|
1074 |
+
"name": "stdout",
|
1075 |
+
"text": [
|
1076 |
+
" precision recall f1-score support\n",
|
1077 |
+
"\n",
|
1078 |
+
" 0 0.50 0.56 0.53 9\n",
|
1079 |
+
" 1 0.92 0.91 0.91 53\n",
|
1080 |
+
"\n",
|
1081 |
+
" accuracy 0.85 62\n",
|
1082 |
+
" macro avg 0.71 0.73 0.72 62\n",
|
1083 |
+
"weighted avg 0.86 0.85 0.86 62\n",
|
1084 |
+
"\n"
|
1085 |
+
]
|
1086 |
+
}
|
1087 |
+
]
|
1088 |
+
},
|
1089 |
+
{
|
1090 |
+
"cell_type": "code",
|
1091 |
+
"source": [
|
1092 |
+
"import pickle\n",
|
1093 |
+
"\n",
|
1094 |
+
"with open('mp.pkl','wb') as f:\n",
|
1095 |
+
" pickle.dump(lr,f)\n",
|
1096 |
+
"\n",
|
1097 |
+
"# load\n",
|
1098 |
+
"with open('mp.pkl', 'rb') as f:\n",
|
1099 |
+
" lr = pickle.load(f)"
|
1100 |
+
],
|
1101 |
+
"metadata": {
|
1102 |
+
"id": "4IrkPQCLXhYw"
|
1103 |
+
},
|
1104 |
+
"execution_count": 18,
|
1105 |
+
"outputs": []
|
1106 |
+
}
|
1107 |
+
]
|
1108 |
+
}
|
mp.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7f52e61b79b4300ad4a3103547f265a817da0ce14258b7dc832df904069e681d
|
3 |
+
size 940
|
nvd.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1b901aeb174463c7a5e0500d9814eefd03d242f5228ee557fa53e3610225ea28
|
3 |
+
size 1050
|
osp.ipynb
ADDED
@@ -0,0 +1,654 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"nbformat": 4,
|
3 |
+
"nbformat_minor": 0,
|
4 |
+
"metadata": {
|
5 |
+
"colab": {
|
6 |
+
"provenance": []
|
7 |
+
},
|
8 |
+
"kernelspec": {
|
9 |
+
"name": "python3",
|
10 |
+
"display_name": "Python 3"
|
11 |
+
},
|
12 |
+
"language_info": {
|
13 |
+
"name": "python"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
"cells": [
|
17 |
+
{
|
18 |
+
"cell_type": "markdown",
|
19 |
+
"source": [
|
20 |
+
"# Outlier-Sensitive Predictor"
|
21 |
+
],
|
22 |
+
"metadata": {
|
23 |
+
"id": "pUdgDToFZPsM"
|
24 |
+
}
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"cell_type": "code",
|
28 |
+
"execution_count": 7,
|
29 |
+
"metadata": {
|
30 |
+
"id": "L96SNQ8HVI7m"
|
31 |
+
},
|
32 |
+
"outputs": [],
|
33 |
+
"source": [
|
34 |
+
"# imports\n",
|
35 |
+
"import tensorflow as tf\n",
|
36 |
+
"import pandas as pd\n",
|
37 |
+
"import numpy as np\n",
|
38 |
+
"import matplotlib.pyplot as plt\n",
|
39 |
+
"from sklearn.preprocessing import StandardScaler\n",
|
40 |
+
"from imblearn.over_sampling import RandomOverSampler\n",
|
41 |
+
"import seaborn as sns\n",
|
42 |
+
"from sklearn.model_selection import train_test_split"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"cell_type": "code",
|
47 |
+
"source": [
|
48 |
+
"# using drive to load our dataset\n",
|
49 |
+
"from google.colab import drive\n",
|
50 |
+
"drive.mount('/content/drive')"
|
51 |
+
],
|
52 |
+
"metadata": {
|
53 |
+
"colab": {
|
54 |
+
"base_uri": "https://localhost:8080/"
|
55 |
+
},
|
56 |
+
"id": "Ea3adROCVORJ",
|
57 |
+
"outputId": "337c92a7-9d72-4e6c-c4de-94c07507d1a1"
|
58 |
+
},
|
59 |
+
"execution_count": 2,
|
60 |
+
"outputs": [
|
61 |
+
{
|
62 |
+
"output_type": "stream",
|
63 |
+
"name": "stdout",
|
64 |
+
"text": [
|
65 |
+
"Mounted at /content/drive\n"
|
66 |
+
]
|
67 |
+
}
|
68 |
+
]
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"cell_type": "code",
|
72 |
+
"source": [
|
73 |
+
"df = pd.read_csv(\"/content/drive/MyDrive/dataset/heart.csv\") # loading\n",
|
74 |
+
"del df['trestbps'], df['fbs'], df['restecg'], df['thalach'], df['exang'], df['slope'],df['oldpeak']\n",
|
75 |
+
"df"
|
76 |
+
],
|
77 |
+
"metadata": {
|
78 |
+
"colab": {
|
79 |
+
"base_uri": "https://localhost:8080/",
|
80 |
+
"height": 423
|
81 |
+
},
|
82 |
+
"id": "5XYS8syqVREm",
|
83 |
+
"outputId": "d0c6e728-4ea8-420f-dfd1-7a823bb7de9b"
|
84 |
+
},
|
85 |
+
"execution_count": 26,
|
86 |
+
"outputs": [
|
87 |
+
{
|
88 |
+
"output_type": "execute_result",
|
89 |
+
"data": {
|
90 |
+
"text/plain": [
|
91 |
+
" age sex cp chol ca thal target\n",
|
92 |
+
"0 63 1 3 233 0 1 1\n",
|
93 |
+
"1 37 1 2 250 0 2 1\n",
|
94 |
+
"2 41 0 1 204 0 2 1\n",
|
95 |
+
"3 56 1 1 236 0 2 1\n",
|
96 |
+
"4 57 0 0 354 0 2 1\n",
|
97 |
+
".. ... ... .. ... .. ... ...\n",
|
98 |
+
"298 57 0 0 241 0 3 0\n",
|
99 |
+
"299 45 1 3 264 0 3 0\n",
|
100 |
+
"300 68 1 0 193 2 3 0\n",
|
101 |
+
"301 57 1 0 131 1 3 0\n",
|
102 |
+
"302 57 0 1 236 1 2 0\n",
|
103 |
+
"\n",
|
104 |
+
"[303 rows x 7 columns]"
|
105 |
+
],
|
106 |
+
"text/html": [
|
107 |
+
"\n",
|
108 |
+
" <div id=\"df-704bcd8d-fc3f-4eb0-8bd2-94f2654b6dcd\" class=\"colab-df-container\">\n",
|
109 |
+
" <div>\n",
|
110 |
+
"<style scoped>\n",
|
111 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
112 |
+
" vertical-align: middle;\n",
|
113 |
+
" }\n",
|
114 |
+
"\n",
|
115 |
+
" .dataframe tbody tr th {\n",
|
116 |
+
" vertical-align: top;\n",
|
117 |
+
" }\n",
|
118 |
+
"\n",
|
119 |
+
" .dataframe thead th {\n",
|
120 |
+
" text-align: right;\n",
|
121 |
+
" }\n",
|
122 |
+
"</style>\n",
|
123 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
124 |
+
" <thead>\n",
|
125 |
+
" <tr style=\"text-align: right;\">\n",
|
126 |
+
" <th></th>\n",
|
127 |
+
" <th>age</th>\n",
|
128 |
+
" <th>sex</th>\n",
|
129 |
+
" <th>cp</th>\n",
|
130 |
+
" <th>chol</th>\n",
|
131 |
+
" <th>ca</th>\n",
|
132 |
+
" <th>thal</th>\n",
|
133 |
+
" <th>target</th>\n",
|
134 |
+
" </tr>\n",
|
135 |
+
" </thead>\n",
|
136 |
+
" <tbody>\n",
|
137 |
+
" <tr>\n",
|
138 |
+
" <th>0</th>\n",
|
139 |
+
" <td>63</td>\n",
|
140 |
+
" <td>1</td>\n",
|
141 |
+
" <td>3</td>\n",
|
142 |
+
" <td>233</td>\n",
|
143 |
+
" <td>0</td>\n",
|
144 |
+
" <td>1</td>\n",
|
145 |
+
" <td>1</td>\n",
|
146 |
+
" </tr>\n",
|
147 |
+
" <tr>\n",
|
148 |
+
" <th>1</th>\n",
|
149 |
+
" <td>37</td>\n",
|
150 |
+
" <td>1</td>\n",
|
151 |
+
" <td>2</td>\n",
|
152 |
+
" <td>250</td>\n",
|
153 |
+
" <td>0</td>\n",
|
154 |
+
" <td>2</td>\n",
|
155 |
+
" <td>1</td>\n",
|
156 |
+
" </tr>\n",
|
157 |
+
" <tr>\n",
|
158 |
+
" <th>2</th>\n",
|
159 |
+
" <td>41</td>\n",
|
160 |
+
" <td>0</td>\n",
|
161 |
+
" <td>1</td>\n",
|
162 |
+
" <td>204</td>\n",
|
163 |
+
" <td>0</td>\n",
|
164 |
+
" <td>2</td>\n",
|
165 |
+
" <td>1</td>\n",
|
166 |
+
" </tr>\n",
|
167 |
+
" <tr>\n",
|
168 |
+
" <th>3</th>\n",
|
169 |
+
" <td>56</td>\n",
|
170 |
+
" <td>1</td>\n",
|
171 |
+
" <td>1</td>\n",
|
172 |
+
" <td>236</td>\n",
|
173 |
+
" <td>0</td>\n",
|
174 |
+
" <td>2</td>\n",
|
175 |
+
" <td>1</td>\n",
|
176 |
+
" </tr>\n",
|
177 |
+
" <tr>\n",
|
178 |
+
" <th>4</th>\n",
|
179 |
+
" <td>57</td>\n",
|
180 |
+
" <td>0</td>\n",
|
181 |
+
" <td>0</td>\n",
|
182 |
+
" <td>354</td>\n",
|
183 |
+
" <td>0</td>\n",
|
184 |
+
" <td>2</td>\n",
|
185 |
+
" <td>1</td>\n",
|
186 |
+
" </tr>\n",
|
187 |
+
" <tr>\n",
|
188 |
+
" <th>...</th>\n",
|
189 |
+
" <td>...</td>\n",
|
190 |
+
" <td>...</td>\n",
|
191 |
+
" <td>...</td>\n",
|
192 |
+
" <td>...</td>\n",
|
193 |
+
" <td>...</td>\n",
|
194 |
+
" <td>...</td>\n",
|
195 |
+
" <td>...</td>\n",
|
196 |
+
" </tr>\n",
|
197 |
+
" <tr>\n",
|
198 |
+
" <th>298</th>\n",
|
199 |
+
" <td>57</td>\n",
|
200 |
+
" <td>0</td>\n",
|
201 |
+
" <td>0</td>\n",
|
202 |
+
" <td>241</td>\n",
|
203 |
+
" <td>0</td>\n",
|
204 |
+
" <td>3</td>\n",
|
205 |
+
" <td>0</td>\n",
|
206 |
+
" </tr>\n",
|
207 |
+
" <tr>\n",
|
208 |
+
" <th>299</th>\n",
|
209 |
+
" <td>45</td>\n",
|
210 |
+
" <td>1</td>\n",
|
211 |
+
" <td>3</td>\n",
|
212 |
+
" <td>264</td>\n",
|
213 |
+
" <td>0</td>\n",
|
214 |
+
" <td>3</td>\n",
|
215 |
+
" <td>0</td>\n",
|
216 |
+
" </tr>\n",
|
217 |
+
" <tr>\n",
|
218 |
+
" <th>300</th>\n",
|
219 |
+
" <td>68</td>\n",
|
220 |
+
" <td>1</td>\n",
|
221 |
+
" <td>0</td>\n",
|
222 |
+
" <td>193</td>\n",
|
223 |
+
" <td>2</td>\n",
|
224 |
+
" <td>3</td>\n",
|
225 |
+
" <td>0</td>\n",
|
226 |
+
" </tr>\n",
|
227 |
+
" <tr>\n",
|
228 |
+
" <th>301</th>\n",
|
229 |
+
" <td>57</td>\n",
|
230 |
+
" <td>1</td>\n",
|
231 |
+
" <td>0</td>\n",
|
232 |
+
" <td>131</td>\n",
|
233 |
+
" <td>1</td>\n",
|
234 |
+
" <td>3</td>\n",
|
235 |
+
" <td>0</td>\n",
|
236 |
+
" </tr>\n",
|
237 |
+
" <tr>\n",
|
238 |
+
" <th>302</th>\n",
|
239 |
+
" <td>57</td>\n",
|
240 |
+
" <td>0</td>\n",
|
241 |
+
" <td>1</td>\n",
|
242 |
+
" <td>236</td>\n",
|
243 |
+
" <td>1</td>\n",
|
244 |
+
" <td>2</td>\n",
|
245 |
+
" <td>0</td>\n",
|
246 |
+
" </tr>\n",
|
247 |
+
" </tbody>\n",
|
248 |
+
"</table>\n",
|
249 |
+
"<p>303 rows × 7 columns</p>\n",
|
250 |
+
"</div>\n",
|
251 |
+
" <div class=\"colab-df-buttons\">\n",
|
252 |
+
"\n",
|
253 |
+
" <div class=\"colab-df-container\">\n",
|
254 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-704bcd8d-fc3f-4eb0-8bd2-94f2654b6dcd')\"\n",
|
255 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
256 |
+
" style=\"display:none;\">\n",
|
257 |
+
"\n",
|
258 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
259 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
260 |
+
" </svg>\n",
|
261 |
+
" </button>\n",
|
262 |
+
"\n",
|
263 |
+
" <style>\n",
|
264 |
+
" .colab-df-container {\n",
|
265 |
+
" display:flex;\n",
|
266 |
+
" gap: 12px;\n",
|
267 |
+
" }\n",
|
268 |
+
"\n",
|
269 |
+
" .colab-df-convert {\n",
|
270 |
+
" background-color: #E8F0FE;\n",
|
271 |
+
" border: none;\n",
|
272 |
+
" border-radius: 50%;\n",
|
273 |
+
" cursor: pointer;\n",
|
274 |
+
" display: none;\n",
|
275 |
+
" fill: #1967D2;\n",
|
276 |
+
" height: 32px;\n",
|
277 |
+
" padding: 0 0 0 0;\n",
|
278 |
+
" width: 32px;\n",
|
279 |
+
" }\n",
|
280 |
+
"\n",
|
281 |
+
" .colab-df-convert:hover {\n",
|
282 |
+
" background-color: #E2EBFA;\n",
|
283 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
284 |
+
" fill: #174EA6;\n",
|
285 |
+
" }\n",
|
286 |
+
"\n",
|
287 |
+
" .colab-df-buttons div {\n",
|
288 |
+
" margin-bottom: 4px;\n",
|
289 |
+
" }\n",
|
290 |
+
"\n",
|
291 |
+
" [theme=dark] .colab-df-convert {\n",
|
292 |
+
" background-color: #3B4455;\n",
|
293 |
+
" fill: #D2E3FC;\n",
|
294 |
+
" }\n",
|
295 |
+
"\n",
|
296 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
297 |
+
" background-color: #434B5C;\n",
|
298 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
299 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
300 |
+
" fill: #FFFFFF;\n",
|
301 |
+
" }\n",
|
302 |
+
" </style>\n",
|
303 |
+
"\n",
|
304 |
+
" <script>\n",
|
305 |
+
" const buttonEl =\n",
|
306 |
+
" document.querySelector('#df-704bcd8d-fc3f-4eb0-8bd2-94f2654b6dcd button.colab-df-convert');\n",
|
307 |
+
" buttonEl.style.display =\n",
|
308 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
309 |
+
"\n",
|
310 |
+
" async function convertToInteractive(key) {\n",
|
311 |
+
" const element = document.querySelector('#df-704bcd8d-fc3f-4eb0-8bd2-94f2654b6dcd');\n",
|
312 |
+
" const dataTable =\n",
|
313 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
314 |
+
" [key], {});\n",
|
315 |
+
" if (!dataTable) return;\n",
|
316 |
+
"\n",
|
317 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
318 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
319 |
+
" + ' to learn more about interactive tables.';\n",
|
320 |
+
" element.innerHTML = '';\n",
|
321 |
+
" dataTable['output_type'] = 'display_data';\n",
|
322 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
323 |
+
" const docLink = document.createElement('div');\n",
|
324 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
325 |
+
" element.appendChild(docLink);\n",
|
326 |
+
" }\n",
|
327 |
+
" </script>\n",
|
328 |
+
" </div>\n",
|
329 |
+
"\n",
|
330 |
+
"\n",
|
331 |
+
"<div id=\"df-efa03089-ede5-411e-b0f0-a5784c8dc78f\">\n",
|
332 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-efa03089-ede5-411e-b0f0-a5784c8dc78f')\"\n",
|
333 |
+
" title=\"Suggest charts\"\n",
|
334 |
+
" style=\"display:none;\">\n",
|
335 |
+
"\n",
|
336 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
337 |
+
" width=\"24px\">\n",
|
338 |
+
" <g>\n",
|
339 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
340 |
+
" </g>\n",
|
341 |
+
"</svg>\n",
|
342 |
+
" </button>\n",
|
343 |
+
"\n",
|
344 |
+
"<style>\n",
|
345 |
+
" .colab-df-quickchart {\n",
|
346 |
+
" --bg-color: #E8F0FE;\n",
|
347 |
+
" --fill-color: #1967D2;\n",
|
348 |
+
" --hover-bg-color: #E2EBFA;\n",
|
349 |
+
" --hover-fill-color: #174EA6;\n",
|
350 |
+
" --disabled-fill-color: #AAA;\n",
|
351 |
+
" --disabled-bg-color: #DDD;\n",
|
352 |
+
" }\n",
|
353 |
+
"\n",
|
354 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
355 |
+
" --bg-color: #3B4455;\n",
|
356 |
+
" --fill-color: #D2E3FC;\n",
|
357 |
+
" --hover-bg-color: #434B5C;\n",
|
358 |
+
" --hover-fill-color: #FFFFFF;\n",
|
359 |
+
" --disabled-bg-color: #3B4455;\n",
|
360 |
+
" --disabled-fill-color: #666;\n",
|
361 |
+
" }\n",
|
362 |
+
"\n",
|
363 |
+
" .colab-df-quickchart {\n",
|
364 |
+
" background-color: var(--bg-color);\n",
|
365 |
+
" border: none;\n",
|
366 |
+
" border-radius: 50%;\n",
|
367 |
+
" cursor: pointer;\n",
|
368 |
+
" display: none;\n",
|
369 |
+
" fill: var(--fill-color);\n",
|
370 |
+
" height: 32px;\n",
|
371 |
+
" padding: 0;\n",
|
372 |
+
" width: 32px;\n",
|
373 |
+
" }\n",
|
374 |
+
"\n",
|
375 |
+
" .colab-df-quickchart:hover {\n",
|
376 |
+
" background-color: var(--hover-bg-color);\n",
|
377 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
378 |
+
" fill: var(--button-hover-fill-color);\n",
|
379 |
+
" }\n",
|
380 |
+
"\n",
|
381 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
382 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
383 |
+
" background-color: var(--disabled-bg-color);\n",
|
384 |
+
" fill: var(--disabled-fill-color);\n",
|
385 |
+
" box-shadow: none;\n",
|
386 |
+
" }\n",
|
387 |
+
"\n",
|
388 |
+
" .colab-df-spinner {\n",
|
389 |
+
" border: 2px solid var(--fill-color);\n",
|
390 |
+
" border-color: transparent;\n",
|
391 |
+
" border-bottom-color: var(--fill-color);\n",
|
392 |
+
" animation:\n",
|
393 |
+
" spin 1s steps(1) infinite;\n",
|
394 |
+
" }\n",
|
395 |
+
"\n",
|
396 |
+
" @keyframes spin {\n",
|
397 |
+
" 0% {\n",
|
398 |
+
" border-color: transparent;\n",
|
399 |
+
" border-bottom-color: var(--fill-color);\n",
|
400 |
+
" border-left-color: var(--fill-color);\n",
|
401 |
+
" }\n",
|
402 |
+
" 20% {\n",
|
403 |
+
" border-color: transparent;\n",
|
404 |
+
" border-left-color: var(--fill-color);\n",
|
405 |
+
" border-top-color: var(--fill-color);\n",
|
406 |
+
" }\n",
|
407 |
+
" 30% {\n",
|
408 |
+
" border-color: transparent;\n",
|
409 |
+
" border-left-color: var(--fill-color);\n",
|
410 |
+
" border-top-color: var(--fill-color);\n",
|
411 |
+
" border-right-color: var(--fill-color);\n",
|
412 |
+
" }\n",
|
413 |
+
" 40% {\n",
|
414 |
+
" border-color: transparent;\n",
|
415 |
+
" border-right-color: var(--fill-color);\n",
|
416 |
+
" border-top-color: var(--fill-color);\n",
|
417 |
+
" }\n",
|
418 |
+
" 60% {\n",
|
419 |
+
" border-color: transparent;\n",
|
420 |
+
" border-right-color: var(--fill-color);\n",
|
421 |
+
" }\n",
|
422 |
+
" 80% {\n",
|
423 |
+
" border-color: transparent;\n",
|
424 |
+
" border-right-color: var(--fill-color);\n",
|
425 |
+
" border-bottom-color: var(--fill-color);\n",
|
426 |
+
" }\n",
|
427 |
+
" 90% {\n",
|
428 |
+
" border-color: transparent;\n",
|
429 |
+
" border-bottom-color: var(--fill-color);\n",
|
430 |
+
" }\n",
|
431 |
+
" }\n",
|
432 |
+
"</style>\n",
|
433 |
+
"\n",
|
434 |
+
" <script>\n",
|
435 |
+
" async function quickchart(key) {\n",
|
436 |
+
" const quickchartButtonEl =\n",
|
437 |
+
" document.querySelector('#' + key + ' button');\n",
|
438 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
439 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
440 |
+
" try {\n",
|
441 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
442 |
+
" 'suggestCharts', [key], {});\n",
|
443 |
+
" } catch (error) {\n",
|
444 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
445 |
+
" }\n",
|
446 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
447 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
448 |
+
" }\n",
|
449 |
+
" (() => {\n",
|
450 |
+
" let quickchartButtonEl =\n",
|
451 |
+
" document.querySelector('#df-efa03089-ede5-411e-b0f0-a5784c8dc78f button');\n",
|
452 |
+
" quickchartButtonEl.style.display =\n",
|
453 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
454 |
+
" })();\n",
|
455 |
+
" </script>\n",
|
456 |
+
"</div>\n",
|
457 |
+
"\n",
|
458 |
+
" <div id=\"id_6841d3c6-647d-4dce-a146-fe9011b50790\">\n",
|
459 |
+
" <style>\n",
|
460 |
+
" .colab-df-generate {\n",
|
461 |
+
" background-color: #E8F0FE;\n",
|
462 |
+
" border: none;\n",
|
463 |
+
" border-radius: 50%;\n",
|
464 |
+
" cursor: pointer;\n",
|
465 |
+
" display: none;\n",
|
466 |
+
" fill: #1967D2;\n",
|
467 |
+
" height: 32px;\n",
|
468 |
+
" padding: 0 0 0 0;\n",
|
469 |
+
" width: 32px;\n",
|
470 |
+
" }\n",
|
471 |
+
"\n",
|
472 |
+
" .colab-df-generate:hover {\n",
|
473 |
+
" background-color: #E2EBFA;\n",
|
474 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
475 |
+
" fill: #174EA6;\n",
|
476 |
+
" }\n",
|
477 |
+
"\n",
|
478 |
+
" [theme=dark] .colab-df-generate {\n",
|
479 |
+
" background-color: #3B4455;\n",
|
480 |
+
" fill: #D2E3FC;\n",
|
481 |
+
" }\n",
|
482 |
+
"\n",
|
483 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
484 |
+
" background-color: #434B5C;\n",
|
485 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
486 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
487 |
+
" fill: #FFFFFF;\n",
|
488 |
+
" }\n",
|
489 |
+
" </style>\n",
|
490 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
491 |
+
" title=\"Generate code using this dataframe.\"\n",
|
492 |
+
" style=\"display:none;\">\n",
|
493 |
+
"\n",
|
494 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
495 |
+
" width=\"24px\">\n",
|
496 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
497 |
+
" </svg>\n",
|
498 |
+
" </button>\n",
|
499 |
+
" <script>\n",
|
500 |
+
" (() => {\n",
|
501 |
+
" const buttonEl =\n",
|
502 |
+
" document.querySelector('#id_6841d3c6-647d-4dce-a146-fe9011b50790 button.colab-df-generate');\n",
|
503 |
+
" buttonEl.style.display =\n",
|
504 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
505 |
+
"\n",
|
506 |
+
" buttonEl.onclick = () => {\n",
|
507 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
508 |
+
" }\n",
|
509 |
+
" })();\n",
|
510 |
+
" </script>\n",
|
511 |
+
" </div>\n",
|
512 |
+
"\n",
|
513 |
+
" </div>\n",
|
514 |
+
" </div>\n"
|
515 |
+
],
|
516 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
517 |
+
"type": "dataframe",
|
518 |
+
"variable_name": "df",
|
519 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 303,\n \"fields\": [\n {\n \"column\": \"age\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 9,\n \"min\": 29,\n \"max\": 77,\n \"num_unique_values\": 41,\n \"samples\": [\n 46,\n 66,\n 48\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"sex\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"cp\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 1,\n \"min\": 0,\n \"max\": 3,\n \"num_unique_values\": 4,\n \"samples\": [\n 2,\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"chol\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 51,\n \"min\": 126,\n \"max\": 564,\n \"num_unique_values\": 152,\n \"samples\": [\n 277,\n 169\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"ca\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 1,\n \"min\": 0,\n \"max\": 4,\n \"num_unique_values\": 5,\n \"samples\": [\n 2,\n 4\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"thal\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 3,\n \"num_unique_values\": 4,\n \"samples\": [\n 2,\n 0\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"target\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
520 |
+
}
|
521 |
+
},
|
522 |
+
"metadata": {},
|
523 |
+
"execution_count": 26
|
524 |
+
}
|
525 |
+
]
|
526 |
+
},
|
527 |
+
{
|
528 |
+
"cell_type": "code",
|
529 |
+
"source": [
|
530 |
+
"x_data = df.drop(['target'], axis = 1)\n",
|
531 |
+
"y = df.target.values"
|
532 |
+
],
|
533 |
+
"metadata": {
|
534 |
+
"id": "vA58b9OtWIDv"
|
535 |
+
},
|
536 |
+
"execution_count": 27,
|
537 |
+
"outputs": []
|
538 |
+
},
|
539 |
+
{
|
540 |
+
"cell_type": "code",
|
541 |
+
"source": [
|
542 |
+
"x_train, x_test, y_train, y_test = train_test_split(x_data, y, test_size = 0.2, random_state= 0)"
|
543 |
+
],
|
544 |
+
"metadata": {
|
545 |
+
"id": "vK1Fycc-WqRj"
|
546 |
+
},
|
547 |
+
"execution_count": 28,
|
548 |
+
"outputs": []
|
549 |
+
},
|
550 |
+
{
|
551 |
+
"cell_type": "code",
|
552 |
+
"source": [
|
553 |
+
"from sklearn.ensemble import RandomForestClassifier\n",
|
554 |
+
"rf = RandomForestClassifier(n_estimators = 1000, random_state= 1)\n",
|
555 |
+
"rf.fit(x_train, y_train)"
|
556 |
+
],
|
557 |
+
"metadata": {
|
558 |
+
"colab": {
|
559 |
+
"base_uri": "https://localhost:8080/",
|
560 |
+
"height": 74
|
561 |
+
},
|
562 |
+
"id": "JEFcVUBLW9Pi",
|
563 |
+
"outputId": "325b00b5-3a44-4396-8f58-d6b4ff5447b1"
|
564 |
+
},
|
565 |
+
"execution_count": 29,
|
566 |
+
"outputs": [
|
567 |
+
{
|
568 |
+
"output_type": "execute_result",
|
569 |
+
"data": {
|
570 |
+
"text/plain": [
|
571 |
+
"RandomForestClassifier(n_estimators=1000, random_state=1)"
|
572 |
+
],
|
573 |
+
"text/html": [
|
574 |
+
"<style>#sk-container-id-2 {color: black;background-color: white;}#sk-container-id-2 pre{padding: 0;}#sk-container-id-2 div.sk-toggleable {background-color: white;}#sk-container-id-2 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-2 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-2 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-2 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-2 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-2 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-2 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-2 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-2 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-2 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-2 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-2 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-2 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-2 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-2 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-2 div.sk-item {position: relative;z-index: 1;}#sk-container-id-2 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-2 div.sk-item::before, #sk-container-id-2 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-2 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-2 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-2 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-2 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-2 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-2 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-2 div.sk-label-container {text-align: center;}#sk-container-id-2 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-2 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-2\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>RandomForestClassifier(n_estimators=1000, random_state=1)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-2\" type=\"checkbox\" checked><label for=\"sk-estimator-id-2\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">RandomForestClassifier</label><div class=\"sk-toggleable__content\"><pre>RandomForestClassifier(n_estimators=1000, random_state=1)</pre></div></div></div></div></div>"
|
575 |
+
]
|
576 |
+
},
|
577 |
+
"metadata": {},
|
578 |
+
"execution_count": 29
|
579 |
+
}
|
580 |
+
]
|
581 |
+
},
|
582 |
+
{
|
583 |
+
"cell_type": "code",
|
584 |
+
"source": [
|
585 |
+
"y_pred=rf.predict(x_test)"
|
586 |
+
],
|
587 |
+
"metadata": {
|
588 |
+
"id": "M66dC8FOXNEt"
|
589 |
+
},
|
590 |
+
"execution_count": 30,
|
591 |
+
"outputs": []
|
592 |
+
},
|
593 |
+
{
|
594 |
+
"cell_type": "code",
|
595 |
+
"source": [
|
596 |
+
"from sklearn.metrics import classification_report\n",
|
597 |
+
"print(classification_report(y_pred,y_test))"
|
598 |
+
],
|
599 |
+
"metadata": {
|
600 |
+
"colab": {
|
601 |
+
"base_uri": "https://localhost:8080/"
|
602 |
+
},
|
603 |
+
"id": "L06DnXKhXPzS",
|
604 |
+
"outputId": "fd3a39c7-f435-4363-9d68-725708e39fe5"
|
605 |
+
},
|
606 |
+
"execution_count": 31,
|
607 |
+
"outputs": [
|
608 |
+
{
|
609 |
+
"output_type": "stream",
|
610 |
+
"name": "stdout",
|
611 |
+
"text": [
|
612 |
+
" precision recall f1-score support\n",
|
613 |
+
"\n",
|
614 |
+
" 0 0.74 0.80 0.77 25\n",
|
615 |
+
" 1 0.85 0.81 0.83 36\n",
|
616 |
+
"\n",
|
617 |
+
" accuracy 0.80 61\n",
|
618 |
+
" macro avg 0.80 0.80 0.80 61\n",
|
619 |
+
"weighted avg 0.81 0.80 0.80 61\n",
|
620 |
+
"\n"
|
621 |
+
]
|
622 |
+
}
|
623 |
+
]
|
624 |
+
},
|
625 |
+
{
|
626 |
+
"cell_type": "code",
|
627 |
+
"source": [
|
628 |
+
"import pickle\n",
|
629 |
+
"\n",
|
630 |
+
"with open('osp.pkl','wb') as f:\n",
|
631 |
+
" pickle.dump(rf,f)\n",
|
632 |
+
"\n",
|
633 |
+
"# load\n",
|
634 |
+
"with open('osp.pkl', 'rb') as f:\n",
|
635 |
+
" rf = pickle.load(f)\n",
|
636 |
+
"#rf.predict()"
|
637 |
+
],
|
638 |
+
"metadata": {
|
639 |
+
"id": "4IrkPQCLXhYw"
|
640 |
+
},
|
641 |
+
"execution_count": 32,
|
642 |
+
"outputs": []
|
643 |
+
},
|
644 |
+
{
|
645 |
+
"cell_type": "code",
|
646 |
+
"source": [],
|
647 |
+
"metadata": {
|
648 |
+
"id": "sTwBUL3vZhdQ"
|
649 |
+
},
|
650 |
+
"execution_count": null,
|
651 |
+
"outputs": []
|
652 |
+
}
|
653 |
+
]
|
654 |
+
}
|
osp.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08fb30891aebadc1dd8058e745f232ca91bf9186c4be95528383226171145102
|
3 |
+
size 7117386
|
sk.ipynb
ADDED
@@ -0,0 +1,632 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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"Python 3"
|
11 |
+
},
|
12 |
+
"language_info": {
|
13 |
+
"name": "python"
|
14 |
+
}
|
15 |
+
},
|
16 |
+
"cells": [
|
17 |
+
{
|
18 |
+
"cell_type": "markdown",
|
19 |
+
"source": [
|
20 |
+
"# Sugar Kinetics"
|
21 |
+
],
|
22 |
+
"metadata": {
|
23 |
+
"id": "iLEeLWoV-tpx"
|
24 |
+
}
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"cell_type": "code",
|
28 |
+
"execution_count": null,
|
29 |
+
"metadata": {
|
30 |
+
"id": "L96SNQ8HVI7m"
|
31 |
+
},
|
32 |
+
"outputs": [],
|
33 |
+
"source": [
|
34 |
+
"# imports\n",
|
35 |
+
"import tensorflow as tf\n",
|
36 |
+
"import pandas as pd\n",
|
37 |
+
"import numpy as np\n",
|
38 |
+
"import matplotlib.pyplot as plt\n",
|
39 |
+
"from sklearn.preprocessing import StandardScaler\n",
|
40 |
+
"from imblearn.over_sampling import RandomOverSampler\n",
|
41 |
+
"import seaborn as sns\n",
|
42 |
+
"from sklearn.model_selection import train_test_split"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"cell_type": "code",
|
47 |
+
"source": [
|
48 |
+
"# using drive to load our dataset\n",
|
49 |
+
"from google.colab import drive\n",
|
50 |
+
"drive.mount('/content/drive')"
|
51 |
+
],
|
52 |
+
"metadata": {
|
53 |
+
"colab": {
|
54 |
+
"base_uri": "https://localhost:8080/"
|
55 |
+
},
|
56 |
+
"id": "Ea3adROCVORJ",
|
57 |
+
"outputId": "ba91f1a3-532e-49d4-b664-4b79a7c27887"
|
58 |
+
},
|
59 |
+
"execution_count": null,
|
60 |
+
"outputs": [
|
61 |
+
{
|
62 |
+
"output_type": "stream",
|
63 |
+
"name": "stdout",
|
64 |
+
"text": [
|
65 |
+
"Mounted at /content/drive\n"
|
66 |
+
]
|
67 |
+
}
|
68 |
+
]
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"cell_type": "code",
|
72 |
+
"source": [
|
73 |
+
"df=pd.read_csv(\"/content/drive/MyDrive/dataset/diabetes.csv\")\n",
|
74 |
+
"del df['Pregnancies'],df['DiabetesPedigreeFunction'],df['SkinThickness']\n",
|
75 |
+
"df"
|
76 |
+
],
|
77 |
+
"metadata": {
|
78 |
+
"colab": {
|
79 |
+
"base_uri": "https://localhost:8080/",
|
80 |
+
"height": 423
|
81 |
+
},
|
82 |
+
"id": "td0NDw6QlrIk",
|
83 |
+
"outputId": "39e6502d-04f4-4807-df25-9ac4bdb1d51c"
|
84 |
+
},
|
85 |
+
"execution_count": null,
|
86 |
+
"outputs": [
|
87 |
+
{
|
88 |
+
"output_type": "execute_result",
|
89 |
+
"data": {
|
90 |
+
"text/plain": [
|
91 |
+
" Glucose BloodPressure Insulin BMI Age Outcome\n",
|
92 |
+
"0 148 72 0 33.6 50 1\n",
|
93 |
+
"1 85 66 0 26.6 31 0\n",
|
94 |
+
"2 183 64 0 23.3 32 1\n",
|
95 |
+
"3 89 66 94 28.1 21 0\n",
|
96 |
+
"4 137 40 168 43.1 33 1\n",
|
97 |
+
".. ... ... ... ... ... ...\n",
|
98 |
+
"763 101 76 180 32.9 63 0\n",
|
99 |
+
"764 122 70 0 36.8 27 0\n",
|
100 |
+
"765 121 72 112 26.2 30 0\n",
|
101 |
+
"766 126 60 0 30.1 47 1\n",
|
102 |
+
"767 93 70 0 30.4 23 0\n",
|
103 |
+
"\n",
|
104 |
+
"[768 rows x 6 columns]"
|
105 |
+
],
|
106 |
+
"text/html": [
|
107 |
+
"\n",
|
108 |
+
" <div id=\"df-dbac154d-4168-4bc2-ae95-c0d413d968d3\" class=\"colab-df-container\">\n",
|
109 |
+
" <div>\n",
|
110 |
+
"<style scoped>\n",
|
111 |
+
" .dataframe tbody tr th:only-of-type {\n",
|
112 |
+
" vertical-align: middle;\n",
|
113 |
+
" }\n",
|
114 |
+
"\n",
|
115 |
+
" .dataframe tbody tr th {\n",
|
116 |
+
" vertical-align: top;\n",
|
117 |
+
" }\n",
|
118 |
+
"\n",
|
119 |
+
" .dataframe thead th {\n",
|
120 |
+
" text-align: right;\n",
|
121 |
+
" }\n",
|
122 |
+
"</style>\n",
|
123 |
+
"<table border=\"1\" class=\"dataframe\">\n",
|
124 |
+
" <thead>\n",
|
125 |
+
" <tr style=\"text-align: right;\">\n",
|
126 |
+
" <th></th>\n",
|
127 |
+
" <th>Glucose</th>\n",
|
128 |
+
" <th>BloodPressure</th>\n",
|
129 |
+
" <th>Insulin</th>\n",
|
130 |
+
" <th>BMI</th>\n",
|
131 |
+
" <th>Age</th>\n",
|
132 |
+
" <th>Outcome</th>\n",
|
133 |
+
" </tr>\n",
|
134 |
+
" </thead>\n",
|
135 |
+
" <tbody>\n",
|
136 |
+
" <tr>\n",
|
137 |
+
" <th>0</th>\n",
|
138 |
+
" <td>148</td>\n",
|
139 |
+
" <td>72</td>\n",
|
140 |
+
" <td>0</td>\n",
|
141 |
+
" <td>33.6</td>\n",
|
142 |
+
" <td>50</td>\n",
|
143 |
+
" <td>1</td>\n",
|
144 |
+
" </tr>\n",
|
145 |
+
" <tr>\n",
|
146 |
+
" <th>1</th>\n",
|
147 |
+
" <td>85</td>\n",
|
148 |
+
" <td>66</td>\n",
|
149 |
+
" <td>0</td>\n",
|
150 |
+
" <td>26.6</td>\n",
|
151 |
+
" <td>31</td>\n",
|
152 |
+
" <td>0</td>\n",
|
153 |
+
" </tr>\n",
|
154 |
+
" <tr>\n",
|
155 |
+
" <th>2</th>\n",
|
156 |
+
" <td>183</td>\n",
|
157 |
+
" <td>64</td>\n",
|
158 |
+
" <td>0</td>\n",
|
159 |
+
" <td>23.3</td>\n",
|
160 |
+
" <td>32</td>\n",
|
161 |
+
" <td>1</td>\n",
|
162 |
+
" </tr>\n",
|
163 |
+
" <tr>\n",
|
164 |
+
" <th>3</th>\n",
|
165 |
+
" <td>89</td>\n",
|
166 |
+
" <td>66</td>\n",
|
167 |
+
" <td>94</td>\n",
|
168 |
+
" <td>28.1</td>\n",
|
169 |
+
" <td>21</td>\n",
|
170 |
+
" <td>0</td>\n",
|
171 |
+
" </tr>\n",
|
172 |
+
" <tr>\n",
|
173 |
+
" <th>4</th>\n",
|
174 |
+
" <td>137</td>\n",
|
175 |
+
" <td>40</td>\n",
|
176 |
+
" <td>168</td>\n",
|
177 |
+
" <td>43.1</td>\n",
|
178 |
+
" <td>33</td>\n",
|
179 |
+
" <td>1</td>\n",
|
180 |
+
" </tr>\n",
|
181 |
+
" <tr>\n",
|
182 |
+
" <th>...</th>\n",
|
183 |
+
" <td>...</td>\n",
|
184 |
+
" <td>...</td>\n",
|
185 |
+
" <td>...</td>\n",
|
186 |
+
" <td>...</td>\n",
|
187 |
+
" <td>...</td>\n",
|
188 |
+
" <td>...</td>\n",
|
189 |
+
" </tr>\n",
|
190 |
+
" <tr>\n",
|
191 |
+
" <th>763</th>\n",
|
192 |
+
" <td>101</td>\n",
|
193 |
+
" <td>76</td>\n",
|
194 |
+
" <td>180</td>\n",
|
195 |
+
" <td>32.9</td>\n",
|
196 |
+
" <td>63</td>\n",
|
197 |
+
" <td>0</td>\n",
|
198 |
+
" </tr>\n",
|
199 |
+
" <tr>\n",
|
200 |
+
" <th>764</th>\n",
|
201 |
+
" <td>122</td>\n",
|
202 |
+
" <td>70</td>\n",
|
203 |
+
" <td>0</td>\n",
|
204 |
+
" <td>36.8</td>\n",
|
205 |
+
" <td>27</td>\n",
|
206 |
+
" <td>0</td>\n",
|
207 |
+
" </tr>\n",
|
208 |
+
" <tr>\n",
|
209 |
+
" <th>765</th>\n",
|
210 |
+
" <td>121</td>\n",
|
211 |
+
" <td>72</td>\n",
|
212 |
+
" <td>112</td>\n",
|
213 |
+
" <td>26.2</td>\n",
|
214 |
+
" <td>30</td>\n",
|
215 |
+
" <td>0</td>\n",
|
216 |
+
" </tr>\n",
|
217 |
+
" <tr>\n",
|
218 |
+
" <th>766</th>\n",
|
219 |
+
" <td>126</td>\n",
|
220 |
+
" <td>60</td>\n",
|
221 |
+
" <td>0</td>\n",
|
222 |
+
" <td>30.1</td>\n",
|
223 |
+
" <td>47</td>\n",
|
224 |
+
" <td>1</td>\n",
|
225 |
+
" </tr>\n",
|
226 |
+
" <tr>\n",
|
227 |
+
" <th>767</th>\n",
|
228 |
+
" <td>93</td>\n",
|
229 |
+
" <td>70</td>\n",
|
230 |
+
" <td>0</td>\n",
|
231 |
+
" <td>30.4</td>\n",
|
232 |
+
" <td>23</td>\n",
|
233 |
+
" <td>0</td>\n",
|
234 |
+
" </tr>\n",
|
235 |
+
" </tbody>\n",
|
236 |
+
"</table>\n",
|
237 |
+
"<p>768 rows × 6 columns</p>\n",
|
238 |
+
"</div>\n",
|
239 |
+
" <div class=\"colab-df-buttons\">\n",
|
240 |
+
"\n",
|
241 |
+
" <div class=\"colab-df-container\">\n",
|
242 |
+
" <button class=\"colab-df-convert\" onclick=\"convertToInteractive('df-dbac154d-4168-4bc2-ae95-c0d413d968d3')\"\n",
|
243 |
+
" title=\"Convert this dataframe to an interactive table.\"\n",
|
244 |
+
" style=\"display:none;\">\n",
|
245 |
+
"\n",
|
246 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\">\n",
|
247 |
+
" <path d=\"M120-120v-720h720v720H120Zm60-500h600v-160H180v160Zm220 220h160v-160H400v160Zm0 220h160v-160H400v160ZM180-400h160v-160H180v160Zm440 0h160v-160H620v160ZM180-180h160v-160H180v160Zm440 0h160v-160H620v160Z\"/>\n",
|
248 |
+
" </svg>\n",
|
249 |
+
" </button>\n",
|
250 |
+
"\n",
|
251 |
+
" <style>\n",
|
252 |
+
" .colab-df-container {\n",
|
253 |
+
" display:flex;\n",
|
254 |
+
" gap: 12px;\n",
|
255 |
+
" }\n",
|
256 |
+
"\n",
|
257 |
+
" .colab-df-convert {\n",
|
258 |
+
" background-color: #E8F0FE;\n",
|
259 |
+
" border: none;\n",
|
260 |
+
" border-radius: 50%;\n",
|
261 |
+
" cursor: pointer;\n",
|
262 |
+
" display: none;\n",
|
263 |
+
" fill: #1967D2;\n",
|
264 |
+
" height: 32px;\n",
|
265 |
+
" padding: 0 0 0 0;\n",
|
266 |
+
" width: 32px;\n",
|
267 |
+
" }\n",
|
268 |
+
"\n",
|
269 |
+
" .colab-df-convert:hover {\n",
|
270 |
+
" background-color: #E2EBFA;\n",
|
271 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
272 |
+
" fill: #174EA6;\n",
|
273 |
+
" }\n",
|
274 |
+
"\n",
|
275 |
+
" .colab-df-buttons div {\n",
|
276 |
+
" margin-bottom: 4px;\n",
|
277 |
+
" }\n",
|
278 |
+
"\n",
|
279 |
+
" [theme=dark] .colab-df-convert {\n",
|
280 |
+
" background-color: #3B4455;\n",
|
281 |
+
" fill: #D2E3FC;\n",
|
282 |
+
" }\n",
|
283 |
+
"\n",
|
284 |
+
" [theme=dark] .colab-df-convert:hover {\n",
|
285 |
+
" background-color: #434B5C;\n",
|
286 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
287 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
288 |
+
" fill: #FFFFFF;\n",
|
289 |
+
" }\n",
|
290 |
+
" </style>\n",
|
291 |
+
"\n",
|
292 |
+
" <script>\n",
|
293 |
+
" const buttonEl =\n",
|
294 |
+
" document.querySelector('#df-dbac154d-4168-4bc2-ae95-c0d413d968d3 button.colab-df-convert');\n",
|
295 |
+
" buttonEl.style.display =\n",
|
296 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
297 |
+
"\n",
|
298 |
+
" async function convertToInteractive(key) {\n",
|
299 |
+
" const element = document.querySelector('#df-dbac154d-4168-4bc2-ae95-c0d413d968d3');\n",
|
300 |
+
" const dataTable =\n",
|
301 |
+
" await google.colab.kernel.invokeFunction('convertToInteractive',\n",
|
302 |
+
" [key], {});\n",
|
303 |
+
" if (!dataTable) return;\n",
|
304 |
+
"\n",
|
305 |
+
" const docLinkHtml = 'Like what you see? Visit the ' +\n",
|
306 |
+
" '<a target=\"_blank\" href=https://colab.research.google.com/notebooks/data_table.ipynb>data table notebook</a>'\n",
|
307 |
+
" + ' to learn more about interactive tables.';\n",
|
308 |
+
" element.innerHTML = '';\n",
|
309 |
+
" dataTable['output_type'] = 'display_data';\n",
|
310 |
+
" await google.colab.output.renderOutput(dataTable, element);\n",
|
311 |
+
" const docLink = document.createElement('div');\n",
|
312 |
+
" docLink.innerHTML = docLinkHtml;\n",
|
313 |
+
" element.appendChild(docLink);\n",
|
314 |
+
" }\n",
|
315 |
+
" </script>\n",
|
316 |
+
" </div>\n",
|
317 |
+
"\n",
|
318 |
+
"\n",
|
319 |
+
"<div id=\"df-0cdf744e-9bb1-45b6-ae8d-959e87aa5e47\">\n",
|
320 |
+
" <button class=\"colab-df-quickchart\" onclick=\"quickchart('df-0cdf744e-9bb1-45b6-ae8d-959e87aa5e47')\"\n",
|
321 |
+
" title=\"Suggest charts\"\n",
|
322 |
+
" style=\"display:none;\">\n",
|
323 |
+
"\n",
|
324 |
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
325 |
+
" width=\"24px\">\n",
|
326 |
+
" <g>\n",
|
327 |
+
" <path d=\"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z\"/>\n",
|
328 |
+
" </g>\n",
|
329 |
+
"</svg>\n",
|
330 |
+
" </button>\n",
|
331 |
+
"\n",
|
332 |
+
"<style>\n",
|
333 |
+
" .colab-df-quickchart {\n",
|
334 |
+
" --bg-color: #E8F0FE;\n",
|
335 |
+
" --fill-color: #1967D2;\n",
|
336 |
+
" --hover-bg-color: #E2EBFA;\n",
|
337 |
+
" --hover-fill-color: #174EA6;\n",
|
338 |
+
" --disabled-fill-color: #AAA;\n",
|
339 |
+
" --disabled-bg-color: #DDD;\n",
|
340 |
+
" }\n",
|
341 |
+
"\n",
|
342 |
+
" [theme=dark] .colab-df-quickchart {\n",
|
343 |
+
" --bg-color: #3B4455;\n",
|
344 |
+
" --fill-color: #D2E3FC;\n",
|
345 |
+
" --hover-bg-color: #434B5C;\n",
|
346 |
+
" --hover-fill-color: #FFFFFF;\n",
|
347 |
+
" --disabled-bg-color: #3B4455;\n",
|
348 |
+
" --disabled-fill-color: #666;\n",
|
349 |
+
" }\n",
|
350 |
+
"\n",
|
351 |
+
" .colab-df-quickchart {\n",
|
352 |
+
" background-color: var(--bg-color);\n",
|
353 |
+
" border: none;\n",
|
354 |
+
" border-radius: 50%;\n",
|
355 |
+
" cursor: pointer;\n",
|
356 |
+
" display: none;\n",
|
357 |
+
" fill: var(--fill-color);\n",
|
358 |
+
" height: 32px;\n",
|
359 |
+
" padding: 0;\n",
|
360 |
+
" width: 32px;\n",
|
361 |
+
" }\n",
|
362 |
+
"\n",
|
363 |
+
" .colab-df-quickchart:hover {\n",
|
364 |
+
" background-color: var(--hover-bg-color);\n",
|
365 |
+
" box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
366 |
+
" fill: var(--button-hover-fill-color);\n",
|
367 |
+
" }\n",
|
368 |
+
"\n",
|
369 |
+
" .colab-df-quickchart-complete:disabled,\n",
|
370 |
+
" .colab-df-quickchart-complete:disabled:hover {\n",
|
371 |
+
" background-color: var(--disabled-bg-color);\n",
|
372 |
+
" fill: var(--disabled-fill-color);\n",
|
373 |
+
" box-shadow: none;\n",
|
374 |
+
" }\n",
|
375 |
+
"\n",
|
376 |
+
" .colab-df-spinner {\n",
|
377 |
+
" border: 2px solid var(--fill-color);\n",
|
378 |
+
" border-color: transparent;\n",
|
379 |
+
" border-bottom-color: var(--fill-color);\n",
|
380 |
+
" animation:\n",
|
381 |
+
" spin 1s steps(1) infinite;\n",
|
382 |
+
" }\n",
|
383 |
+
"\n",
|
384 |
+
" @keyframes spin {\n",
|
385 |
+
" 0% {\n",
|
386 |
+
" border-color: transparent;\n",
|
387 |
+
" border-bottom-color: var(--fill-color);\n",
|
388 |
+
" border-left-color: var(--fill-color);\n",
|
389 |
+
" }\n",
|
390 |
+
" 20% {\n",
|
391 |
+
" border-color: transparent;\n",
|
392 |
+
" border-left-color: var(--fill-color);\n",
|
393 |
+
" border-top-color: var(--fill-color);\n",
|
394 |
+
" }\n",
|
395 |
+
" 30% {\n",
|
396 |
+
" border-color: transparent;\n",
|
397 |
+
" border-left-color: var(--fill-color);\n",
|
398 |
+
" border-top-color: var(--fill-color);\n",
|
399 |
+
" border-right-color: var(--fill-color);\n",
|
400 |
+
" }\n",
|
401 |
+
" 40% {\n",
|
402 |
+
" border-color: transparent;\n",
|
403 |
+
" border-right-color: var(--fill-color);\n",
|
404 |
+
" border-top-color: var(--fill-color);\n",
|
405 |
+
" }\n",
|
406 |
+
" 60% {\n",
|
407 |
+
" border-color: transparent;\n",
|
408 |
+
" border-right-color: var(--fill-color);\n",
|
409 |
+
" }\n",
|
410 |
+
" 80% {\n",
|
411 |
+
" border-color: transparent;\n",
|
412 |
+
" border-right-color: var(--fill-color);\n",
|
413 |
+
" border-bottom-color: var(--fill-color);\n",
|
414 |
+
" }\n",
|
415 |
+
" 90% {\n",
|
416 |
+
" border-color: transparent;\n",
|
417 |
+
" border-bottom-color: var(--fill-color);\n",
|
418 |
+
" }\n",
|
419 |
+
" }\n",
|
420 |
+
"</style>\n",
|
421 |
+
"\n",
|
422 |
+
" <script>\n",
|
423 |
+
" async function quickchart(key) {\n",
|
424 |
+
" const quickchartButtonEl =\n",
|
425 |
+
" document.querySelector('#' + key + ' button');\n",
|
426 |
+
" quickchartButtonEl.disabled = true; // To prevent multiple clicks.\n",
|
427 |
+
" quickchartButtonEl.classList.add('colab-df-spinner');\n",
|
428 |
+
" try {\n",
|
429 |
+
" const charts = await google.colab.kernel.invokeFunction(\n",
|
430 |
+
" 'suggestCharts', [key], {});\n",
|
431 |
+
" } catch (error) {\n",
|
432 |
+
" console.error('Error during call to suggestCharts:', error);\n",
|
433 |
+
" }\n",
|
434 |
+
" quickchartButtonEl.classList.remove('colab-df-spinner');\n",
|
435 |
+
" quickchartButtonEl.classList.add('colab-df-quickchart-complete');\n",
|
436 |
+
" }\n",
|
437 |
+
" (() => {\n",
|
438 |
+
" let quickchartButtonEl =\n",
|
439 |
+
" document.querySelector('#df-0cdf744e-9bb1-45b6-ae8d-959e87aa5e47 button');\n",
|
440 |
+
" quickchartButtonEl.style.display =\n",
|
441 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
442 |
+
" })();\n",
|
443 |
+
" </script>\n",
|
444 |
+
"</div>\n",
|
445 |
+
"\n",
|
446 |
+
" <div id=\"id_0b74a80c-05de-486a-a869-a5246859ea43\">\n",
|
447 |
+
" <style>\n",
|
448 |
+
" .colab-df-generate {\n",
|
449 |
+
" background-color: #E8F0FE;\n",
|
450 |
+
" border: none;\n",
|
451 |
+
" border-radius: 50%;\n",
|
452 |
+
" cursor: pointer;\n",
|
453 |
+
" display: none;\n",
|
454 |
+
" fill: #1967D2;\n",
|
455 |
+
" height: 32px;\n",
|
456 |
+
" padding: 0 0 0 0;\n",
|
457 |
+
" width: 32px;\n",
|
458 |
+
" }\n",
|
459 |
+
"\n",
|
460 |
+
" .colab-df-generate:hover {\n",
|
461 |
+
" background-color: #E2EBFA;\n",
|
462 |
+
" box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);\n",
|
463 |
+
" fill: #174EA6;\n",
|
464 |
+
" }\n",
|
465 |
+
"\n",
|
466 |
+
" [theme=dark] .colab-df-generate {\n",
|
467 |
+
" background-color: #3B4455;\n",
|
468 |
+
" fill: #D2E3FC;\n",
|
469 |
+
" }\n",
|
470 |
+
"\n",
|
471 |
+
" [theme=dark] .colab-df-generate:hover {\n",
|
472 |
+
" background-color: #434B5C;\n",
|
473 |
+
" box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);\n",
|
474 |
+
" filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));\n",
|
475 |
+
" fill: #FFFFFF;\n",
|
476 |
+
" }\n",
|
477 |
+
" </style>\n",
|
478 |
+
" <button class=\"colab-df-generate\" onclick=\"generateWithVariable('df')\"\n",
|
479 |
+
" title=\"Generate code using this dataframe.\"\n",
|
480 |
+
" style=\"display:none;\">\n",
|
481 |
+
"\n",
|
482 |
+
" <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\"viewBox=\"0 0 24 24\"\n",
|
483 |
+
" width=\"24px\">\n",
|
484 |
+
" <path d=\"M7,19H8.4L18.45,9,17,7.55,7,17.6ZM5,21V16.75L18.45,3.32a2,2,0,0,1,2.83,0l1.4,1.43a1.91,1.91,0,0,1,.58,1.4,1.91,1.91,0,0,1-.58,1.4L9.25,21ZM18.45,9,17,7.55Zm-12,3A5.31,5.31,0,0,0,4.9,8.1,5.31,5.31,0,0,0,1,6.5,5.31,5.31,0,0,0,4.9,4.9,5.31,5.31,0,0,0,6.5,1,5.31,5.31,0,0,0,8.1,4.9,5.31,5.31,0,0,0,12,6.5,5.46,5.46,0,0,0,6.5,12Z\"/>\n",
|
485 |
+
" </svg>\n",
|
486 |
+
" </button>\n",
|
487 |
+
" <script>\n",
|
488 |
+
" (() => {\n",
|
489 |
+
" const buttonEl =\n",
|
490 |
+
" document.querySelector('#id_0b74a80c-05de-486a-a869-a5246859ea43 button.colab-df-generate');\n",
|
491 |
+
" buttonEl.style.display =\n",
|
492 |
+
" google.colab.kernel.accessAllowed ? 'block' : 'none';\n",
|
493 |
+
"\n",
|
494 |
+
" buttonEl.onclick = () => {\n",
|
495 |
+
" google.colab.notebook.generateWithVariable('df');\n",
|
496 |
+
" }\n",
|
497 |
+
" })();\n",
|
498 |
+
" </script>\n",
|
499 |
+
" </div>\n",
|
500 |
+
"\n",
|
501 |
+
" </div>\n",
|
502 |
+
" </div>\n"
|
503 |
+
],
|
504 |
+
"application/vnd.google.colaboratory.intrinsic+json": {
|
505 |
+
"type": "dataframe",
|
506 |
+
"variable_name": "df",
|
507 |
+
"summary": "{\n \"name\": \"df\",\n \"rows\": 768,\n \"fields\": [\n {\n \"column\": \"Glucose\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 31,\n \"min\": 0,\n \"max\": 199,\n \"num_unique_values\": 136,\n \"samples\": [\n 151,\n 101,\n 112\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"BloodPressure\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 19,\n \"min\": 0,\n \"max\": 122,\n \"num_unique_values\": 47,\n \"samples\": [\n 86,\n 46,\n 85\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"Insulin\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 115,\n \"min\": 0,\n \"max\": 846,\n \"num_unique_values\": 186,\n \"samples\": [\n 52,\n 41,\n 183\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"BMI\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 7.884160320375446,\n \"min\": 0.0,\n \"max\": 67.1,\n \"num_unique_values\": 248,\n \"samples\": [\n 19.9,\n 31.0,\n 38.1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"Age\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 11,\n \"min\": 21,\n \"max\": 81,\n \"num_unique_values\": 52,\n \"samples\": [\n 60,\n 47,\n 72\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"Outcome\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 0,\n \"max\": 1,\n \"num_unique_values\": 2,\n \"samples\": [\n 0,\n 1\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}"
|
508 |
+
}
|
509 |
+
},
|
510 |
+
"metadata": {},
|
511 |
+
"execution_count": 6
|
512 |
+
}
|
513 |
+
]
|
514 |
+
},
|
515 |
+
{
|
516 |
+
"cell_type": "code",
|
517 |
+
"source": [
|
518 |
+
"x_data = df.drop(['Outcome'], axis = 1)\n",
|
519 |
+
"y = df.Outcome.values"
|
520 |
+
],
|
521 |
+
"metadata": {
|
522 |
+
"id": "jvdxSOtN35up"
|
523 |
+
},
|
524 |
+
"execution_count": null,
|
525 |
+
"outputs": []
|
526 |
+
},
|
527 |
+
{
|
528 |
+
"cell_type": "code",
|
529 |
+
"source": [
|
530 |
+
"x_train, x_test, y_train, y_test = train_test_split(x_data, y, test_size = 0.2, random_state= 0)"
|
531 |
+
],
|
532 |
+
"metadata": {
|
533 |
+
"id": "dHaFMd8A94Ks"
|
534 |
+
},
|
535 |
+
"execution_count": null,
|
536 |
+
"outputs": []
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"cell_type": "code",
|
540 |
+
"source": [
|
541 |
+
"from sklearn.ensemble import RandomForestClassifier\n",
|
542 |
+
"rf = RandomForestClassifier(n_estimators = 1000, random_state= 1)\n",
|
543 |
+
"rf.fit(x_train, y_train)"
|
544 |
+
],
|
545 |
+
"metadata": {
|
546 |
+
"colab": {
|
547 |
+
"base_uri": "https://localhost:8080/",
|
548 |
+
"height": 74
|
549 |
+
},
|
550 |
+
"id": "LvD2S2ZI7ucw",
|
551 |
+
"outputId": "e4fd08d0-a046-4e35-8c6c-ed4c64eaeb67"
|
552 |
+
},
|
553 |
+
"execution_count": null,
|
554 |
+
"outputs": [
|
555 |
+
{
|
556 |
+
"output_type": "execute_result",
|
557 |
+
"data": {
|
558 |
+
"text/plain": [
|
559 |
+
"RandomForestClassifier(n_estimators=1000, random_state=1)"
|
560 |
+
],
|
561 |
+
"text/html": [
|
562 |
+
"<style>#sk-container-id-1 {color: black;background-color: white;}#sk-container-id-1 pre{padding: 0;}#sk-container-id-1 div.sk-toggleable {background-color: white;}#sk-container-id-1 label.sk-toggleable__label {cursor: pointer;display: block;width: 100%;margin-bottom: 0;padding: 0.3em;box-sizing: border-box;text-align: center;}#sk-container-id-1 label.sk-toggleable__label-arrow:before {content: \"▸\";float: left;margin-right: 0.25em;color: #696969;}#sk-container-id-1 label.sk-toggleable__label-arrow:hover:before {color: black;}#sk-container-id-1 div.sk-estimator:hover label.sk-toggleable__label-arrow:before {color: black;}#sk-container-id-1 div.sk-toggleable__content {max-height: 0;max-width: 0;overflow: hidden;text-align: left;background-color: #f0f8ff;}#sk-container-id-1 div.sk-toggleable__content pre {margin: 0.2em;color: black;border-radius: 0.25em;background-color: #f0f8ff;}#sk-container-id-1 input.sk-toggleable__control:checked~div.sk-toggleable__content {max-height: 200px;max-width: 100%;overflow: auto;}#sk-container-id-1 input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {content: \"▾\";}#sk-container-id-1 div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 input.sk-hidden--visually {border: 0;clip: rect(1px 1px 1px 1px);clip: rect(1px, 1px, 1px, 1px);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;}#sk-container-id-1 div.sk-estimator {font-family: monospace;background-color: #f0f8ff;border: 1px dotted black;border-radius: 0.25em;box-sizing: border-box;margin-bottom: 0.5em;}#sk-container-id-1 div.sk-estimator:hover {background-color: #d4ebff;}#sk-container-id-1 div.sk-parallel-item::after {content: \"\";width: 100%;border-bottom: 1px solid gray;flex-grow: 1;}#sk-container-id-1 div.sk-label:hover label.sk-toggleable__label {background-color: #d4ebff;}#sk-container-id-1 div.sk-serial::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: 0;}#sk-container-id-1 div.sk-serial {display: flex;flex-direction: column;align-items: center;background-color: white;padding-right: 0.2em;padding-left: 0.2em;position: relative;}#sk-container-id-1 div.sk-item {position: relative;z-index: 1;}#sk-container-id-1 div.sk-parallel {display: flex;align-items: stretch;justify-content: center;background-color: white;position: relative;}#sk-container-id-1 div.sk-item::before, #sk-container-id-1 div.sk-parallel-item::before {content: \"\";position: absolute;border-left: 1px solid gray;box-sizing: border-box;top: 0;bottom: 0;left: 50%;z-index: -1;}#sk-container-id-1 div.sk-parallel-item {display: flex;flex-direction: column;z-index: 1;position: relative;background-color: white;}#sk-container-id-1 div.sk-parallel-item:first-child::after {align-self: flex-end;width: 50%;}#sk-container-id-1 div.sk-parallel-item:last-child::after {align-self: flex-start;width: 50%;}#sk-container-id-1 div.sk-parallel-item:only-child::after {width: 0;}#sk-container-id-1 div.sk-dashed-wrapped {border: 1px dashed gray;margin: 0 0.4em 0.5em 0.4em;box-sizing: border-box;padding-bottom: 0.4em;background-color: white;}#sk-container-id-1 div.sk-label label {font-family: monospace;font-weight: bold;display: inline-block;line-height: 1.2em;}#sk-container-id-1 div.sk-label-container {text-align: center;}#sk-container-id-1 div.sk-container {/* jupyter's `normalize.less` sets `[hidden] { display: none; }` but bootstrap.min.css set `[hidden] { display: none !important; }` so we also need the `!important` here to be able to override the default hidden behavior on the sphinx rendered scikit-learn.org. See: https://github.com/scikit-learn/scikit-learn/issues/21755 */display: inline-block !important;position: relative;}#sk-container-id-1 div.sk-text-repr-fallback {display: none;}</style><div id=\"sk-container-id-1\" class=\"sk-top-container\"><div class=\"sk-text-repr-fallback\"><pre>RandomForestClassifier(n_estimators=1000, random_state=1)</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item\"><div class=\"sk-estimator sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually\" id=\"sk-estimator-id-1\" type=\"checkbox\" checked><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label sk-toggleable__label-arrow\">RandomForestClassifier</label><div class=\"sk-toggleable__content\"><pre>RandomForestClassifier(n_estimators=1000, random_state=1)</pre></div></div></div></div></div>"
|
563 |
+
]
|
564 |
+
},
|
565 |
+
"metadata": {},
|
566 |
+
"execution_count": 9
|
567 |
+
}
|
568 |
+
]
|
569 |
+
},
|
570 |
+
{
|
571 |
+
"cell_type": "code",
|
572 |
+
"source": [
|
573 |
+
"y_pred=rf.predict(x_test)"
|
574 |
+
],
|
575 |
+
"metadata": {
|
576 |
+
"id": "M66dC8FOXNEt"
|
577 |
+
},
|
578 |
+
"execution_count": null,
|
579 |
+
"outputs": []
|
580 |
+
},
|
581 |
+
{
|
582 |
+
"cell_type": "code",
|
583 |
+
"source": [
|
584 |
+
"from sklearn.metrics import classification_report\n",
|
585 |
+
"print(classification_report(y_pred,y_test))"
|
586 |
+
],
|
587 |
+
"metadata": {
|
588 |
+
"colab": {
|
589 |
+
"base_uri": "https://localhost:8080/"
|
590 |
+
},
|
591 |
+
"id": "L06DnXKhXPzS",
|
592 |
+
"outputId": "4ea67626-fba1-45de-9cc3-290c784e15f7"
|
593 |
+
},
|
594 |
+
"execution_count": null,
|
595 |
+
"outputs": [
|
596 |
+
{
|
597 |
+
"output_type": "stream",
|
598 |
+
"name": "stdout",
|
599 |
+
"text": [
|
600 |
+
" precision recall f1-score support\n",
|
601 |
+
"\n",
|
602 |
+
" 0 0.86 0.86 0.86 107\n",
|
603 |
+
" 1 0.68 0.68 0.68 47\n",
|
604 |
+
"\n",
|
605 |
+
" accuracy 0.81 154\n",
|
606 |
+
" macro avg 0.77 0.77 0.77 154\n",
|
607 |
+
"weighted avg 0.81 0.81 0.81 154\n",
|
608 |
+
"\n"
|
609 |
+
]
|
610 |
+
}
|
611 |
+
]
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"cell_type": "code",
|
615 |
+
"source": [
|
616 |
+
"import pickle\n",
|
617 |
+
"\n",
|
618 |
+
"with open('sk.pkl','wb') as f:\n",
|
619 |
+
" pickle.dump(rf,f)\n",
|
620 |
+
"\n",
|
621 |
+
"# load\n",
|
622 |
+
"with open('sk.pkl', 'rb') as f:\n",
|
623 |
+
" rf = pickle.load(f)"
|
624 |
+
],
|
625 |
+
"metadata": {
|
626 |
+
"id": "4IrkPQCLXhYw"
|
627 |
+
},
|
628 |
+
"execution_count": null,
|
629 |
+
"outputs": []
|
630 |
+
}
|
631 |
+
]
|
632 |
+
}
|
sk.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4437736ad5c632de77920c00bbfc19998031da4fd98eca74f847e0c515891e41
|
3 |
+
size 16030490
|
survey lung cancer.csv
ADDED
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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