From 2f153dd6e79b5687fe5ee8864315729ae4ad9a5a Mon Sep 17 00:00:00 2001 From: Jeremy Howard Date: Mon, 25 Apr 2022 12:21:26 +1000 Subject: [PATCH] kaggle --- 09_tabular.ipynb | 359 ++++++++++++++++++++++------------------------- 1 file changed, 165 insertions(+), 194 deletions(-) diff --git a/09_tabular.ipynb b/09_tabular.ipynb index eb6cbf01b..c88dc8d1b 100644 --- a/09_tabular.ipynb +++ b/09_tabular.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -14,7 +14,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "hide_input": false }, @@ -22,7 +22,6 @@ "source": [ "#hide\n", "from fastbook import *\n", - "from kaggle import api\n", "from pandas.api.types import is_string_dtype, is_numeric_dtype, is_categorical_dtype\n", "from fastai.tabular.all import *\n", "from sklearn.ensemble import RandomForestRegressor\n", @@ -286,7 +285,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -302,7 +301,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -322,28 +321,29 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "Path('/home/jhoward/.fastai/archive/bluebook')" + "Path('/home/jhoward/.fastai/archive/bluebook-for-bulldozers')" ] }, - "execution_count": 5, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "path = URLs.path('bluebook')\n", + "comp = 'bluebook-for-bulldozers'\n", + "path = URLs.path(comp)\n", "path" ] }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -360,25 +360,27 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "(#7) [Path('TrainAndValid.csv'),Path('Machine_Appendix.csv'),Path('random_forest_benchmark_test.csv'),Path('Test.csv'),Path('median_benchmark.csv'),Path('ValidSolution.csv'),Path('Valid.csv')]" + "(#7) [Path('ValidSolution.csv'),Path('Machine_Appendix.csv'),Path('TrainAndValid.csv'),Path('median_benchmark.csv'),Path('random_forest_benchmark_test.csv'),Path('Test.csv'),Path('Valid.csv')]" ] }, - "execution_count": 7, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } ], "source": [ + "from kaggle import api\n", + "\n", "if not path.exists():\n", " path.mkdir(parents=true)\n", - " api.competition_download_cli('bluebook-for-bulldozers', path=path)\n", - " file_extract(path/'bluebook-for-bulldozers.zip')\n", + " api.competition_download_cli(comp, path=path)\n", + " shutil.unpack_archive(str(path/f'{comp}.zip'), str(path))\n", "\n", "path.ls(file_type='text')" ] @@ -415,7 +417,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -424,7 +426,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -446,7 +448,7 @@ " dtype='object')" ] }, - "execution_count": 9, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -466,7 +468,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -475,7 +477,7 @@ "array([nan, 'Medium', 'Small', 'Large / Medium', 'Mini', 'Large', 'Compact'], dtype=object)" ] }, - "execution_count": 10, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -493,7 +495,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -502,7 +504,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -521,7 +523,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -530,7 +532,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -615,7 +617,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -631,7 +633,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -648,7 +650,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -657,7 +659,7 @@ "'saleWeek saleYear saleMonth saleDay saleDayofweek saleDayofyear saleIs_month_end saleIs_month_start saleIs_quarter_end saleIs_quarter_start saleIs_year_end saleIs_year_start saleElapsed'" ] }, - "execution_count": 17, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -694,7 +696,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -720,7 +722,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -740,7 +742,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -749,7 +751,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -765,7 +767,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -774,7 +776,7 @@ "(404710, 7988)" ] }, - "execution_count": 22, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -792,7 +794,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1100,7 +1102,7 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1168,7 +1170,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1259,7 +1261,7 @@ "[3 rows x 67 columns]" ] }, - "execution_count": 25, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1271,7 +1273,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1334,7 +1336,7 @@ "2 32 3 0 6" ] }, - "execution_count": 26, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1353,7 +1355,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1362,7 +1364,7 @@ "['#na#', 'Large', 'Large / Medium', 'Medium', 'Small', 'Mini', 'Compact']" ] }, - "execution_count": 27, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1380,7 +1382,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -1421,7 +1423,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -1431,7 +1433,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -1448,7 +1450,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -1465,7 +1467,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -1586,7 +1588,7 @@ "" ] }, - "execution_count": 40, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1619,7 +1621,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -4474,7 +4476,7 @@ "" ] }, - "execution_count": 33, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -4495,7 +4497,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -4512,7 +4514,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7392,7 +7394,7 @@ "" ] }, - "execution_count": 35, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7414,7 +7416,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7431,7 +7433,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7441,7 +7443,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7450,7 +7452,7 @@ "0.0" ] }, - "execution_count": 38, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7468,7 +7470,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7477,7 +7479,7 @@ "0.331466" ] }, - "execution_count": 39, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7495,7 +7497,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7504,7 +7506,7 @@ "(324544, 404710)" ] }, - "execution_count": 40, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7522,7 +7524,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7531,7 +7533,7 @@ "(0.248562, 0.323396)" ] }, - "execution_count": 41, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7551,7 +7553,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7560,7 +7562,7 @@ "12397" ] }, - "execution_count": 42, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7657,7 +7659,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7683,7 +7685,7 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7696,7 +7698,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7712,7 +7714,7 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7721,7 +7723,7 @@ "(0.170917, 0.233975)" ] }, - "execution_count": 46, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7757,7 +7759,7 @@ }, { "cell_type": "code", - "execution_count": 47, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7773,7 +7775,7 @@ }, { "cell_type": "code", - "execution_count": 48, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7782,7 +7784,7 @@ "0.233975" ] }, - "execution_count": 48, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7800,7 +7802,7 @@ }, { "cell_type": "code", - "execution_count": 49, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7847,7 +7849,7 @@ }, { "cell_type": "code", - "execution_count": 50, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7856,7 +7858,7 @@ "0.210681" ] }, - "execution_count": 50, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7919,7 +7921,7 @@ }, { "cell_type": "code", - "execution_count": 51, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7928,7 +7930,7 @@ }, { "cell_type": "code", - "execution_count": 52, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7937,7 +7939,7 @@ "(40, 7988)" ] }, - "execution_count": 52, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -7957,7 +7959,7 @@ }, { "cell_type": "code", - "execution_count": 53, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -7973,7 +7975,7 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -7982,7 +7984,7 @@ "array([0.25065395, 0.11043862, 0.08242067, 0.26988508, 0.15730173])" ] }, - "execution_count": 54, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8014,7 +8016,7 @@ }, { "cell_type": "code", - "execution_count": 55, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8032,7 +8034,7 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8129,7 +8131,7 @@ "2 fiModelDesc 0.030933" ] }, - "execution_count": 56, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8148,7 +8150,7 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8194,7 +8196,7 @@ }, { "cell_type": "code", - "execution_count": 58, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8203,7 +8205,7 @@ "21" ] }, - "execution_count": 58, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8222,7 +8224,7 @@ }, { "cell_type": "code", - "execution_count": 59, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8232,7 +8234,7 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8248,7 +8250,7 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8257,7 +8259,7 @@ "(0.181204, 0.230329)" ] }, - "execution_count": 61, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8275,7 +8277,7 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8284,7 +8286,7 @@ "(66, 21)" ] }, - "execution_count": 62, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8304,7 +8306,7 @@ }, { "cell_type": "code", - "execution_count": 63, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8347,7 +8349,7 @@ }, { "cell_type": "code", - "execution_count": 64, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8380,7 +8382,7 @@ }, { "cell_type": "code", - "execution_count": 65, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8400,7 +8402,7 @@ }, { "cell_type": "code", - "execution_count": 66, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8409,7 +8411,7 @@ "0.8768243241012634" ] }, - "execution_count": 66, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8427,7 +8429,7 @@ }, { "cell_type": "code", - "execution_count": 67, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8444,7 +8446,7 @@ " 'Coupler_System': 0.8780158691125818}" ] }, - "execution_count": 67, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8465,7 +8467,7 @@ }, { "cell_type": "code", - "execution_count": 68, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8474,7 +8476,7 @@ "0.8747772191306009" ] }, - "execution_count": 68, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8493,7 +8495,7 @@ }, { "cell_type": "code", - "execution_count": 69, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8503,7 +8505,7 @@ }, { "cell_type": "code", - "execution_count": 71, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8520,7 +8522,7 @@ }, { "cell_type": "code", - "execution_count": 73, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8537,7 +8539,7 @@ }, { "cell_type": "code", - "execution_count": 74, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8546,7 +8548,7 @@ "(0.183426, 0.231894)" ] }, - "execution_count": 74, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8579,7 +8581,7 @@ }, { "cell_type": "code", - "execution_count": 75, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8612,7 +8614,7 @@ }, { "cell_type": "code", - "execution_count": 76, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8653,7 +8655,7 @@ }, { "cell_type": "code", - "execution_count": 77, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8688,18 +8690,14 @@ }, { "cell_type": "markdown", - "metadata": { - "heading_collapsed": true - }, + "metadata": {}, "source": [ "### Data Leakage" ] }, { "cell_type": "markdown", - "metadata": { - "hidden": true - }, + "metadata": {}, "source": [ "In the paper [\"Leakage in Data Mining: Formulation, Detection, and Avoidance\"](https://dl.acm.org/doi/10.1145/2020408.2020496), Shachar Kaufman, Saharon Rosset, and Claudia Perlich describe leakage as: \n", "\n", @@ -8743,7 +8741,7 @@ }, { "cell_type": "code", - "execution_count": 78, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8786,7 +8784,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8802,7 +8800,7 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8818,7 +8816,7 @@ }, { "cell_type": "code", - "execution_count": 81, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8827,7 +8825,7 @@ "(array([10.01216396]), 10.104746057831765, -0.0925820990266335)" ] }, - "execution_count": 81, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8845,7 +8843,7 @@ }, { "cell_type": "code", - "execution_count": 82, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8903,7 +8901,7 @@ }, { "cell_type": "code", - "execution_count": 83, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -8920,7 +8918,7 @@ }, { "cell_type": "code", - "execution_count": 84, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8951,7 +8949,7 @@ }, { "cell_type": "code", - "execution_count": 85, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8960,7 +8958,7 @@ "(torch.Size([40]), torch.Size([40, 1]))" ] }, - "execution_count": 85, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -8979,7 +8977,7 @@ }, { "cell_type": "code", - "execution_count": 86, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -8988,7 +8986,7 @@ "torch.Size([40, 1])" ] }, - "execution_count": 86, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9006,7 +9004,7 @@ }, { "cell_type": "code", - "execution_count": 87, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9022,7 +9020,7 @@ }, { "cell_type": "code", - "execution_count": 88, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9072,7 +9070,7 @@ }, { "cell_type": "code", - "execution_count": 89, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9145,7 +9143,7 @@ "5 ModelID 0.000395" ] }, - "execution_count": 89, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9169,7 +9167,7 @@ }, { "cell_type": "code", - "execution_count": 90, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9201,7 +9199,7 @@ }, { "cell_type": "code", - "execution_count": 91, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9210,7 +9208,7 @@ "0.229498" ] }, - "execution_count": 91, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9235,7 +9233,7 @@ }, { "cell_type": "code", - "execution_count": 92, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9264,7 +9262,7 @@ }, { "cell_type": "code", - "execution_count": 93, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9275,7 +9273,7 @@ }, { "cell_type": "code", - "execution_count": 94, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9284,7 +9282,7 @@ "(0.177284, 0.228008)" ] }, - "execution_count": 94, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9319,7 +9317,7 @@ }, { "cell_type": "code", - "execution_count": 95, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9339,7 +9337,7 @@ }, { "cell_type": "code", - "execution_count": 96, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9355,7 +9353,7 @@ }, { "cell_type": "code", - "execution_count": 97, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9371,7 +9369,7 @@ }, { "cell_type": "code", - "execution_count": 98, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9380,7 +9378,7 @@ "['saleElapsed']" ] }, - "execution_count": 98, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9398,7 +9396,7 @@ }, { "cell_type": "code", - "execution_count": 108, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9420,7 +9418,7 @@ "dtype: int64" ] }, - "execution_count": 108, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9438,7 +9436,7 @@ }, { "cell_type": "code", - "execution_count": 109, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9447,7 +9445,7 @@ "(0.176713, 0.230195)" ] }, - "execution_count": 109, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9468,7 +9466,7 @@ }, { "cell_type": "code", - "execution_count": 111, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9484,10 +9482,8 @@ }, { "cell_type": "code", - "execution_count": 112, - "metadata": { - "scrolled": false - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "procs_nn = [Categorify, FillMissing, Normalize]\n", @@ -9504,7 +9500,7 @@ }, { "cell_type": "code", - "execution_count": 113, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9520,7 +9516,7 @@ }, { "cell_type": "code", - "execution_count": 114, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9529,7 +9525,7 @@ "(8.465899467468262, 11.863582611083984)" ] }, - "execution_count": 114, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9550,7 +9546,7 @@ }, { "cell_type": "code", - "execution_count": 120, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9560,7 +9556,7 @@ }, { "cell_type": "code", - "execution_count": 116, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9579,7 +9575,7 @@ "SuggestedLRs(lr_min=0.002754228748381138, lr_steep=0.00015848931798245758)" ] }, - "execution_count": 116, + "execution_count": null, "metadata": {}, "output_type": "execute_result" }, @@ -9609,7 +9605,7 @@ }, { "cell_type": "code", - "execution_count": 121, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9679,7 +9675,7 @@ }, { "cell_type": "code", - "execution_count": 122, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9698,7 +9694,7 @@ "0.226353" ] }, - "execution_count": 122, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9719,7 +9715,7 @@ }, { "cell_type": "code", - "execution_count": 123, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9728,7 +9724,7 @@ "Path('models/nn.pth')" ] }, - "execution_count": 123, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -9791,7 +9787,7 @@ }, { "cell_type": "code", - "execution_count": 124, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -9808,7 +9804,7 @@ }, { "cell_type": "code", - "execution_count": 125, + "execution_count": null, "metadata": {}, "outputs": [ { @@ -9817,7 +9813,7 @@ "0.222134" ] }, - "execution_count": 125, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -10002,34 +9998,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.7" - }, - "toc": { - "base_numbering": 1, - "nav_menu": {}, - "number_sections": false, - "sideBar": true, - "skip_h1_title": true, - "title_cell": "Table of Contents", - "title_sidebar": "Contents", - "toc_cell": false, - "toc_position": {}, - "toc_section_display": true, - "toc_window_display": false } }, "nbformat": 4,