Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add TabICL adapter #391

Open
Open

Description

@mkumar73

Summary

Add a DeepTab-compatible wrapper around the official TabICL package. It should implement the foundation-model adapter contract from #389. Dependencies come from #392 and tests run in the CI lane from #393.

Scope

  • TabICLClassifier in the foundation-adapter namespace agreed in Define foundation-model adapter interface #389 (proposed: deeptab.models.foundation). Add TabICLRegressor only if the pinned tabicl version supports regression. Otherwise list regression under limitations.
  • tabicl is imported lazily through a require_tabicl() helper in deeptab/core/optional_deps.py. Without the extra, constructing the estimator raises an actionable ImportError naming the extra from Add optional extras for foundation model dependencies #392 (e.g. deeptab[foundation-tabicl]), and import deeptab.models keeps working.
  • Constructor parameters are explicit, so get_params/set_params/clone work. Labels are encoded to 0..K-1 and decoded on predict, matching the other classifiers.
  • The backend's sample, feature and class limits are validated up front with a DeepTab exception.
  • Devices use DeepTab's vocabulary ("cpu", "cuda", "mps", "auto"), with documented support per backend version.
  • Model weights: document the download/cache location, offline use with a pre-downloaded checkpoint, and the licence of the weights.
  • save() / load() / InferenceModel.from_path() round-trip with identical predictions, per Define foundation-model adapter interface #389.
  • Use the same structure as the TabPFN adapter (Add TabPFN adapter #390) so both share the Define foundation-model adapter interface #389 base class and test helpers.

Acceptance criteria

  • Adapter class(es) with numpydoc docstrings, registered in MODEL_REGISTRY with the agreed status
  • Tests that run only in the foundation profile (Add dedicated foundation-model test job #393): fit/predict/predict_proba shapes, string-label round-trip, limits validation, save/load parity, clone
  • Contract tests from Define foundation-model adapter interface #389 pass with this adapter
  • Model-zoo page and installation-docs entry; just docs passes
  • CHANGELOG entry

Activity

  1. added this to the M7 - Model Expansion milestone on Jun 7, 2026
  2. self-assigned this
    on Jun 7, 2026
  3. added
    enhancement
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions