|
54 | 54 | "Requirement already satisfied: numpy in /opt/conda/lib/python3.10/site-packages (1.26.4)\r\n",
|
55 | 55 | "Collecting numpy\r\n",
|
56 | 56 | " Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)\r\n",
|
57 |
| - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m60.9/60.9 kB\u001b[0m \u001b[31m1.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n", |
58 |
| - "\u001b[?25hRequirement already satisfied: tqdm in /opt/conda/lib/python3.10/site-packages (4.66.4)\r\n", |
| 57 | + "\u001B[2K \u001B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001B[0m \u001B[32m60.9/60.9 kB\u001B[0m \u001B[31m1.9 MB/s\u001B[0m eta \u001B[36m0:00:00\u001B[0m\r\n", |
| 58 | + "\u001B[?25hRequirement already satisfied: tqdm in /opt/conda/lib/python3.10/site-packages (4.66.4)\r\n", |
59 | 59 | "Requirement already satisfied: pooch in /opt/conda/lib/python3.10/site-packages (1.8.2)\r\n",
|
60 | 60 | "Requirement already satisfied: ipywidgets in /opt/conda/lib/python3.10/site-packages (7.7.1)\r\n",
|
61 | 61 | "Collecting ipywidgets\r\n",
|
|
96 | 96 | "Requirement already satisfied: six>=1.12.0 in /opt/conda/lib/python3.10/site-packages (from asttokens>=2.1.0->stack-data->ipython>=6.1.0->ipywidgets) (1.16.0)\r\n",
|
97 | 97 | "Downloading rbo-0.1.3-py3-none-any.whl (7.8 kB)\r\n",
|
98 | 98 | "Downloading rich-13.7.1-py3-none-any.whl (240 kB)\r\n",
|
99 |
| - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m240.7/240.7 kB\u001b[0m \u001b[31m9.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n", |
100 |
| - "\u001b[?25hDownloading ipywidgets-8.1.3-py3-none-any.whl (139 kB)\r\n", |
101 |
| - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m139.4/139.4 kB\u001b[0m \u001b[31m6.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n", |
102 |
| - "\u001b[?25hDownloading openskill-6.0.0-py3-none-any.whl (50 kB)\r\n", |
103 |
| - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.9/50.9 kB\u001b[0m \u001b[31m2.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n", |
104 |
| - "\u001b[?25hDownloading jupyterlab_widgets-3.0.11-py3-none-any.whl (214 kB)\r\n", |
105 |
| - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m214.4/214.4 kB\u001b[0m \u001b[31m8.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n", |
106 |
| - "\u001b[?25hDownloading widgetsnbextension-4.0.11-py3-none-any.whl (2.3 MB)\r\n", |
107 |
| - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.3/2.3 MB\u001b[0m \u001b[31m42.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\r\n", |
108 |
| - "\u001b[?25hInstalling collected packages: widgetsnbextension, rbo, openskill, jupyterlab-widgets, rich, ipywidgets\r\n", |
| 99 | + "\u001B[2K \u001B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001B[0m \u001B[32m240.7/240.7 kB\u001B[0m \u001B[31m9.1 MB/s\u001B[0m eta \u001B[36m0:00:00\u001B[0m\r\n", |
| 100 | + "\u001B[?25hDownloading ipywidgets-8.1.3-py3-none-any.whl (139 kB)\r\n", |
| 101 | + "\u001B[2K \u001B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001B[0m \u001B[32m139.4/139.4 kB\u001B[0m \u001B[31m6.3 MB/s\u001B[0m eta \u001B[36m0:00:00\u001B[0m\r\n", |
| 102 | + "\u001B[?25hDownloading openskill-6.0.0-py3-none-any.whl (50 kB)\r\n", |
| 103 | + "\u001B[2K \u001B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001B[0m \u001B[32m50.9/50.9 kB\u001B[0m \u001B[31m2.2 MB/s\u001B[0m eta \u001B[36m0:00:00\u001B[0m\r\n", |
| 104 | + "\u001B[?25hDownloading jupyterlab_widgets-3.0.11-py3-none-any.whl (214 kB)\r\n", |
| 105 | + "\u001B[2K \u001B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001B[0m \u001B[32m214.4/214.4 kB\u001B[0m \u001B[31m8.9 MB/s\u001B[0m eta \u001B[36m0:00:00\u001B[0m\r\n", |
| 106 | + "\u001B[?25hDownloading widgetsnbextension-4.0.11-py3-none-any.whl (2.3 MB)\r\n", |
| 107 | + "\u001B[2K \u001B[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001B[0m \u001B[32m2.3/2.3 MB\u001B[0m \u001B[31m42.2 MB/s\u001B[0m eta \u001B[36m0:00:00\u001B[0m\r\n", |
| 108 | + "\u001B[?25hInstalling collected packages: widgetsnbextension, rbo, openskill, jupyterlab-widgets, rich, ipywidgets\r\n", |
109 | 109 | " Attempting uninstall: widgetsnbextension\r\n",
|
110 | 110 | " Found existing installation: widgetsnbextension 3.6.7\r\n",
|
111 | 111 | " Uninstalling widgetsnbextension-3.6.7:\r\n",
|
|
122 | 122 | " Found existing installation: ipywidgets 7.7.1\r\n",
|
123 | 123 | " Uninstalling ipywidgets-7.7.1:\r\n",
|
124 | 124 | " Successfully uninstalled ipywidgets-7.7.1\r\n",
|
125 |
| - "\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.\r\n", |
| 125 | + "\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.\r\n", |
126 | 126 | "tensorflow-decision-forests 1.8.1 requires wurlitzer, which is not installed.\r\n",
|
127 |
| - "tensorflow 2.15.0 requires keras<2.16,>=2.15.0, but you have keras 3.4.1 which is incompatible.\u001b[0m\u001b[31m\r\n", |
128 |
| - "\u001b[0mSuccessfully installed ipywidgets-8.1.3 jupyterlab-widgets-3.0.11 openskill-6.0.0 rbo-0.1.3 rich-13.7.1 widgetsnbextension-4.0.11\r\n", |
| 127 | + "tensorflow 2.15.0 requires keras<2.16,>=2.15.0, but you have keras 3.4.1 which is incompatible.\u001B[0m\u001B[31m\r\n", |
| 128 | + "\u001B[0mSuccessfully installed ipywidgets-8.1.3 jupyterlab-widgets-3.0.11 openskill-6.0.0 rbo-0.1.3 rich-13.7.1 widgetsnbextension-4.0.11\r\n", |
129 | 129 | "Note: you may need to restart the kernel to use updated packages.\n"
|
130 | 130 | ]
|
131 | 131 | }
|
|
175 | 175 | },
|
176 | 176 | "outputs": [],
|
177 | 177 | "source": [
|
178 |
| - "import time\n", |
179 | 178 | "import gc\n",
|
| 179 | + "import time\n", |
180 | 180 | "from dataclasses import dataclass\n",
|
| 181 | + "from pathlib import Path\n", |
181 | 182 | "from typing import Dict\n",
|
182 | 183 | "\n",
|
183 | 184 | "import ipywidgets as widgets\n",
|
184 | 185 | "import numpy as np\n",
|
185 | 186 | "import polars as pl\n",
|
186 | 187 | "import rich\n",
|
| 188 | + "from pooch import DOIDownloader\n", |
187 | 189 | "from rbo import rbo\n",
|
188 | 190 | "from rich.table import Table\n",
|
189 | 191 | "from tqdm.notebook import tqdm\n",
|
|
195 | 197 | " PlackettLuce,\n",
|
196 | 198 | " ThurstoneMostellerFull,\n",
|
197 | 199 | " ThurstoneMostellerPart,\n",
|
198 |
| - ")\n", |
199 |
| - "\n", |
200 |
| - "from pooch import DOIDownloader\n", |
201 |
| - "from pathlib import Path" |
| 200 | + ")" |
202 | 201 | ]
|
203 | 202 | },
|
204 | 203 | {
|
|
1307 | 1306 | "</pre>\n"
|
1308 | 1307 | ],
|
1309 | 1308 | "text/plain": [
|
1310 |
| - "\u001b[3m Benchmark Results \u001b[0m\n", |
| 1309 | + "\u001B[3m Benchmark Results \u001B[0m\n", |
1311 | 1310 | "┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓\n",
|
1312 |
| - "┃\u001b[1m \u001b[0m\u001b[1m Information\u001b[0m\u001b[1m \u001b[0m┃\u001b[1m \u001b[0m\u001b[1mValue \u001b[0m\u001b[1m \u001b[0m┃\n", |
| 1311 | + "┃\u001B[1m \u001B[0m\u001B[1m Information\u001B[0m\u001B[1m \u001B[0m┃\u001B[1m \u001B[0m\u001B[1mValue \u001B[0m\u001B[1m \u001B[0m┃\n", |
1313 | 1312 | "┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩\n",
|
1314 |
| - "│\u001b[36m \u001b[0m\u001b[36m Available Matches\u001b[0m\u001b[36m \u001b[0m│\u001b[35m \u001b[0m\u001b[35m145994 \u001b[0m\u001b[35m \u001b[0m│\n", |
1315 |
| - "│\u001b[36m \u001b[0m\u001b[36m PlackettLuce Accuracy\u001b[0m\u001b[36m \u001b[0m│\u001b[35m \u001b[0m\u001b[35m134323/11671 [ 92.01%]\u001b[0m\u001b[35m \u001b[0m│\n", |
1316 |
| - "│\u001b[36m \u001b[0m\u001b[36m Rank-Biased Overlap Score:\u001b[0m\u001b[36m \u001b[0m│\u001b[35m \u001b[0m\u001b[35m 64.46 \u001b[0m\u001b[35m \u001b[0m│\n", |
| 1313 | + "│\u001B[36m \u001B[0m\u001B[36m Available Matches\u001B[0m\u001B[36m \u001B[0m│\u001B[35m \u001B[0m\u001B[35m145994 \u001B[0m\u001B[35m \u001B[0m│\n", |
| 1314 | + "│\u001B[36m \u001B[0m\u001B[36m PlackettLuce Accuracy\u001B[0m\u001B[36m \u001B[0m│\u001B[35m \u001B[0m\u001B[35m134323/11671 [ 92.01%]\u001B[0m\u001B[35m \u001B[0m│\n", |
| 1315 | + "│\u001B[36m \u001B[0m\u001B[36m Rank-Biased Overlap Score:\u001B[0m\u001B[36m \u001B[0m│\u001B[35m \u001B[0m\u001B[35m 64.46 \u001B[0m\u001B[35m \u001B[0m│\n", |
1317 | 1316 | "└─────────────────────────────┴────────────────────────┘\n"
|
1318 | 1317 | ]
|
1319 | 1318 | },
|
|
1624 | 1623 | "description": "",
|
1625 | 1624 | "description_allow_html": false,
|
1626 | 1625 | "layout": "IPY_MODEL_0d1a94edd9e4441f800b85c272cd4174",
|
1627 |
| - "max": 51704546.0, |
| 1626 | + "max": 5.1704546E7, |
1628 | 1627 | "min": 0.0,
|
1629 | 1628 | "orientation": "horizontal",
|
1630 | 1629 | "style": "IPY_MODEL_c05b6b0fe0b14f8dba8c8532d5becad1",
|
1631 | 1630 | "tabbable": null,
|
1632 | 1631 | "tooltip": null,
|
1633 |
| - "value": 51704546.0 |
| 1632 | + "value": 5.1704546E7 |
1634 | 1633 | }
|
1635 | 1634 | },
|
1636 | 1635 | "1fa24287923243499d42735aa608dff0": {
|
|
2076 | 2075 | "description": "",
|
2077 | 2076 | "description_allow_html": false,
|
2078 | 2077 | "layout": "IPY_MODEL_5f83e32b011b4503b1e67a736ec1153f",
|
2079 |
| - "max": 11487236.0, |
| 2078 | + "max": 1.1487236E7, |
2080 | 2079 | "min": 0.0,
|
2081 | 2080 | "orientation": "horizontal",
|
2082 | 2081 | "style": "IPY_MODEL_e87634fce8704dd3824c2a8685c5fd3b",
|
2083 | 2082 | "tabbable": null,
|
2084 | 2083 | "tooltip": null,
|
2085 |
| - "value": 11487236.0 |
| 2084 | + "value": 1.1487236E7 |
2086 | 2085 | }
|
2087 | 2086 | },
|
2088 | 2087 | "6eb3fa3d7ca84770ab2d24b2f6a694f0": {
|
|
2666 | 2665 | "description": "",
|
2667 | 2666 | "description_allow_html": false,
|
2668 | 2667 | "layout": "IPY_MODEL_f2d82cacecc9493295741ae970381eea",
|
2669 |
| - "max": 51704546.0, |
| 2668 | + "max": 5.1704546E7, |
2670 | 2669 | "min": 0.0,
|
2671 | 2670 | "orientation": "horizontal",
|
2672 | 2671 | "style": "IPY_MODEL_651e7062e6e94d4495ccd2f06cb05c2a",
|
2673 | 2672 | "tabbable": null,
|
2674 | 2673 | "tooltip": null,
|
2675 |
| - "value": 51703476.0 |
| 2674 | + "value": 5.1703476E7 |
2676 | 2675 | }
|
2677 | 2676 | },
|
2678 | 2677 | "bdfb5a775ba04c458828718e6926edc7": {
|
|
0 commit comments