Skip to content

[DOC] TabICL tabular foundation model#705

Open
GrituX wants to merge 8 commits into
683-doc-example-gallery-rework-real-life-cases-high-dimensionalfrom
680-doc-add-example-using-tabicl
Open

[DOC] TabICL tabular foundation model#705
GrituX wants to merge 8 commits into
683-doc-example-gallery-rework-real-life-cases-high-dimensionalfrom
680-doc-add-example-using-tabicl

Conversation

@GrituX

@GrituX GrituX commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

I added a basic example of TabICL usage with HiDimStat on the California Housing dataset. Unfortunately, Github doesn't give free access to GPUs, so I limited the example to 1000 samples which still amounts to a runtime of 1min30s for the entire script.
Also, TabICL currently runs only with CFI and PFI. TabICL requires an integer seeding, while D0CRT directly works with a seeding generator object, making them conflict.
The example is basic, I did not manage to find something interesting to do with it that did not explode computation time since everything has to run on CPU.

Comment thread examples/plot_advanced_tabicl.py Outdated
Housing regression dataset.
"""

import pandas as pd

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please perform the import wherever they're needed. It's indeed not standard, but makes the example more readable.


model = make_pipeline(StandardScaler(), TabICLRegressor(device="cpu"))
model.fit(X_train, y_train)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe report model accuracy on the test data ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Model accuracy is of 0.743

Comment thread examples/plot_advanced_tabicl.py Outdated
# running TabICL on the CPU is slow. We recommend to use it on larger datasets,
# be it in terms of samples and/or features and to run it on GPU for faster
# inferences. Due to technical limitations, this is something we cannot showcase
# here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can skip the last sentence imho.
The example LGTM.

GrituX and others added 3 commits July 3, 2026 10:17
* [ENH] initial implementation of LOCI.

* Changed importance measure, and fixed predict_one_features_group according to failing test.

* added multilabel case handling

* raised fdr threshold for less agressive power testing.

* Implemented multiclass test, and fixed LOCI multiclass code.

* Baseline mean of y is now taken on the train set. Reduced sample and feature size for tests.

---------

Co-authored-by: jpaillard <joseph.paillard@inria.fr>
@GrituX

GrituX commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

I made the changes following your reviews. It's not the most interesting example, but it shows that we can interface HiDimStat with SOTA models.

@GrituX

GrituX commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

However, I can't seem to understand why the CI doesn't want to build the documentation even with the [doc] tag that forces the doc build.

@GrituX

GrituX commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator Author

After a look at the CI, since this PR doesn't target the main branch, the CI will never be run ... So to see the result, this would need to be merged into the target branch, which this time targets main ... (same issue as with the PyTorch/Skorch example)

@GrituX GrituX requested a review from bthirion July 6, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants