|
11 | 11 | }, |
12 | 12 | { |
13 | 13 | "cell_type": "code", |
14 | | - "execution_count": null, |
| 14 | + "execution_count": 1, |
15 | 15 | "metadata": { |
16 | 16 | "colab": { |
17 | 17 | "base_uri": "https://localhost:8080/" |
18 | 18 | }, |
19 | 19 | "id": "Ekw8Z93ljC3v", |
20 | | - "outputId": "675ac893-5a46-4c6b-dc03-09438941d1fc" |
| 20 | + "outputId": "bdd16698-2ad0-4423-b090-c5ce55fe3053" |
21 | 21 | }, |
22 | 22 | "outputs": [ |
23 | 23 | { |
24 | 24 | "name": "stdout", |
25 | 25 | "output_type": "stream", |
26 | 26 | "text": [ |
27 | | - "Python 3.10.12\n" |
| 27 | + "Python 3.11.13\n" |
28 | 28 | ] |
29 | 29 | } |
30 | 30 | ], |
|
40 | 40 | "base_uri": "https://localhost:8080/" |
41 | 41 | }, |
42 | 42 | "id": "yoy_wT1rhMqF", |
43 | | - "outputId": "4268fdb0-84d2-4502-97e4-e93a1440c8ee" |
| 43 | + "outputId": "e038b50f-1b61-4334-be62-28f4dc40a0a0" |
44 | 44 | }, |
45 | | - "outputs": [ |
46 | | - { |
47 | | - "name": "stdout", |
48 | | - "output_type": "stream", |
49 | | - "text": [ |
50 | | - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m34.4/34.4 MB\u001b[0m \u001b[31m16.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", |
51 | | - "\u001b[?25h\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n", |
52 | | - "lida 0.0.10 requires fastapi, which is not installed.\n", |
53 | | - "lida 0.0.10 requires kaleido, which is not installed.\n", |
54 | | - "lida 0.0.10 requires python-multipart, which is not installed.\n", |
55 | | - "lida 0.0.10 requires uvicorn, which is not installed.\u001b[0m\u001b[31m\n", |
56 | | - "\u001b[0m" |
57 | | - ] |
58 | | - } |
59 | | - ], |
| 45 | + "outputs": [], |
60 | 46 | "source": [ |
61 | 47 | "# Install dependencies\n", |
62 | | - "!pip install -q numerapi pandas lightgbm cloudpickle==2.2.1 pyarrow scikit-learn scipy==1.10.1" |
| 48 | + "!pip install -q --upgrade numerapi pandas pyarrow matplotlib lightgbm scikit-learn scipy cloudpickle==3.1.1" |
63 | 49 | ] |
64 | 50 | }, |
65 | 51 | { |
66 | 52 | "cell_type": "code", |
67 | | - "execution_count": null, |
| 53 | + "execution_count": 4, |
68 | 54 | "metadata": { |
69 | 55 | "colab": { |
70 | 56 | "base_uri": "https://localhost:8080/", |
71 | | - "height": 17 |
| 57 | + "height": 160 |
72 | 58 | }, |
73 | 59 | "id": "13hdRk9ghMqI", |
74 | | - "outputId": "857a4882-83e5-4a76-9b1e-57d6d822cc67" |
| 60 | + "outputId": "d2274374-fd85-4189-f27b-d9d466cc63ca" |
75 | 61 | }, |
76 | 62 | "outputs": [ |
77 | 63 | { |
78 | | - "data": { |
79 | | - "application/javascript": "\n async function download(id, filename, size) {\n if (!google.colab.kernel.accessAllowed) {\n return;\n }\n const div = document.createElement('div');\n const label = document.createElement('label');\n label.textContent = `Downloading \"${filename}\": `;\n div.appendChild(label);\n const progress = document.createElement('progress');\n progress.max = size;\n div.appendChild(progress);\n document.body.appendChild(div);\n\n const buffers = [];\n let downloaded = 0;\n\n const channel = await google.colab.kernel.comms.open(id);\n // Send a message to notify the kernel that we're ready.\n channel.send({})\n\n for await (const message of channel.messages) {\n // Send a message to notify the kernel that we're ready.\n channel.send({})\n if (message.buffers) {\n for (const buffer of message.buffers) {\n buffers.push(buffer);\n downloaded += buffer.byteLength;\n progress.value = downloaded;\n }\n }\n }\n const blob = new Blob(buffers, {type: 'application/binary'});\n const a = document.createElement('a');\n a.href = window.URL.createObjectURL(blob);\n a.download = filename;\n div.appendChild(a);\n a.click();\n div.remove();\n }\n ", |
80 | | - "text/plain": [ |
81 | | - "<IPython.core.display.Javascript object>" |
82 | | - ] |
83 | | - }, |
84 | | - "metadata": {}, |
85 | | - "output_type": "display_data" |
| 64 | + "name": "stderr", |
| 65 | + "output_type": "stream", |
| 66 | + "text": [ |
| 67 | + "2025-07-25 13:44:58,042 INFO numerapi.utils: starting download\n", |
| 68 | + "v5.0/train.parquet: 2.37GB [01:04, 36.7MB/s] \n", |
| 69 | + "2025-07-25 13:46:03,017 INFO numerapi.utils: starting download\n", |
| 70 | + "v5.0/features.json: 291kB [00:00, 2.75MB/s] \n" |
| 71 | + ] |
86 | 72 | }, |
87 | 73 | { |
88 | | - "data": { |
89 | | - "application/javascript": "download(\"download_9cb9b662-7992-47b0-b787-453b845e7050\", \"predict_barebones.pkl\", 6572312)", |
90 | | - "text/plain": [ |
91 | | - "<IPython.core.display.Javascript object>" |
92 | | - ] |
93 | | - }, |
94 | | - "metadata": {}, |
95 | | - "output_type": "display_data" |
| 74 | + "name": "stdout", |
| 75 | + "output_type": "stream", |
| 76 | + "text": [ |
| 77 | + "[LightGBM] [Info] Auto-choosing row-wise multi-threading, the overhead of testing was 0.001168 seconds.\n", |
| 78 | + "You can set `force_row_wise=true` to remove the overhead.\n", |
| 79 | + "And if memory is not enough, you can set `force_col_wise=true`.\n", |
| 80 | + "[LightGBM] [Info] Total Bins 210\n", |
| 81 | + "[LightGBM] [Info] Number of data points in the train set: 688184, number of used features: 42\n", |
| 82 | + "[LightGBM] [Info] Start training from score 0.500008\n" |
| 83 | + ] |
96 | 84 | } |
97 | 85 | ], |
98 | 86 | "source": [ |
|
152 | 140 | "# Define predict function\n", |
153 | 141 | "def predict(\n", |
154 | 142 | " live_features: pd.DataFrame,\n", |
155 | | - " live_benchmark_models: pd.DataFrame\n", |
| 143 | + " _live_benchmark_models: pd.DataFrame\n", |
156 | 144 | " ) -> pd.DataFrame:\n", |
157 | 145 | " live_predictions = model.predict(live_features[features])\n", |
158 | 146 | " submission = pd.Series(live_predictions, index=live_features.index)\n", |
|
178 | 166 | "provenance": [] |
179 | 167 | }, |
180 | 168 | "kernelspec": { |
181 | | - "display_name": "venv", |
| 169 | + "display_name": "3.11.13", |
182 | 170 | "language": "python", |
183 | 171 | "name": "python3" |
184 | 172 | }, |
|
192 | 180 | "name": "python", |
193 | 181 | "nbconvert_exporter": "python", |
194 | 182 | "pygments_lexer": "ipython3", |
195 | | - "version": "3.10.12" |
| 183 | + "version": "3.11.13" |
196 | 184 | }, |
197 | 185 | "orig_nbformat": 4 |
198 | 186 | }, |
|
0 commit comments