|
98 | 98 | "execution_count": 1, |
99 | 99 | "metadata": { |
100 | 100 | "ExecuteTime": { |
101 | | - "end_time": "2020-04-16T20:45:13.495345Z", |
102 | | - "start_time": "2020-04-16T20:45:13.491423Z" |
| 101 | + "end_time": "2020-04-28T09:26:59.973637Z", |
| 102 | + "start_time": "2020-04-28T09:26:59.969856Z" |
103 | 103 | }, |
104 | 104 | "colab": { |
105 | 105 | "base_uri": "https://localhost:8080/", |
|
111 | 111 | }, |
112 | 112 | "outputs": [], |
113 | 113 | "source": [ |
114 | | - "# import urllib.request\n", |
| 114 | + "import urllib.request\n", |
115 | 115 | "\n", |
116 | | - "# url = 'https://drive.google.com/u/0/uc?id=1fkxNmihuS15kk0PP0QcphL_Z3_z8LLeb&export=download'\n", |
117 | | - "# urllib.request.urlretrieve(url, '/content/retail_hero.zip')\n", |
| 116 | + "url = 'https://drive.google.com/u/0/uc?id=1fkxNmihuS15kk0PP0QcphL_Z3_z8LLeb&export=download'\n", |
| 117 | + "urllib.request.urlretrieve(url, '/content/retail_hero.zip')\n", |
118 | 118 | "\n", |
119 | | - "# !unzip /content/retail_hero.zip\n", |
120 | | - "# !pip install scikit-uplift==0.1.0 catboost==0.22" |
| 119 | + "!unzip /content/retail_hero.zip\n", |
| 120 | + "!pip install scikit-uplift==0.1.1 catboost=0.22" |
121 | 121 | ] |
122 | 122 | }, |
123 | 123 | { |
|
135 | 135 | "execution_count": 2, |
136 | 136 | "metadata": { |
137 | 137 | "ExecuteTime": { |
138 | | - "end_time": "2020-04-16T20:45:16.518699Z", |
139 | | - "start_time": "2020-04-16T20:45:13.505025Z" |
| 138 | + "end_time": "2020-04-28T09:27:03.353098Z", |
| 139 | + "start_time": "2020-04-28T09:26:59.984369Z" |
140 | 140 | }, |
141 | 141 | "colab": {}, |
142 | 142 | "colab_type": "code", |
|
151 | 151 | "\n", |
152 | 152 | "\n", |
153 | 153 | "# reading data\n", |
154 | | - "df_clients = pd.read_csv('./RetailHero-data/clients.csv', index_col='client_id')\n", |
155 | | - "df_train = pd.read_csv('./RetailHero-data/uplift_train.csv', index_col='client_id')\n", |
156 | | - "df_test = pd.read_csv('./RetailHero-data/uplift_test.csv', index_col='client_id')\n", |
| 154 | + "df_clients = pd.read_csv('/content/uplift_data/clients.csv', index_col='client_id')\n", |
| 155 | + "df_train = pd.read_csv('/content/uplift_data/uplift_train.csv', index_col='client_id')\n", |
| 156 | + "df_test = pd.read_csv('/content/uplift_data/uplift_test.csv', index_col='client_id')\n", |
157 | 157 | "\n", |
158 | 158 | "# extracting features\n", |
159 | 159 | "df_features = df_clients.copy()\n", |
|
187 | 187 | "execution_count": 3, |
188 | 188 | "metadata": { |
189 | 189 | "ExecuteTime": { |
190 | | - "end_time": "2020-04-16T20:45:17.756422Z", |
191 | | - "start_time": "2020-04-16T20:45:16.521360Z" |
| 190 | + "end_time": "2020-04-28T09:27:04.563554Z", |
| 191 | + "start_time": "2020-04-28T09:27:03.355432Z" |
192 | 192 | }, |
193 | 193 | "colab": {}, |
194 | 194 | "colab_type": "code", |
|
241 | 241 | "execution_count": 4, |
242 | 242 | "metadata": { |
243 | 243 | "ExecuteTime": { |
244 | | - "end_time": "2020-04-16T20:45:19.899785Z", |
245 | | - "start_time": "2020-04-16T20:45:17.759288Z" |
| 244 | + "end_time": "2020-04-28T09:27:06.789462Z", |
| 245 | + "start_time": "2020-04-28T09:27:04.570306Z" |
246 | 246 | }, |
247 | 247 | "colab": { |
248 | 248 | "base_uri": "https://localhost:8080/", |
|
305 | 305 | "execution_count": 5, |
306 | 306 | "metadata": { |
307 | 307 | "ExecuteTime": { |
308 | | - "end_time": "2020-04-16T20:45:19.921897Z", |
309 | | - "start_time": "2020-04-16T20:45:19.902457Z" |
| 308 | + "end_time": "2020-04-28T09:27:06.813310Z", |
| 309 | + "start_time": "2020-04-28T09:27:06.792837Z" |
310 | 310 | }, |
311 | 311 | "colab": { |
312 | 312 | "base_uri": "https://localhost:8080/", |
|
476 | 476 | "execution_count": 6, |
477 | 477 | "metadata": { |
478 | 478 | "ExecuteTime": { |
479 | | - "end_time": "2020-04-16T20:45:21.009561Z", |
480 | | - "start_time": "2020-04-16T20:45:19.925398Z" |
| 479 | + "end_time": "2020-04-28T09:27:07.960855Z", |
| 480 | + "start_time": "2020-04-28T09:27:06.816440Z" |
481 | 481 | }, |
482 | 482 | "colab": { |
483 | 483 | "base_uri": "https://localhost:8080/", |
|
538 | 538 | "execution_count": 7, |
539 | 539 | "metadata": { |
540 | 540 | "ExecuteTime": { |
541 | | - "end_time": "2020-04-16T20:45:22.998801Z", |
542 | | - "start_time": "2020-04-16T20:45:21.011706Z" |
| 541 | + "end_time": "2020-04-28T09:27:10.062915Z", |
| 542 | + "start_time": "2020-04-28T09:27:07.972200Z" |
543 | 543 | }, |
544 | 544 | "colab": { |
545 | 545 | "base_uri": "https://localhost:8080/", |
|
627 | 627 | "execution_count": 8, |
628 | 628 | "metadata": { |
629 | 629 | "ExecuteTime": { |
630 | | - "end_time": "2020-04-16T20:45:25.105146Z", |
631 | | - "start_time": "2020-04-16T20:45:23.001150Z" |
| 630 | + "end_time": "2020-04-28T09:27:12.177386Z", |
| 631 | + "start_time": "2020-04-28T09:27:10.065653Z" |
632 | 632 | }, |
633 | 633 | "colab": { |
634 | 634 | "base_uri": "https://localhost:8080/", |
|
689 | 689 | "execution_count": 9, |
690 | 690 | "metadata": { |
691 | 691 | "ExecuteTime": { |
692 | | - "end_time": "2020-04-16T20:45:27.262646Z", |
693 | | - "start_time": "2020-04-16T20:45:25.108914Z" |
| 692 | + "end_time": "2020-04-28T09:27:14.459477Z", |
| 693 | + "start_time": "2020-04-28T09:27:12.181749Z" |
694 | 694 | }, |
695 | 695 | "colab": { |
696 | 696 | "base_uri": "https://localhost:8080/", |
|
753 | 753 | "execution_count": 10, |
754 | 754 | "metadata": { |
755 | 755 | "ExecuteTime": { |
756 | | - "end_time": "2020-04-16T20:45:27.280762Z", |
757 | | - "start_time": "2020-04-16T20:45:27.265440Z" |
| 756 | + "end_time": "2020-04-28T09:27:14.480794Z", |
| 757 | + "start_time": "2020-04-28T09:27:14.463302Z" |
758 | 758 | }, |
759 | 759 | "colab": { |
760 | 760 | "base_uri": "https://localhost:8080/", |
|
853 | 853 | "execution_count": 11, |
854 | 854 | "metadata": { |
855 | 855 | "ExecuteTime": { |
856 | | - "end_time": "2020-04-16T20:45:30.063722Z", |
857 | | - "start_time": "2020-04-16T20:45:27.284197Z" |
| 856 | + "end_time": "2020-04-28T09:27:17.097949Z", |
| 857 | + "start_time": "2020-04-28T09:27:14.483691Z" |
858 | 858 | }, |
859 | 859 | "colab": { |
860 | 860 | "base_uri": "https://localhost:8080/", |
|
901 | 901 | "execution_count": 12, |
902 | 902 | "metadata": { |
903 | 903 | "ExecuteTime": { |
904 | | - "end_time": "2020-04-16T20:45:30.101502Z", |
905 | | - "start_time": "2020-04-16T20:45:30.067156Z" |
| 904 | + "end_time": "2020-04-28T09:27:17.138755Z", |
| 905 | + "start_time": "2020-04-28T09:27:17.101433Z" |
906 | 906 | }, |
907 | 907 | "colab": { |
908 | 908 | "base_uri": "https://localhost:8080/", |
|
0 commit comments