TabPFNClassifier– for classification tasksTabPFNRegressor– for regression tasks
- Your data represents an edge case or niche distribution not well-covered by TabPFN’s priors.
- You want to specialize the model for a single domain (e.g., healthcare, finance, IoT sensors)
Getting Started
The fine-tuning process is similar for classifiers and regressors:- Prepare your dataset: Load, subset, and split your data into train and validation sets.
- Configure your model: Initialize a
TabPFNClassifierorTabPFNRegressorwith fine-tuning-specific hyperparameters. Use alow learning rate (e.g.,1e-5to1e-6) to avoid catastrophic forgetting. - Create a fine-tuning dataloader: Use
get_preprocessed_datasets()andmeta_dataset_collatorto prepare batches. - Run the fine-tuning loop: Iterate for several epochs, performing backpropagation and optimizer updates.
- Evaluate performance: Clone the fine-tuned model and test it on held-out validation data.
GitHub Examples
See more examples and fine-tuning utilities in our TabPFN GitHub repository.