Skip to main content
Looking for usage documentation? Check out Fine tuning.

TabPFNRegressor.fit_from_preprocessed

View source
Used in Fine-Tuning. Fit the model to preprocessed inputs from torch dataloader inside a training loop a Dataset provided by get_preprocessed_datasets. This function always uses the “batched” fit_mode.
Parameters
Returns

TabPFNRegressor.fit_with_differentiable_input

View source
Fit the model with differentiable input. Mirror of TabPFNClassifier.fit_with_differentiable_input. Lets gradients flow from a downstream loss back through X (and y, if it carries grads) into upstream torch modules. Use this instead of fit when differentiable_input=True.
Parameters
Returns

TabPFNRegressor.predict_batched

View source
Predict for several independent datasets in one pass. Each triple is preprocessed exactly as fit() + predict() does, then compatible model-input shapes are fused. Heterogeneous post-preprocessing shapes run in separate groups. This is equivalent to independent prediction and leaves self unchanged. Datasets need not share a target scale (each is decoded with its own bar distribution) but must share raw array shapes. Fitted transforms may produce different shapes; these are grouped internally without padding.
Parameters
Returns
Raises ValueError If the input lists have unequal or zero length, or the training (or test) arrays do not all share one shape. TabPFNValidationError If output_type or quantiles are invalid. NotImplementedError If tuning_config is configured on the estimator — the calibrated ensemble temperature is per-dataset state and cannot be applied correctly across a shared batch, so score those datasets individually with predict. Also raised for inference_precision=torch.float64, which the fused forward does not support. Note Constant-target datasets are answered analytically and take no part in the fused forward.

TabPFNRegressor.forward

View source
Forward pass for TabPFNRegressor Inference Engine. Used in fine-tuning and prediction. Called directly in FineTuning training loop or by predict() function with the use_inference_mode flag explicitly set to True. Iterates over outputs of InferenceEngine.
Parameters
Returns