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

TabPFNClassifier.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

TabPFNClassifier.predict_proba_batched

View source
Predict probabilities for several independent datasets in one pass. Each (X_train, y_train, X_test) triple is preprocessed exactly as in fit() + predict_proba() (input validation, CPU and GPU preprocessing, same ensemble configs), then compatible model-input shapes are fused. Heterogeneous post-preprocessing shapes run in separate groups. All datasets must share the same set of classes (they are scored together with a single n_classes_) and the same raw array shapes. Fitted transforms may produce different model-input shapes; these are grouped internally without padding. This method does not modify the estimator: the per-dataset fits run on an internal clone, so self is unchanged on return (any prior fit is preserved).
Parameters
Returns
Raises ValueError If the input lists have unequal or zero length, the datasets do not all share the same set of classes, or the training (or test) arrays do not all share one shape. NotImplementedError If balance_probabilities or tuning_config is configured on the estimator — their state is per-dataset and cannot be applied correctly across a shared batch. Score those datasets individually with predict_proba. Also raised for inference_precision=torch.float64, which the fused forward does not support.

TabPFNClassifier.fit_with_differentiable_input

View source
Fit the model with differentiable input.
Parameters
Returns

TabPFNClassifier.logits_to_probabilities

View source
Convert logits to probabilities using the classifier’s post-processing.
Parameters
Returns

TabPFNClassifier.forward

View source
Forward pass returning predicted probabilities or logits for TabPFNClassifier 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