Looking for usage documentation? Check out Fine tuning.
TabPFNClassifier.fit_from_preprocessed
View source TabPFNClassifier.predict_proba_batched
View source (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).
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 TabPFNClassifier.logits_to_probabilities
View source TabPFNClassifier.forward
View source 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.