Add TabICL-v2 solver and UEA multivariate dataset loader#19
Open
ievred wants to merge 3 commits into
Open
Conversation
Author
|
UPD: Changestabicl.py — TabICL-v2 solver for UCR/UEA classification
uea.py — UEA multivariate dataset loader
test_tabicl.py — 4 unit tests (offline, fake tabicl)
Results
|
- Add solvers/tabpfn.py: TabPFN-v2 local-checkpoint solver for UCR/UEA classification. Uses ModelVersion.V2 (Apache 2.0 weights), device=auto, ignore_pretraining_limits=True. Follows same structure as tabicl.py. - Add tests/solvers/test_tabpfn.py: 5 offline unit tests (fake tabpfn module) covering univariate/multivariate shapes, classifier reuse, and task-skip logic. - Fix solvers/tabicl.py: reload guard now keys on (checkpoint_version, n_estimators) so changing n_estimators correctly triggers reinstantiation. - Fix tests/solvers/test_tabicl.py: update reuse test docstring; stub benchopt and torch so tests run without those packages installed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
TabICL-v2solver (tabicl.py) that uses the TabICL tabular foundation model for in-context learning classification on UCR datasets.(T, 1)are flattened to(N, T)tabular rows and fed directly toTabICLClassifierset_objective— excluded from benchmark timingsampling_strategy = "run_once"— classification is solved in a single ICL forward passtorch.cuda.is_available(), matching Mantis