Skip to content

Commit c62b09f

Browse files
authored
Merge pull request #12 from eahussein/hack
Done
2 parents de7a7df + f25764b commit c62b09f

10 files changed

Lines changed: 322 additions & 220 deletions

notebooks/.ipynb_checkpoints/tutorial1-checkpoint.ipynb

Lines changed: 8 additions & 16 deletions
Large diffs are not rendered by default.

notebooks/.ipynb_checkpoints/tutorial2-checkpoint.ipynb

Lines changed: 50 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@
88
"# Tutorial 2: Baseline Calculation."
99
]
1010
},
11+
{
12+
"cell_type": "markdown",
13+
"id": "6990d828-0bd2-4980-bccf-4ac1c45e695c",
14+
"metadata": {},
15+
"source": [
16+
"---"
17+
]
18+
},
19+
{
20+
"cell_type": "markdown",
21+
"id": "00b716c0-15ec-4865-9fc3-ef48c93f6229",
22+
"metadata": {},
23+
"source": [
24+
"### Introduction"
25+
]
26+
},
1127
{
1228
"cell_type": "markdown",
1329
"id": "d2cf0528-c3f2-4596-91b8-2bc5c44e5b89",
@@ -30,7 +46,7 @@
3046
},
3147
{
3248
"cell_type": "code",
33-
"execution_count": 13,
49+
"execution_count": 2,
3450
"id": "afe38816-b8e6-4261-a331-cd9af0a89f80",
3551
"metadata": {},
3652
"outputs": [],
@@ -58,7 +74,7 @@
5874
},
5975
{
6076
"cell_type": "code",
61-
"execution_count": 14,
77+
"execution_count": 3,
6278
"id": "2f0f6cd0-c654-4fb5-9824-e6d153394237",
6379
"metadata": {},
6480
"outputs": [
@@ -89,7 +105,7 @@
89105
},
90106
{
91107
"cell_type": "code",
92-
"execution_count": 15,
108+
"execution_count": 4,
93109
"id": "2a393b7e-4095-452b-bc26-a6bcf3001399",
94110
"metadata": {},
95111
"outputs": [
@@ -110,7 +126,7 @@
110126
"Name: Condition, Length: 503, dtype: int64"
111127
]
112128
},
113-
"execution_count": 15,
129+
"execution_count": 4,
114130
"metadata": {},
115131
"output_type": "execute_result"
116132
}
@@ -140,7 +156,7 @@
140156
},
141157
{
142158
"cell_type": "code",
143-
"execution_count": 16,
159+
"execution_count": 5,
144160
"id": "b3a1dcb5-4530-4075-ad85-15a14aa9871b",
145161
"metadata": {},
146162
"outputs": [],
@@ -152,7 +168,7 @@
152168
},
153169
{
154170
"cell_type": "code",
155-
"execution_count": 17,
171+
"execution_count": 6,
156172
"id": "ac6a0f61-8f8b-4d4a-9d8b-e7312dd2dd46",
157173
"metadata": {},
158174
"outputs": [
@@ -190,7 +206,7 @@
190206
},
191207
{
192208
"cell_type": "code",
193-
"execution_count": 18,
209+
"execution_count": 7,
194210
"id": "592805f0-40eb-45dc-ac8b-78cb21e7049e",
195211
"metadata": {},
196212
"outputs": [],
@@ -202,7 +218,7 @@
202218
},
203219
{
204220
"cell_type": "code",
205-
"execution_count": 19,
221+
"execution_count": 8,
206222
"id": "3189f8e7-1286-4f36-a5d5-da0d478131c8",
207223
"metadata": {},
208224
"outputs": [
@@ -212,7 +228,7 @@
212228
"LogisticRegression(random_state=0, solver='newton-cg')"
213229
]
214230
},
215-
"execution_count": 19,
231+
"execution_count": 8,
216232
"metadata": {},
217233
"output_type": "execute_result"
218234
}
@@ -234,7 +250,7 @@
234250
},
235251
{
236252
"cell_type": "code",
237-
"execution_count": 20,
253+
"execution_count": 9,
238254
"id": "9ca6a19c-bad0-4b96-8919-74d14ad8b914",
239255
"metadata": {},
240256
"outputs": [],
@@ -246,32 +262,28 @@
246262
},
247263
{
248264
"cell_type": "code",
249-
"execution_count": 21,
265+
"execution_count": 11,
250266
"id": "49e4f905-ae06-4ddc-ad9f-2f71ae12483b",
251267
"metadata": {},
252268
"outputs": [
253269
{
254-
"name": "stderr",
270+
"name": "stdout",
255271
"output_type": "stream",
256272
"text": [
257-
"/users/hussein/source/apple_classification/appleVer/lib/python3.8/site-packages/sklearn/utils/validation.py:1688: FutureWarning: Feature names only support names that are all strings. Got feature names with dtypes: ['float']. An error will be raised in 1.2.\n",
258-
" warnings.warn(\n"
273+
"Accuracy score is 0.7947019867549668\n"
259274
]
260275
},
261276
{
262-
"data": {
263-
"text/plain": [
264-
"0.7947019867549668"
265-
]
266-
},
267-
"execution_count": 21,
268-
"metadata": {},
269-
"output_type": "execute_result"
277+
"name": "stderr",
278+
"output_type": "stream",
279+
"text": [
280+
"/users/hussein/.local/lib/python3.8/site-packages/sklearn/utils/validation.py:1688: FutureWarning: Feature names only support names that are all strings. Got feature names with dtypes: ['float']. An error will be raised in 1.2.\n",
281+
" warnings.warn(\n"
282+
]
270283
}
271284
],
272285
"source": [
273286
"# ___Cell no. 9___\n",
274-
"e\n",
275287
"y_pred = LR.predict(Xtest)\n",
276288
"print(\"Accuracy score is\", accuracy_score(Ytest.values, y_pred))"
277289
]
@@ -286,24 +298,21 @@
286298
},
287299
{
288300
"cell_type": "code",
289-
"execution_count": 22,
301+
"execution_count": 13,
290302
"id": "ec14014c-e88d-49c5-8b56-448e80466684",
291303
"metadata": {},
292304
"outputs": [
293305
{
294-
"data": {
295-
"text/plain": [
296-
"0.7647058823529411"
297-
]
298-
},
299-
"execution_count": 22,
300-
"metadata": {},
301-
"output_type": "execute_result"
306+
"name": "stdout",
307+
"output_type": "stream",
308+
"text": [
309+
"Precision score is 0.7647058823529411\n"
310+
]
302311
}
303312
],
304313
"source": [
305314
"# ___Cell no. 10___\n",
306-
"print(\"Precision score is\", precision_score(Ytest.values, y_pred)"
315+
"print(\"Precision score is\", precision_score(Ytest.values, y_pred))"
307316
]
308317
},
309318
{
@@ -316,34 +325,34 @@
316325
},
317326
{
318327
"cell_type": "markdown",
319-
"id": "2848557c-c043-4bea-b2f5-00e151ed887f",
328+
"id": "7265d92b-0cf8-4ee2-b34b-49959209bc8c",
320329
"metadata": {},
321330
"source": [
322-
"---"
331+
"**Exercise 1:** Perform LR on the other two data sets."
323332
]
324333
},
325334
{
326335
"cell_type": "markdown",
327-
"id": "7265d92b-0cf8-4ee2-b34b-49959209bc8c",
336+
"id": "e52169be-ba02-41cd-a585-080a2deeaff8",
328337
"metadata": {},
329338
"source": [
330-
"**Exercise 1:** Perform LR on the other two data sets."
339+
"---"
331340
]
332341
},
333342
{
334343
"cell_type": "code",
335344
"execution_count": null,
336-
"id": "c4372bed-6a77-44a7-b3ab-b1c8eb53d12c",
345+
"id": "076dd6f3-e86f-4e8d-95ca-04938d45a5bc",
337346
"metadata": {},
338347
"outputs": [],
339348
"source": []
340349
}
341350
],
342351
"metadata": {
343352
"kernelspec": {
344-
"display_name": "NEE_ker",
353+
"display_name": "Python 3",
345354
"language": "python",
346-
"name": "nee_ker"
355+
"name": "python3"
347356
},
348357
"language_info": {
349358
"codemirror_mode": {
@@ -355,7 +364,7 @@
355364
"name": "python",
356365
"nbconvert_exporter": "python",
357366
"pygments_lexer": "ipython3",
358-
"version": "3.9.7"
367+
"version": "3.8.3"
359368
},
360369
"varInspector": {
361370
"cols": {

0 commit comments

Comments
 (0)