Skip to main content

TabICL-Survival: A Tabular Foundation Model for Survival In-Context Learning

This repo is an adaptation of "TabICL: A Tabular Foundation Model for In-Context Learning on Large Data" for survival analysis. It is trained using Cox negative log likelihood.

Installation

Option 1: Installing tabicl-survival from PyPI

pip install tabicl-survival

Option 2: Installing tabicl-survival from the local clone

cd tabicl
pip install -e .

Option 3: Installing tabicl-survival directly from the git remote

pip install git+https://github.com/taltstidl/tabicl-survival.git

Basic Usage

from tabicl import TabICLSurver

surv = TabICLSurver()
surv.fit(X_train, y_train)  # this is cheap
surv.predict(X_test)  # in-context learning happens here

The code above will automatically download the pre-trained checkpoint (~325MB) from Hugging Face Hub on first use and choose a GPU if available. It supports datasets with up to 1,024 samples and 100 features at the moment.

Contributors

For the original TabICL implementation

For the adapted TabICL-Surival implementation

Metadata

Release files for tabicl-survival 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tabicl-survival 0.1.0
File Size Uploaded
tabicl_survival-0.1.0.tar.gz 93.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tabicl-survival 0.1.0
File Interpreter ABI Platform
tabicl_survival-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 207.2 kB

Release files / tabicl_survival-0.1.0.tar.gz

Download URL tabicl_survival-0.1.0.tar.gz
Size 93.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3c21623445477b62673e9729e6e5b67b81b26f56fc963c7cdf7c0b18388ebcab
BLAKE2b-256 checksum
How to use checksums
c7e31404eb6a4c14d90c4f312ab735cfac71d3328c00d8b9bc99fcebf3253422
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.3 cpython/3.12.10 HTTPX/0.28.1

Release files / tabicl_survival-0.1.0-py3-none-any.whl

Download URL tabicl_survival-0.1.0-py3-none-any.whl
Size 113.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bf8f026ae4ceee5a5bb429010a7437d725f19d4e5a0151bd7f018cecee17e0a
BLAKE2b-256 checksum
How to use checksums
f9e5ce49e022ec3802aed9fe9508d89377e88eeae78d2bc3cfda011092fdc6ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.3 cpython/3.12.10 HTTPX/0.28.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page