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

TabPFNClassifier

View source
TabPFN classifier with a scikit-learn-compatible interface. Construct a TabPFN classifier. This constructs a classifier using the latest model and settings. If you would like to use a previous model version, use create_default_for_version() instead. You can also use model_path to specify a particular model.
Parameters
Usage guidance
  • TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count, checkpoint limits, and memory.
  • For large datasets or limited memory, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 50_000}.
  • Pass raw pandas DataFrames to fit and predict. Categorical strings/categories and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.
Attributes

TabPFNClassifier.create_default_for_version

View source
Construct a classifier that uses the given version of the model. In addition to selecting the model, this also configures certain settings to the default values associated with this model version. Any kwargs will override the default settings.
Parameters
Returns

TabPFNClassifier.estimator_type

View source
The type of the model. Returns

TabPFNClassifier.model_

View source
The model used for inference. This is set after the model is loaded and initialized. Returns

TabPFNClassifier.get_inference_config

View source
Load the model if needed and return the active inference config. Loads the model checkpoint without requiring fit data so the config can be inspected before calling fit(). Any inference_config override passed to the constructor is considered.
Returns

Scikit-learn methods

See get_params and set_params.