Skip to main content

TabPFN Extensions

PyPI version Downloads License Discord Twitter Follow Contributions Welcome Last Commit colab

[!WARNING]

Experimental Code Notice

Please note that the extensions in this repository are experimental.

  • They are less rigorously tested than the core tabpfn library.
  • APIs are subject to change without notice in future releases. We welcome your feedback and contributions to help improve and stabilize them!

Interactive Notebook Tutorial

[!TIP]

Dive right in with our interactive Colab notebook! It's the best way to get a hands-on feel for TabPFN, walking you through installation, classification, and regression examples.

Open In Colab

Installation

# Clone and install the repository
pip install "tabpfn-extensions[all] @ git+https://github.com/PriorLabs/tabpfn-extensions.git"

Available Extensions

  • interpretability: Explain TabPFN predictions with SHAP values and feature selection
  • many_class: Handle classification problems with more classes than your TabPFN checkpoint supports
  • unsupervised: Data generation and outlier detection
  • embedding: Get TabPFN's internal dense sample embeddings
  • tabebm: Data augmentation using TabPFN-based Energy-Based Models
  • pval_crt: Statistical feature relevance testing (p-values)
  • bayesian_optimization: Bayesian optimization with TabPFN as the surrogate model and differentiable Expected Improvement

See the Documentation section below for guides, examples, and per-extension READMEs.

Backend Options

Many TabPFN Extensions works with two TabPFN implementations:

  1. TabPFN Package — Full PyTorch implementation for local inference:

    pip install tabpfn
    
  2. TabPFN Client — Lightweight API client for cloud-based inference:

    pip install "tabpfn-client>=0.2.7"
    

Choose the backend that fits your needs - most extensions work with either option!

Exceptions to this are embedding and bayesian_optimization, which only work with the local tabpfn package.

Documentation

Documentation for tabpfn-extensions is spread across several sources. If you are new to the project, the examples are usually the fastest way to get started; for deeper conceptual guides, see the TabPFN Docs pages.

Examples

Runnable scripts and notebooks for extensions and general use cases live in the examples/ directory of this repository:

  • bayesian_optimization/ — Bayesian optimization with TabPFN as the surrogate and differentiable Expected Improvement
  • embedding/ — access TabPFN's internal dense sample embeddings
  • interpretability/ — SHAP values, partial dependence plots, feature selection
  • many_class/ — classification with more classes than your checkpoint supports
  • predictive_distribution/ — visualize the full predictive distribution from TabPFNRegressor and derive point estimates / credible intervals
  • pval_crt/ — statistical feature relevance testing
  • survival/ — survival analysis
  • tabebm/ — data augmentation via TabEBM
  • unsupervised/ — data generation, imputation, and outlier detection

TabPFN Docs pages

In-depth guides for selected extensions are available on docs.priorlabs.ai:

Per-extension READMEs

Some extensions ship a dedicated README alongside their source code:

Interactive notebook

The main TabPFN demo notebook also covers several extensions — in particular the unsupervised and interpretability extensions:

Open In Colab

License

This project is licensed under the Apache License 2.0 — see the LICENSE file for details.

Telemetry

For details on telemetry, please see our Telemetry Reference and our Privacy Policy.

For Contributors

Interested in adding your own extension? We welcome contributions!

We use uv to manage the project's environment, so install that first.

# Clone and set up for development
git clone https://github.com/PriorLabs/tabpfn-extensions.git
cd tabpfn-extensions
uv sync
source .venv/bin/activate

# If you add optional dependencies for your extension in pyproject.toml, install them
# like this
uv sync --extra [your extension name]

# Test your extension with fast mode
FAST_TEST_MODE=1 pytest tests/test_your_extension.py -v

See our Contribution Guide for more details.

Contributors


Built with ❤️ by the TabPFN community

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tabpfn_extensions-0.6.0.tar.gz (131.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tabpfn_extensions-0.6.0-py3-none-any.whl (109.4 kB view details)

Uploaded Python 3

File details

Details for the file tabpfn_extensions-0.6.0.tar.gz.

File metadata

  • Download URL: tabpfn_extensions-0.6.0.tar.gz
  • Upload date:
  • Size: 131.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for tabpfn_extensions-0.6.0.tar.gz
Algorithm Hash digest
SHA256 4a00af84a3587ff006b0ef72931ef7defc21f1def649d4dabbd9eec6fa8de0ba
MD5 f8f79b2184bfaf0fe29a5c688070c794
BLAKE2b-256 06e3e21f2f9c89adab604b116ac0e61a59702972ea9a273df15662c92329ce7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabpfn_extensions-0.6.0.tar.gz:

Publisher: release-publish.yml on PriorLabs/tabpfn-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tabpfn_extensions-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tabpfn_extensions-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af7ce51afa94f873ca45ba1e644ca0a236aab0815d3b3453a03b5a272f611463
MD5 f909230c3d1f54a181e51fdc71170d30
BLAKE2b-256 806dec6428f1f27f7b1c3704486a3b0e04d37321775c4943253a648d69393a2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tabpfn_extensions-0.6.0-py3-none-any.whl:

Publisher: release-publish.yml on PriorLabs/tabpfn-extensions

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.0.4

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page