Skip to content

Commit 23ba2bc

Browse files
authored
Merge pull request #13 from eahussein/hack
clear output
2 parents 8c6ec62 + cede3ce commit 23ba2bc

File tree

8 files changed

+161
-3377
lines changed

8 files changed

+161
-3377
lines changed

notebooks/.ipynb_checkpoints/tutorial1-checkpoint.ipynb

Lines changed: 29 additions & 1015 deletions
Large diffs are not rendered by default.

notebooks/.ipynb_checkpoints/tutorial2-checkpoint.ipynb

Lines changed: 16 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"cell_type": "code",
49-
"execution_count": 2,
49+
"execution_count": null,
5050
"id": "afe38816-b8e6-4261-a331-cd9af0a89f80",
5151
"metadata": {},
5252
"outputs": [],
@@ -74,18 +74,10 @@
7474
},
7575
{
7676
"cell_type": "code",
77-
"execution_count": 3,
77+
"execution_count": null,
7878
"id": "2f0f6cd0-c654-4fb5-9824-e6d153394237",
7979
"metadata": {},
80-
"outputs": [
81-
{
82-
"name": "stdout",
83-
"output_type": "stream",
84-
"text": [
85-
"(503, 2074)\n"
86-
]
87-
}
88-
],
80+
"outputs": [],
8981
"source": [
9082
"# ___Cell no. 2___\n",
9183
"\n",
@@ -105,32 +97,10 @@
10597
},
10698
{
10799
"cell_type": "code",
108-
"execution_count": 4,
100+
"execution_count": null,
109101
"id": "2a393b7e-4095-452b-bc26-a6bcf3001399",
110102
"metadata": {},
111-
"outputs": [
112-
{
113-
"data": {
114-
"text/plain": [
115-
"0 0\n",
116-
"1 0\n",
117-
"2 1\n",
118-
"3 1\n",
119-
"4 0\n",
120-
" ..\n",
121-
"498 1\n",
122-
"499 1\n",
123-
"500 0\n",
124-
"501 1\n",
125-
"502 1\n",
126-
"Name: Condition, Length: 503, dtype: int64"
127-
]
128-
},
129-
"execution_count": 4,
130-
"metadata": {},
131-
"output_type": "execute_result"
132-
}
133-
],
103+
"outputs": [],
134104
"source": [
135105
"# ___Cell no. 3___\n",
136106
"\n",
@@ -156,7 +126,7 @@
156126
},
157127
{
158128
"cell_type": "code",
159-
"execution_count": 5,
129+
"execution_count": null,
160130
"id": "b3a1dcb5-4530-4075-ad85-15a14aa9871b",
161131
"metadata": {},
162132
"outputs": [],
@@ -168,19 +138,10 @@
168138
},
169139
{
170140
"cell_type": "code",
171-
"execution_count": 6,
141+
"execution_count": null,
172142
"id": "ac6a0f61-8f8b-4d4a-9d8b-e7312dd2dd46",
173143
"metadata": {},
174-
"outputs": [
175-
{
176-
"name": "stdout",
177-
"output_type": "stream",
178-
"text": [
179-
"(352, 2074)\n",
180-
"(352,)\n"
181-
]
182-
}
183-
],
144+
"outputs": [],
184145
"source": [
185146
"# ___Cell no. 5___\n",
186147
"\n",
@@ -206,7 +167,7 @@
206167
},
207168
{
208169
"cell_type": "code",
209-
"execution_count": 7,
170+
"execution_count": null,
210171
"id": "592805f0-40eb-45dc-ac8b-78cb21e7049e",
211172
"metadata": {},
212173
"outputs": [],
@@ -218,21 +179,10 @@
218179
},
219180
{
220181
"cell_type": "code",
221-
"execution_count": 8,
182+
"execution_count": null,
222183
"id": "3189f8e7-1286-4f36-a5d5-da0d478131c8",
223184
"metadata": {},
224-
"outputs": [
225-
{
226-
"data": {
227-
"text/plain": [
228-
"LogisticRegression(random_state=0, solver='newton-cg')"
229-
]
230-
},
231-
"execution_count": 8,
232-
"metadata": {},
233-
"output_type": "execute_result"
234-
}
235-
],
185+
"outputs": [],
236186
"source": [
237187
"# ___Cell no. 7___\n",
238188
"\n",
@@ -250,7 +200,7 @@
250200
},
251201
{
252202
"cell_type": "code",
253-
"execution_count": 9,
203+
"execution_count": null,
254204
"id": "9ca6a19c-bad0-4b96-8919-74d14ad8b914",
255205
"metadata": {},
256206
"outputs": [],
@@ -262,26 +212,10 @@
262212
},
263213
{
264214
"cell_type": "code",
265-
"execution_count": 11,
215+
"execution_count": null,
266216
"id": "49e4f905-ae06-4ddc-ad9f-2f71ae12483b",
267217
"metadata": {},
268-
"outputs": [
269-
{
270-
"name": "stdout",
271-
"output_type": "stream",
272-
"text": [
273-
"Accuracy score is 0.7947019867549668\n"
274-
]
275-
},
276-
{
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-
]
283-
}
284-
],
218+
"outputs": [],
285219
"source": [
286220
"# ___Cell no. 9___\n",
287221
"y_pred = LR.predict(Xtest)\n",
@@ -298,18 +232,10 @@
298232
},
299233
{
300234
"cell_type": "code",
301-
"execution_count": 13,
235+
"execution_count": null,
302236
"id": "ec14014c-e88d-49c5-8b56-448e80466684",
303237
"metadata": {},
304-
"outputs": [
305-
{
306-
"name": "stdout",
307-
"output_type": "stream",
308-
"text": [
309-
"Precision score is 0.7647058823529411\n"
310-
]
311-
}
312-
],
238+
"outputs": [],
313239
"source": [
314240
"# ___Cell no. 10___\n",
315241
"print(\"Precision score is\", precision_score(Ytest.values, y_pred))"

0 commit comments

Comments
 (0)