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

TabPFNRegressor

View source
TabPFN regressor with a scikit-learn-compatible interface. Construct a TabPFN regressor. This constructs a regressor 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

TabPFNRegressor.create_default_for_version

View source
Construct a regressor 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

TabPFNRegressor.estimator_type

View source
The type of the model. Returns

TabPFNRegressor.model_

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

TabPFNRegressor.norm_bardist_

View source
WARNING: DEPRECATED. Please use raw_space_bardist_ instead. This attribute will be removed in a future version. Returns

TabPFNRegressor.bardist_

View source
WARNING: DEPRECATED. Please use znorm_space_bardist_ instead. This attribute will be removed in a future version. Returns

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