Skip to content

Commit 36f1ec3

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Tiny fix to tabular tutorial notebook
1 parent 323d80f commit 36f1ec3

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

examples/tabular-classification/documentation-tutorial/tabular-tutorial-part-1.ipynb

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,20 @@
2121
},
2222
{
2323
"cell_type": "code",
24-
"execution_count": null,
24+
"execution_count": 1,
2525
"id": "56758c0a",
2626
"metadata": {},
27-
"outputs": [],
27+
"outputs": [
28+
{
29+
"name": "stdout",
30+
"output_type": "stream",
31+
"text": [
32+
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
33+
" Dload Upload Total Spent Left Speed\n",
34+
"100 47 100 47 0 0 118 0 --:--:-- --:--:-- --:--:-- 121\n"
35+
]
36+
}
37+
],
2838
"source": [
2939
"!curl \"https://raw.githubusercontent.com/unboxai/examples-gallery/main/tabular-classification/documentation-tutorial/requirements.txt\" --output \"requirements.txt\""
3040
]
@@ -87,7 +97,7 @@
8797
},
8898
{
8999
"cell_type": "code",
90-
"execution_count": 31,
100+
"execution_count": 3,
91101
"id": "ac811397",
92102
"metadata": {},
93103
"outputs": [
@@ -241,7 +251,7 @@
241251
"4 0 "
242252
]
243253
},
244-
"execution_count": 31,
254+
"execution_count": 3,
245255
"metadata": {},
246256
"output_type": "execute_result"
247257
}
@@ -264,7 +274,7 @@
264274
},
265275
{
266276
"cell_type": "code",
267-
"execution_count": 32,
277+
"execution_count": 4,
268278
"id": "0ccaafae",
269279
"metadata": {},
270280
"outputs": [],
@@ -288,7 +298,7 @@
288298
},
289299
{
290300
"cell_type": "code",
291-
"execution_count": 33,
301+
"execution_count": 5,
292302
"id": "29e71531",
293303
"metadata": {},
294304
"outputs": [],
@@ -307,7 +317,7 @@
307317
},
308318
{
309319
"cell_type": "code",
310-
"execution_count": 34,
320+
"execution_count": 6,
311321
"id": "3680efe3",
312322
"metadata": {},
313323
"outputs": [],
@@ -326,7 +336,7 @@
326336
},
327337
{
328338
"cell_type": "code",
329-
"execution_count": 35,
339+
"execution_count": 7,
330340
"id": "0fcfef49",
331341
"metadata": {},
332342
"outputs": [],
@@ -337,7 +347,7 @@
337347
},
338348
{
339349
"cell_type": "code",
340-
"execution_count": 36,
350+
"execution_count": 8,
341351
"id": "53491eab",
342352
"metadata": {},
343353
"outputs": [
@@ -370,7 +380,7 @@
370380
},
371381
{
372382
"cell_type": "code",
373-
"execution_count": 37,
383+
"execution_count": 9,
374384
"id": "a981bc4b",
375385
"metadata": {},
376386
"outputs": [
@@ -380,7 +390,7 @@
380390
"GradientBoostingClassifier(random_state=42)"
381391
]
382392
},
383-
"execution_count": 37,
393+
"execution_count": 9,
384394
"metadata": {},
385395
"output_type": "execute_result"
386396
}
@@ -392,7 +402,7 @@
392402
},
393403
{
394404
"cell_type": "code",
395-
"execution_count": 38,
405+
"execution_count": 11,
396406
"id": "ba829dcd",
397407
"metadata": {},
398408
"outputs": [
@@ -430,19 +440,19 @@
430440
},
431441
{
432442
"cell_type": "code",
433-
"execution_count": 42,
443+
"execution_count": 12,
434444
"id": "b1682ee4",
435445
"metadata": {},
436446
"outputs": [],
437447
"source": [
438-
"feature_names = X_train.columns.values.tolist()[:-1]\n",
448+
"feature_names = X_train.columns.values.tolist()\n",
439449
"categorical_feature_names = [\"Gender\", \"Geography\"]\n",
440450
"class_names = [\"Retained\", \"Exited\"]"
441451
]
442452
},
443453
{
444454
"cell_type": "code",
445-
"execution_count": 44,
455+
"execution_count": 13,
446456
"id": "d480f0c3",
447457
"metadata": {},
448458
"outputs": [],
@@ -454,7 +464,7 @@
454464
{
455465
"cell_type": "code",
456466
"execution_count": null,
457-
"id": "b6dcfe6f",
467+
"id": "65964db9",
458468
"metadata": {},
459469
"outputs": [],
460470
"source": []

examples/tabular-classification/documentation-tutorial/tabular-tutorial-part-2.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,19 +504,19 @@
504504
},
505505
{
506506
"cell_type": "code",
507-
"execution_count": 17,
507+
"execution_count": 16,
508508
"id": "b70ae7ee",
509509
"metadata": {},
510510
"outputs": [],
511511
"source": [
512-
"feature_names = X_train.columns.values.tolist()[:-1]\n",
512+
"feature_names = X_train.columns.values.tolist()\n",
513513
"categorical_feature_names = [\"Gender\", \"Geography\"]\n",
514514
"class_names = [\"Retained\", \"Exited\"]"
515515
]
516516
},
517517
{
518518
"cell_type": "code",
519-
"execution_count": 18,
519+
"execution_count": 17,
520520
"id": "1a5d9cd6",
521521
"metadata": {},
522522
"outputs": [],
@@ -530,7 +530,7 @@
530530
{
531531
"cell_type": "code",
532532
"execution_count": null,
533-
"id": "eae20def",
533+
"id": "ce0f3d4a",
534534
"metadata": {},
535535
"outputs": [],
536536
"source": []

0 commit comments

Comments
 (0)