Looking for usage documentation? Check out Data generation.
TabPFNUnsupervisedModel.generate_synthetic_data
View source AssertionError
If the model is not fitted (self.X_ does not exist)
ValueError
If dag contains a cycle or does not specify every feature
TabPFNUnsupervisedModel.impute
View source TabPFNUnsupervisedModel.impute_
View source X by sampling all cells independently from the trained models.
ValueError
If dag is combined with condition_on_all_features=True,
contains a cycle, or does not specify every feature.
TabPFNUnsupervisedModel.impute_single_permutation_
View source X by sampling all cells independently from the trained models.
TabPFNUnsupervisedModel.sample_from_model_prediction_
View source impute_column
View source col of X (np.nan = missing) in place.
Uses every other column as features (feature NaNs left in — TabPFN handles
them), fits model on the rows where col is observed, and predicts the
rows where it is missing.
simple_impute
View source np.nan) in X, one column at a time.
For each column that contains missing values, fit a TabPFN model on the rows
where that column is observed and predict the missing rows, using all other
columns as features. Numerical columns use a regressor; categorical columns
use a classifier.