Skip to content

Commit c42241d

Browse files
committed
📝 Update notebooks
1 parent a0b3a87 commit c42241d

File tree

4 files changed

+195
-201
lines changed

4 files changed

+195
-201
lines changed

notebooks/RetailHero.ipynb

Lines changed: 58 additions & 55 deletions
Large diffs are not rendered by default.

notebooks/RetailHero_EN.ipynb

Lines changed: 98 additions & 83 deletions
Large diffs are not rendered by default.

notebooks/pipeline_usage_EN.ipynb

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"execution_count": 1,
5151
"metadata": {
5252
"ExecuteTime": {
53-
"end_time": "2020-05-02T16:59:19.201984Z",
54-
"start_time": "2020-05-02T16:59:19.196511Z"
53+
"end_time": "2020-05-30T22:38:40.696778Z",
54+
"start_time": "2020-05-30T22:38:40.692482Z"
5555
}
5656
},
5757
"outputs": [],
@@ -71,28 +71,16 @@
7171
"execution_count": 2,
7272
"metadata": {
7373
"ExecuteTime": {
74-
"end_time": "2020-05-02T16:59:34.848414Z",
75-
"start_time": "2020-05-02T16:59:19.206449Z"
74+
"end_time": "2020-05-30T22:38:40.705782Z",
75+
"start_time": "2020-05-30T22:38:40.701316Z"
7676
}
7777
},
78-
"outputs": [
79-
{
80-
"data": {
81-
"text/plain": [
82-
"('./content/Hilstorm.csv', <http.client.HTTPMessage at 0x117de0438>)"
83-
]
84-
},
85-
"execution_count": 2,
86-
"metadata": {},
87-
"output_type": "execute_result"
88-
}
89-
],
78+
"outputs": [],
9079
"source": [
9180
"import urllib.request\n",
92-
"import pandas as pd\n",
9381
"\n",
9482
"\n",
95-
"csv_path = '/content/Hilstorm.csv'\n",
83+
"csv_path = './content/Hilstorm.csv'\n",
9684
"url = 'http://www.minethatdata.com/Kevin_Hillstrom_MineThatData_E-MailAnalytics_DataMiningChallenge_2008.03.20.csv'\n",
9785
"urllib.request.urlretrieve(url, csv_path)"
9886
]
@@ -113,8 +101,8 @@
113101
"execution_count": 3,
114102
"metadata": {
115103
"ExecuteTime": {
116-
"end_time": "2020-05-02T16:59:35.421058Z",
117-
"start_time": "2020-05-02T16:59:34.851896Z"
104+
"end_time": "2020-05-30T22:38:41.739525Z",
105+
"start_time": "2020-05-30T22:38:40.711390Z"
118106
}
119107
},
120108
"outputs": [
@@ -281,8 +269,8 @@
281269
"execution_count": 4,
282270
"metadata": {
283271
"ExecuteTime": {
284-
"end_time": "2020-05-02T16:59:36.153705Z",
285-
"start_time": "2020-05-02T16:59:35.425904Z"
272+
"end_time": "2020-05-30T22:38:42.307545Z",
273+
"start_time": "2020-05-30T22:38:41.743319Z"
286274
}
287275
},
288276
"outputs": [],
@@ -313,8 +301,8 @@
313301
"execution_count": 5,
314302
"metadata": {
315303
"ExecuteTime": {
316-
"end_time": "2020-05-02T16:59:36.173267Z",
317-
"start_time": "2020-05-02T16:59:36.155955Z"
304+
"end_time": "2020-05-30T22:38:42.330862Z",
305+
"start_time": "2020-05-30T22:38:42.310277Z"
318306
}
319307
},
320308
"outputs": [
@@ -343,8 +331,8 @@
343331
"execution_count": 6,
344332
"metadata": {
345333
"ExecuteTime": {
346-
"end_time": "2020-05-02T16:59:36.269784Z",
347-
"start_time": "2020-05-02T16:59:36.179904Z"
334+
"end_time": "2020-05-30T22:38:42.430704Z",
335+
"start_time": "2020-05-30T22:38:42.333721Z"
348336
}
349337
},
350338
"outputs": [],
@@ -377,16 +365,16 @@
377365
"execution_count": 7,
378366
"metadata": {
379367
"ExecuteTime": {
380-
"end_time": "2020-05-02T16:59:37.436032Z",
381-
"start_time": "2020-05-02T16:59:36.275110Z"
368+
"end_time": "2020-05-30T22:38:43.630594Z",
369+
"start_time": "2020-05-30T22:38:42.433041Z"
382370
}
383371
},
384372
"outputs": [
385373
{
386374
"name": "stderr",
387375
"output_type": "stream",
388376
"text": [
389-
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sklearn/pipeline.py:354: UserWarning: It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.\n",
377+
"/Users/Maksim/Library/Python/3.6/lib/python/site-packages/sklearn/pipeline.py:354: UserWarning: It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.\n",
390378
" self._final_estimator.fit(Xt, y, **fit_params)\n"
391379
]
392380
}
@@ -416,8 +404,8 @@
416404
"execution_count": 8,
417405
"metadata": {
418406
"ExecuteTime": {
419-
"end_time": "2020-05-02T16:59:37.583995Z",
420-
"start_time": "2020-05-02T16:59:37.438748Z"
407+
"end_time": "2020-05-30T22:38:43.777122Z",
408+
"start_time": "2020-05-30T22:38:43.632881Z"
421409
}
422410
},
423411
"outputs": [

notebooks/pipeline_usage_RU.ipynb

Lines changed: 20 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"execution_count": 1,
4545
"metadata": {
4646
"ExecuteTime": {
47-
"end_time": "2020-05-02T17:00:49.841653Z",
48-
"start_time": "2020-05-02T17:00:49.835556Z"
47+
"end_time": "2020-05-30T22:40:55.967561Z",
48+
"start_time": "2020-05-30T22:40:55.963558Z"
4949
}
5050
},
5151
"outputs": [],
@@ -70,28 +70,16 @@
7070
"execution_count": 2,
7171
"metadata": {
7272
"ExecuteTime": {
73-
"end_time": "2020-05-02T17:01:04.035180Z",
74-
"start_time": "2020-05-02T17:00:49.846452Z"
73+
"end_time": "2020-05-30T22:40:55.981317Z",
74+
"start_time": "2020-05-30T22:40:55.976955Z"
7575
}
7676
},
77-
"outputs": [
78-
{
79-
"data": {
80-
"text/plain": [
81-
"('./content/Hilstorm.csv', <http.client.HTTPMessage at 0x117ee04a8>)"
82-
]
83-
},
84-
"execution_count": 2,
85-
"metadata": {},
86-
"output_type": "execute_result"
87-
}
88-
],
77+
"outputs": [],
8978
"source": [
9079
"import urllib.request\n",
91-
"import pandas as pd\n",
9280
"\n",
9381
"\n",
94-
"csv_path = '/content/Hilstorm.csv'\n",
82+
"csv_path = './content/Hilstorm.csv'\n",
9583
"url = 'http://www.minethatdata.com/Kevin_Hillstrom_MineThatData_E-MailAnalytics_DataMiningChallenge_2008.03.20.csv'\n",
9684
"urllib.request.urlretrieve(url, csv_path)"
9785
]
@@ -112,8 +100,8 @@
112100
"execution_count": 3,
113101
"metadata": {
114102
"ExecuteTime": {
115-
"end_time": "2020-05-02T17:01:04.476684Z",
116-
"start_time": "2020-05-02T17:01:04.038420Z"
103+
"end_time": "2020-05-30T22:40:56.877657Z",
104+
"start_time": "2020-05-30T22:40:55.985275Z"
117105
}
118106
},
119107
"outputs": [
@@ -250,7 +238,7 @@
250238
}
251239
],
252240
"source": [
253-
"import pandas as pd; pd.set_option('display.max_columns', None)\n",
241+
"import pandas as pd\n",
254242
"\n",
255243
"\n",
256244
"%matplotlib inline\n",
@@ -280,8 +268,8 @@
280268
"execution_count": 4,
281269
"metadata": {
282270
"ExecuteTime": {
283-
"end_time": "2020-05-02T17:01:05.037943Z",
284-
"start_time": "2020-05-02T17:01:04.480545Z"
271+
"end_time": "2020-05-30T22:40:57.345775Z",
272+
"start_time": "2020-05-30T22:40:56.881856Z"
285273
}
286274
},
287275
"outputs": [],
@@ -312,8 +300,8 @@
312300
"execution_count": 5,
313301
"metadata": {
314302
"ExecuteTime": {
315-
"end_time": "2020-05-02T17:01:05.052632Z",
316-
"start_time": "2020-05-02T17:01:05.040798Z"
303+
"end_time": "2020-05-30T22:40:57.360026Z",
304+
"start_time": "2020-05-30T22:40:57.348343Z"
317305
}
318306
},
319307
"outputs": [
@@ -342,8 +330,8 @@
342330
"execution_count": 6,
343331
"metadata": {
344332
"ExecuteTime": {
345-
"end_time": "2020-05-02T17:01:05.144900Z",
346-
"start_time": "2020-05-02T17:01:05.059079Z"
333+
"end_time": "2020-05-30T22:40:57.422245Z",
334+
"start_time": "2020-05-30T22:40:57.365310Z"
347335
}
348336
},
349337
"outputs": [],
@@ -381,16 +369,16 @@
381369
"execution_count": 7,
382370
"metadata": {
383371
"ExecuteTime": {
384-
"end_time": "2020-05-02T17:01:06.298101Z",
385-
"start_time": "2020-05-02T17:01:05.149361Z"
372+
"end_time": "2020-05-30T22:40:58.579795Z",
373+
"start_time": "2020-05-30T22:40:57.424949Z"
386374
}
387375
},
388376
"outputs": [
389377
{
390378
"name": "stderr",
391379
"output_type": "stream",
392380
"text": [
393-
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sklearn/pipeline.py:354: UserWarning: It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.\n",
381+
"/Users/Maksim/Library/Python/3.6/lib/python/site-packages/sklearn/pipeline.py:354: UserWarning: It is recommended to use this approach on treatment balanced data. Current sample size is unbalanced.\n",
394382
" self._final_estimator.fit(Xt, y, **fit_params)\n"
395383
]
396384
}
@@ -415,8 +403,8 @@
415403
"execution_count": 8,
416404
"metadata": {
417405
"ExecuteTime": {
418-
"end_time": "2020-05-02T17:01:06.418688Z",
419-
"start_time": "2020-05-02T17:01:06.300295Z"
406+
"end_time": "2020-05-30T22:40:58.719049Z",
407+
"start_time": "2020-05-30T22:40:58.581922Z"
420408
}
421409
},
422410
"outputs": [

0 commit comments

Comments
 (0)