Skip to main content

InferenceConfig

View source
Additional configuration options for inference. Several configuration options for inference are exposed in the TabPFNClassifier and TabPFNRegressor interfaces. The options in this class are more advanced and not expected to be changed by the (standard) user. Several of the preprocessing options are supported by our code for efficiency reasons (to avoid loading TabPFN multiple times). However, these can also be applied outside of the model interface. This class must be serializable as it is peristed in the model checkpoints. Do not edit the default values in this class, as this can affect the backwards compatibility of the model checkpoints. Instead, edit get_default(). Fields

InferenceConfig.override_with_user_input_and_resolve_auto

View source
Return a new config with fields specified in user_config overwritten.
Parameters
Returns

InferenceConfig.equals_ignoring_overridable_fields

View source
Whether this config and other agree on every non-overridable field. A mismatch in one of OVERRIDABLE_FIELDS between the checkpoints of one ensemble gets its own error (see raise_if_checkpoints_disagree_on_overridable_fields), since the user can resolve it by naming a value; any other mismatch is unfixable.
Parameters
Returns

InferenceConfig.get_resolved_outlier_removal_std

View source
Get the resolved outlier removal std.
Parameters
Returns

InferenceConfig.get_default

View source
Return the default config for the given model version and task type. Note that for for model versions after v2, the inference config is stored in the checkpoints itself and this function is not called.
Parameters
Returns