dashai-tabicl 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dashai_tabicl-0.1.0/.github/workflows/publish.yml +40 -0
- dashai_tabicl-0.1.0/.github/workflows/tests.yml +40 -0
- dashai_tabicl-0.1.0/.gitignore +6 -0
- dashai_tabicl-0.1.0/LICENSE +21 -0
- dashai_tabicl-0.1.0/PKG-INFO +170 -0
- dashai_tabicl-0.1.0/README.md +142 -0
- dashai_tabicl-0.1.0/dashai_tabicl/__init__.py +0 -0
- dashai_tabicl-0.1.0/dashai_tabicl/tabicl_models.py +648 -0
- dashai_tabicl-0.1.0/pyproject.toml +49 -0
- dashai_tabicl-0.1.0/tests/conftest.py +133 -0
- dashai_tabicl-0.1.0/tests/test_downloads.py +53 -0
- dashai_tabicl-0.1.0/tests/test_entry_points.py +84 -0
- dashai_tabicl-0.1.0/tests/test_persistence.py +122 -0
- dashai_tabicl-0.1.0/tests/test_readme.py +89 -0
- dashai_tabicl-0.1.0/tests/test_schema.py +119 -0
- dashai_tabicl-0.1.0/tests/test_training.py +144 -0
- dashai_tabicl-0.1.0/tests/test_weights.py +66 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*.*.*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.12"
|
|
16
|
+
- name: Check that the tag matches the package version
|
|
17
|
+
run: |
|
|
18
|
+
version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
|
|
19
|
+
test "v${version}" = "${GITHUB_REF_NAME}"
|
|
20
|
+
- run: python -m pip install --upgrade pip build
|
|
21
|
+
- run: python -m build
|
|
22
|
+
- uses: actions/upload-artifact@v4
|
|
23
|
+
with:
|
|
24
|
+
name: dist
|
|
25
|
+
path: dist/
|
|
26
|
+
|
|
27
|
+
publish:
|
|
28
|
+
needs: build
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
environment:
|
|
31
|
+
name: pypi
|
|
32
|
+
url: https://pypi.org/p/dashai-tabicl
|
|
33
|
+
permissions:
|
|
34
|
+
id-token: write
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/download-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: dist
|
|
39
|
+
path: dist/
|
|
40
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: ["3.11", "3.12"]
|
|
16
|
+
dashai-spec: ["dashAI==0.11.0", "dashAI"]
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python-version }}
|
|
22
|
+
- run: python -m pip install --upgrade pip
|
|
23
|
+
- run: python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
24
|
+
- run: python -m pip install "${{ matrix.dashai-spec }}"
|
|
25
|
+
- run: python -m pip install -e ".[test]"
|
|
26
|
+
- run: python -m pytest -q
|
|
27
|
+
|
|
28
|
+
smoke:
|
|
29
|
+
if: github.event_name == 'push'
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
- uses: actions/setup-python@v5
|
|
34
|
+
with:
|
|
35
|
+
python-version: "3.12"
|
|
36
|
+
- run: python -m pip install --upgrade pip
|
|
37
|
+
- run: python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
38
|
+
- run: python -m pip install dashAI
|
|
39
|
+
- run: python -m pip install -e ".[test]"
|
|
40
|
+
- run: python -m pytest -q -m weights
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dashAI Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: dashai-tabicl
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Adds the TabICLv2 tabular foundation model to DashAI for tabular classification and regression without training.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Irozuku/dashai-tabicl
|
|
6
|
+
Project-URL: Issues, https://github.com/Irozuku/dashai-tabicl/issues
|
|
7
|
+
Project-URL: DashAI, https://github.com/DashAISoftware/DashAI
|
|
8
|
+
Author: Emilio Diaz
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: DashAI,Model
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Plugins
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: dashai>=0.11.0
|
|
22
|
+
Requires-Dist: numpy
|
|
23
|
+
Requires-Dist: tabicl>=2.2
|
|
24
|
+
Requires-Dist: torch>=2.6
|
|
25
|
+
Provides-Extra: test
|
|
26
|
+
Requires-Dist: pytest>=8; extra == 'test'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# TabICLv2 for DashAI
|
|
30
|
+
|
|
31
|
+
dashai-tabicl adds TabICLv2, an open tabular foundation model, to DashAI. Its two components, `TabICLClassifier` for tabular classification and `TabICLRegression` for regression, predict from the training rows in one pass, without gradient training or tuning, and download their BSD licensed weights through DashAI.
|
|
32
|
+
|
|
33
|
+
## Included components
|
|
34
|
+
|
|
35
|
+
| Component | Display name | Task | Library | Checkpoint | Download size |
|
|
36
|
+
| --- | --- | --- | --- | --- | --- |
|
|
37
|
+
| `TabICLClassifier` | TabICLv2 classifier | `TabularClassificationTask` | `tabicl.TabICLClassifier` | [tabicl-classifier-v2-20260212.ckpt](https://huggingface.co/jingang/TabICL) | 110 MB |
|
|
38
|
+
| `TabICLRegression` | TabICLv2 regression | `RegressionTask` | `tabicl.TabICLRegressor` | [tabicl-regressor-v2-20260212.ckpt](https://huggingface.co/jingang/TabICL) | 114 MB |
|
|
39
|
+
|
|
40
|
+
## Requirements
|
|
41
|
+
|
|
42
|
+
- DashAI 0.11.0 or newer.
|
|
43
|
+
- About 110 MB of free disk space for the classifier weights and 114 MB for the regression weights.
|
|
44
|
+
- Table size: the TabICL authors report excellent results with 300 to 100,000 training rows and up to 2,000 features. TabICLv2 was pretrained on tables with 300 to 48,000 training rows, and it was not tested below 300 rows. More than 10 classes are handled by its many class mode.
|
|
45
|
+
- CPU works for small and medium tables; a CUDA GPU is much faster. The `device` choice lists CUDA GPUs only when PyTorch is installed with CUDA support, so Apple Silicon and Intel GPUs run on the CPU in DashAI.
|
|
46
|
+
- Installing the plugin adds only the `tabicl` package (pure Python, about 0.3 MB); everything it needs already ships with DashAI.
|
|
47
|
+
|
|
48
|
+
## Installation
|
|
49
|
+
|
|
50
|
+
Install the plugin from the Plugins page in DashAI, or install it into the Python environment that runs DashAI and restart DashAI:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
pip install dashai-tabicl
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Downloading the weights
|
|
57
|
+
|
|
58
|
+
Each model card in DashAI has a download control that does the same as `POST /api/v1/component/<Name>/download`, for example `POST /api/v1/component/TabICLClassifier/download`. The checkpoint goes to `<DashAI data folder>/components/<ClassName>/TabICL/`, for example `~/.DashAI/components/TabICLClassifier/TabICL/tabicl-classifier-v2-20260212.ckpt`. The same control deletes it. A run cannot start until its model is downloaded, and the models never download anything on their own.
|
|
59
|
+
|
|
60
|
+
The checkpoints are open, so no Hugging Face account or token is needed.
|
|
61
|
+
|
|
62
|
+
## How it predicts
|
|
63
|
+
|
|
64
|
+
- Training stores the training rows, after DashAI encodes the categorical columns, and loads the weights. Nothing is fitted by gradient descent.
|
|
65
|
+
- Every prediction runs the transformer over the training rows together with the rows to predict. DashAI scores the train, validation and test partitions, and explainers such as `KernelShap`, `PartialDependence` and `DiceCounterfactual` call the model many times, so explanations are slow on the CPU.
|
|
66
|
+
- Metrics on the train partition are optimistic, because those rows are part of the context.
|
|
67
|
+
- A saved run keeps the training rows and the encoders but not the weights, so it stays small (about 300 KB for 400 breast cancer rows). Reopening it reads the weights from the component folder of the DashAI that opens it, which must have the model downloaded.
|
|
68
|
+
|
|
69
|
+
## References
|
|
70
|
+
|
|
71
|
+
Model card and code:
|
|
72
|
+
|
|
73
|
+
- TabICLv2 model card and checkpoints. Hugging Face repository jingang/TabICL, 2026. https://huggingface.co/jingang/TabICL
|
|
74
|
+
- Soda team at Inria. tabicl, the official TabICL code with its scikit-learn interface. GitHub, 2025. https://github.com/soda-inria/tabicl
|
|
75
|
+
|
|
76
|
+
Papers:
|
|
77
|
+
|
|
78
|
+
1. Jingang Qu, David Holzmüller, Gaël Varoquaux and Marine Le Morvan. TabICL: A Tabular Foundation Model for In-Context Learning on Large Data. In Proceedings of the 42nd International Conference on Machine Learning (ICML), PMLR volume 267, pages 50817 to 50847, 2025. [PMLR](https://proceedings.mlr.press/v267/qu25d.html), [arXiv:2502.05564](https://arxiv.org/abs/2502.05564). The column then row embedding and the in context learning transformer that TabICL is built on.
|
|
79
|
+
|
|
80
|
+
```bibtex
|
|
81
|
+
@InProceedings{pmlr-v267-qu25d,
|
|
82
|
+
title = {{T}ab{ICL}: A Tabular Foundation Model for In-Context Learning on Large Data},
|
|
83
|
+
author = {Qu, Jingang and Holzm\"{u}ller, David and Varoquaux, Ga\"{e}l and Le Morvan, Marine},
|
|
84
|
+
booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
|
|
85
|
+
pages = {50817--50847},
|
|
86
|
+
year = {2025},
|
|
87
|
+
editor = {Singh, Aarti and Fazel, Maryam and Hsu, Daniel and Lacoste-Julien, Simon and Berkenkamp, Felix and Maharaj, Tegan and Wagstaff, Kiri and Zhu, Jerry},
|
|
88
|
+
volume = {267},
|
|
89
|
+
series = {Proceedings of Machine Learning Research},
|
|
90
|
+
month = {13--19 Jul},
|
|
91
|
+
publisher = {PMLR},
|
|
92
|
+
pdf = {https://raw.githubusercontent.com/mlresearch/v267/main/assets/qu25d/qu25d.pdf},
|
|
93
|
+
url = {https://proceedings.mlr.press/v267/qu25d.html},
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
2. Jingang Qu, David Holzmüller, Gaël Varoquaux and Marine Le Morvan. TabICLv2: A Better, Faster, Scalable, and Open Tabular Foundation Model. In Proceedings of the 43rd International Conference on Machine Learning (ICML), PMLR volume 306, pages 102477 to 102555, 2026. [PMLR](https://proceedings.mlr.press/v306/qu26a.html), [arXiv:2602.11139](https://arxiv.org/abs/2602.11139). The v2 model and the classification and regression checkpoints both components download.
|
|
98
|
+
|
|
99
|
+
```bibtex
|
|
100
|
+
@InProceedings{pmlr-v306-qu26a,
|
|
101
|
+
title = {{T}ab{ICL}v2: A Better, Faster, Scalable, and Open Tabular Foundation Model},
|
|
102
|
+
author = {Qu, Jingang and Holzm\"{u}ller, David and Varoquaux, Ga\"{e}l and Le Morvan, Marine},
|
|
103
|
+
booktitle = {Proceedings of the 43rd International Conference on Machine Learning},
|
|
104
|
+
pages = {102477--102555},
|
|
105
|
+
year = {2026},
|
|
106
|
+
editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto},
|
|
107
|
+
volume = {306},
|
|
108
|
+
series = {Proceedings of Machine Learning Research},
|
|
109
|
+
month = {06--11 Jul},
|
|
110
|
+
publisher = {PMLR},
|
|
111
|
+
pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/qu26a/qu26a.pdf},
|
|
112
|
+
url = {https://proceedings.mlr.press/v306/qu26a.html},
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Parameters
|
|
117
|
+
|
|
118
|
+
### TabICLClassifier
|
|
119
|
+
|
|
120
|
+
| Name | Type | Default | Allowed range or choices | Meaning |
|
|
121
|
+
| --- | --- | --- | --- | --- |
|
|
122
|
+
| `n_estimators` | integer | 8 | 1 to 32 | Number of ensemble members averaged for each prediction. |
|
|
123
|
+
| `softmax_temperature` | float | 0.9 | greater than 0, at most 2 | Temperature that divides the logits before the softmax. |
|
|
124
|
+
| `average_logits` | boolean | true | true or false | Average the logits of the ensemble members instead of their probabilities. |
|
|
125
|
+
| `outlier_threshold` | float | 4 | greater than 0, at most 20 | Z score above which a feature value counts as an outlier and is clipped before inference. |
|
|
126
|
+
| `batch_size` | integer | 8 | 1 to 64 | Number of ensemble members processed together. |
|
|
127
|
+
| `random_state` | integer | 42 | at least 0 | Seed for the shuffles that build the ensemble members, so predictions can be repeated. |
|
|
128
|
+
| `device` | choice | first detected GPU, else CPU | `CPU` or a detected GPU | Device the model runs on. |
|
|
129
|
+
|
|
130
|
+
A DashAI optimizer can search `n_estimators` from 4 to 16 and `softmax_temperature` from 0.5 to 1.5.
|
|
131
|
+
|
|
132
|
+
### TabICLRegression
|
|
133
|
+
|
|
134
|
+
| Name | Type | Default | Allowed range or choices | Meaning |
|
|
135
|
+
| --- | --- | --- | --- | --- |
|
|
136
|
+
| `n_estimators` | integer | 8 | 1 to 32 | Number of ensemble members averaged for each prediction. |
|
|
137
|
+
| `outlier_threshold` | float | 4 | greater than 0, at most 20 | Z score above which a feature value counts as an outlier and is clipped before inference. |
|
|
138
|
+
| `batch_size` | integer | 8 | 1 to 64 | Number of ensemble members processed together. |
|
|
139
|
+
| `random_state` | integer | 42 | at least 0 | Seed for the shuffles that build the ensemble members, so predictions can be repeated. |
|
|
140
|
+
| `device` | choice | first detected GPU, else CPU | `CPU` or a detected GPU | Device the model runs on. |
|
|
141
|
+
|
|
142
|
+
A DashAI optimizer can search `n_estimators` from 4 to 16.
|
|
143
|
+
|
|
144
|
+
## Development
|
|
145
|
+
|
|
146
|
+
Run the tests and build the package from the plugin repository in its own virtual environment, never in DashAI's (Windows commands shown):
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
uv venv --python 3.12
|
|
150
|
+
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
151
|
+
uv pip install -e ".[test]"
|
|
152
|
+
.venv\Scripts\python -m pytest -q
|
|
153
|
+
uv build
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
The default run never downloads weights: it runs tabicl on tiny random checkpoints. `.venv\Scripts\python -m pytest -q -m weights` downloads both checkpoints (about 224 MB) and checks real predictions on the breast cancer and diabetes datasets.
|
|
157
|
+
|
|
158
|
+
## License
|
|
159
|
+
|
|
160
|
+
The plugin code is released under the MIT license, see LICENSE.
|
|
161
|
+
|
|
162
|
+
The model weights have their own license:
|
|
163
|
+
|
|
164
|
+
- TabICL checkpoints in [jingang/TabICL](https://huggingface.co/jingang/TabICL): BSD 3 Clause license, per the model card.
|
|
165
|
+
|
|
166
|
+
The dependencies whose license differs from MIT:
|
|
167
|
+
|
|
168
|
+
- [tabicl](https://github.com/soda-inria/tabicl): BSD 3 Clause license, copyright the Soda team at Inria.
|
|
169
|
+
- [PyTorch](https://github.com/pytorch/pytorch) (`torch`): BSD 3 Clause license; its wheels also bundle third party code under their own licenses.
|
|
170
|
+
- [NumPy](https://github.com/numpy/numpy): BSD 3 Clause license; its wheels also bundle code under the 0BSD, MIT, Zlib and CC0 1.0 licenses.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# TabICLv2 for DashAI
|
|
2
|
+
|
|
3
|
+
dashai-tabicl adds TabICLv2, an open tabular foundation model, to DashAI. Its two components, `TabICLClassifier` for tabular classification and `TabICLRegression` for regression, predict from the training rows in one pass, without gradient training or tuning, and download their BSD licensed weights through DashAI.
|
|
4
|
+
|
|
5
|
+
## Included components
|
|
6
|
+
|
|
7
|
+
| Component | Display name | Task | Library | Checkpoint | Download size |
|
|
8
|
+
| --- | --- | --- | --- | --- | --- |
|
|
9
|
+
| `TabICLClassifier` | TabICLv2 classifier | `TabularClassificationTask` | `tabicl.TabICLClassifier` | [tabicl-classifier-v2-20260212.ckpt](https://huggingface.co/jingang/TabICL) | 110 MB |
|
|
10
|
+
| `TabICLRegression` | TabICLv2 regression | `RegressionTask` | `tabicl.TabICLRegressor` | [tabicl-regressor-v2-20260212.ckpt](https://huggingface.co/jingang/TabICL) | 114 MB |
|
|
11
|
+
|
|
12
|
+
## Requirements
|
|
13
|
+
|
|
14
|
+
- DashAI 0.11.0 or newer.
|
|
15
|
+
- About 110 MB of free disk space for the classifier weights and 114 MB for the regression weights.
|
|
16
|
+
- Table size: the TabICL authors report excellent results with 300 to 100,000 training rows and up to 2,000 features. TabICLv2 was pretrained on tables with 300 to 48,000 training rows, and it was not tested below 300 rows. More than 10 classes are handled by its many class mode.
|
|
17
|
+
- CPU works for small and medium tables; a CUDA GPU is much faster. The `device` choice lists CUDA GPUs only when PyTorch is installed with CUDA support, so Apple Silicon and Intel GPUs run on the CPU in DashAI.
|
|
18
|
+
- Installing the plugin adds only the `tabicl` package (pure Python, about 0.3 MB); everything it needs already ships with DashAI.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
Install the plugin from the Plugins page in DashAI, or install it into the Python environment that runs DashAI and restart DashAI:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
pip install dashai-tabicl
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Downloading the weights
|
|
29
|
+
|
|
30
|
+
Each model card in DashAI has a download control that does the same as `POST /api/v1/component/<Name>/download`, for example `POST /api/v1/component/TabICLClassifier/download`. The checkpoint goes to `<DashAI data folder>/components/<ClassName>/TabICL/`, for example `~/.DashAI/components/TabICLClassifier/TabICL/tabicl-classifier-v2-20260212.ckpt`. The same control deletes it. A run cannot start until its model is downloaded, and the models never download anything on their own.
|
|
31
|
+
|
|
32
|
+
The checkpoints are open, so no Hugging Face account or token is needed.
|
|
33
|
+
|
|
34
|
+
## How it predicts
|
|
35
|
+
|
|
36
|
+
- Training stores the training rows, after DashAI encodes the categorical columns, and loads the weights. Nothing is fitted by gradient descent.
|
|
37
|
+
- Every prediction runs the transformer over the training rows together with the rows to predict. DashAI scores the train, validation and test partitions, and explainers such as `KernelShap`, `PartialDependence` and `DiceCounterfactual` call the model many times, so explanations are slow on the CPU.
|
|
38
|
+
- Metrics on the train partition are optimistic, because those rows are part of the context.
|
|
39
|
+
- A saved run keeps the training rows and the encoders but not the weights, so it stays small (about 300 KB for 400 breast cancer rows). Reopening it reads the weights from the component folder of the DashAI that opens it, which must have the model downloaded.
|
|
40
|
+
|
|
41
|
+
## References
|
|
42
|
+
|
|
43
|
+
Model card and code:
|
|
44
|
+
|
|
45
|
+
- TabICLv2 model card and checkpoints. Hugging Face repository jingang/TabICL, 2026. https://huggingface.co/jingang/TabICL
|
|
46
|
+
- Soda team at Inria. tabicl, the official TabICL code with its scikit-learn interface. GitHub, 2025. https://github.com/soda-inria/tabicl
|
|
47
|
+
|
|
48
|
+
Papers:
|
|
49
|
+
|
|
50
|
+
1. Jingang Qu, David Holzmüller, Gaël Varoquaux and Marine Le Morvan. TabICL: A Tabular Foundation Model for In-Context Learning on Large Data. In Proceedings of the 42nd International Conference on Machine Learning (ICML), PMLR volume 267, pages 50817 to 50847, 2025. [PMLR](https://proceedings.mlr.press/v267/qu25d.html), [arXiv:2502.05564](https://arxiv.org/abs/2502.05564). The column then row embedding and the in context learning transformer that TabICL is built on.
|
|
51
|
+
|
|
52
|
+
```bibtex
|
|
53
|
+
@InProceedings{pmlr-v267-qu25d,
|
|
54
|
+
title = {{T}ab{ICL}: A Tabular Foundation Model for In-Context Learning on Large Data},
|
|
55
|
+
author = {Qu, Jingang and Holzm\"{u}ller, David and Varoquaux, Ga\"{e}l and Le Morvan, Marine},
|
|
56
|
+
booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
|
|
57
|
+
pages = {50817--50847},
|
|
58
|
+
year = {2025},
|
|
59
|
+
editor = {Singh, Aarti and Fazel, Maryam and Hsu, Daniel and Lacoste-Julien, Simon and Berkenkamp, Felix and Maharaj, Tegan and Wagstaff, Kiri and Zhu, Jerry},
|
|
60
|
+
volume = {267},
|
|
61
|
+
series = {Proceedings of Machine Learning Research},
|
|
62
|
+
month = {13--19 Jul},
|
|
63
|
+
publisher = {PMLR},
|
|
64
|
+
pdf = {https://raw.githubusercontent.com/mlresearch/v267/main/assets/qu25d/qu25d.pdf},
|
|
65
|
+
url = {https://proceedings.mlr.press/v267/qu25d.html},
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
2. Jingang Qu, David Holzmüller, Gaël Varoquaux and Marine Le Morvan. TabICLv2: A Better, Faster, Scalable, and Open Tabular Foundation Model. In Proceedings of the 43rd International Conference on Machine Learning (ICML), PMLR volume 306, pages 102477 to 102555, 2026. [PMLR](https://proceedings.mlr.press/v306/qu26a.html), [arXiv:2602.11139](https://arxiv.org/abs/2602.11139). The v2 model and the classification and regression checkpoints both components download.
|
|
70
|
+
|
|
71
|
+
```bibtex
|
|
72
|
+
@InProceedings{pmlr-v306-qu26a,
|
|
73
|
+
title = {{T}ab{ICL}v2: A Better, Faster, Scalable, and Open Tabular Foundation Model},
|
|
74
|
+
author = {Qu, Jingang and Holzm\"{u}ller, David and Varoquaux, Ga\"{e}l and Le Morvan, Marine},
|
|
75
|
+
booktitle = {Proceedings of the 43rd International Conference on Machine Learning},
|
|
76
|
+
pages = {102477--102555},
|
|
77
|
+
year = {2026},
|
|
78
|
+
editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto},
|
|
79
|
+
volume = {306},
|
|
80
|
+
series = {Proceedings of Machine Learning Research},
|
|
81
|
+
month = {06--11 Jul},
|
|
82
|
+
publisher = {PMLR},
|
|
83
|
+
pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/qu26a/qu26a.pdf},
|
|
84
|
+
url = {https://proceedings.mlr.press/v306/qu26a.html},
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Parameters
|
|
89
|
+
|
|
90
|
+
### TabICLClassifier
|
|
91
|
+
|
|
92
|
+
| Name | Type | Default | Allowed range or choices | Meaning |
|
|
93
|
+
| --- | --- | --- | --- | --- |
|
|
94
|
+
| `n_estimators` | integer | 8 | 1 to 32 | Number of ensemble members averaged for each prediction. |
|
|
95
|
+
| `softmax_temperature` | float | 0.9 | greater than 0, at most 2 | Temperature that divides the logits before the softmax. |
|
|
96
|
+
| `average_logits` | boolean | true | true or false | Average the logits of the ensemble members instead of their probabilities. |
|
|
97
|
+
| `outlier_threshold` | float | 4 | greater than 0, at most 20 | Z score above which a feature value counts as an outlier and is clipped before inference. |
|
|
98
|
+
| `batch_size` | integer | 8 | 1 to 64 | Number of ensemble members processed together. |
|
|
99
|
+
| `random_state` | integer | 42 | at least 0 | Seed for the shuffles that build the ensemble members, so predictions can be repeated. |
|
|
100
|
+
| `device` | choice | first detected GPU, else CPU | `CPU` or a detected GPU | Device the model runs on. |
|
|
101
|
+
|
|
102
|
+
A DashAI optimizer can search `n_estimators` from 4 to 16 and `softmax_temperature` from 0.5 to 1.5.
|
|
103
|
+
|
|
104
|
+
### TabICLRegression
|
|
105
|
+
|
|
106
|
+
| Name | Type | Default | Allowed range or choices | Meaning |
|
|
107
|
+
| --- | --- | --- | --- | --- |
|
|
108
|
+
| `n_estimators` | integer | 8 | 1 to 32 | Number of ensemble members averaged for each prediction. |
|
|
109
|
+
| `outlier_threshold` | float | 4 | greater than 0, at most 20 | Z score above which a feature value counts as an outlier and is clipped before inference. |
|
|
110
|
+
| `batch_size` | integer | 8 | 1 to 64 | Number of ensemble members processed together. |
|
|
111
|
+
| `random_state` | integer | 42 | at least 0 | Seed for the shuffles that build the ensemble members, so predictions can be repeated. |
|
|
112
|
+
| `device` | choice | first detected GPU, else CPU | `CPU` or a detected GPU | Device the model runs on. |
|
|
113
|
+
|
|
114
|
+
A DashAI optimizer can search `n_estimators` from 4 to 16.
|
|
115
|
+
|
|
116
|
+
## Development
|
|
117
|
+
|
|
118
|
+
Run the tests and build the package from the plugin repository in its own virtual environment, never in DashAI's (Windows commands shown):
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
uv venv --python 3.12
|
|
122
|
+
uv pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
|
|
123
|
+
uv pip install -e ".[test]"
|
|
124
|
+
.venv\Scripts\python -m pytest -q
|
|
125
|
+
uv build
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The default run never downloads weights: it runs tabicl on tiny random checkpoints. `.venv\Scripts\python -m pytest -q -m weights` downloads both checkpoints (about 224 MB) and checks real predictions on the breast cancer and diabetes datasets.
|
|
129
|
+
|
|
130
|
+
## License
|
|
131
|
+
|
|
132
|
+
The plugin code is released under the MIT license, see LICENSE.
|
|
133
|
+
|
|
134
|
+
The model weights have their own license:
|
|
135
|
+
|
|
136
|
+
- TabICL checkpoints in [jingang/TabICL](https://huggingface.co/jingang/TabICL): BSD 3 Clause license, per the model card.
|
|
137
|
+
|
|
138
|
+
The dependencies whose license differs from MIT:
|
|
139
|
+
|
|
140
|
+
- [tabicl](https://github.com/soda-inria/tabicl): BSD 3 Clause license, copyright the Soda team at Inria.
|
|
141
|
+
- [PyTorch](https://github.com/pytorch/pytorch) (`torch`): BSD 3 Clause license; its wheels also bundle third party code under their own licenses.
|
|
142
|
+
- [NumPy](https://github.com/numpy/numpy): BSD 3 Clause license; its wheels also bundle code under the 0BSD, MIT, Zlib and CC0 1.0 licenses.
|
|
File without changes
|