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

TabPFNUnsupervisedModel.density_

View source
Generate density predictions for a specific feature based on other features. This internal method is used by the imputation and outlier detection algorithms to model the conditional probability distribution of one feature given others.
Parameters
Returns

TabPFNUnsupervisedModel.outliers

View source
Calculate outlier scores as the log of the arithmetic mean (AM) of the densities across the permutations used to approximate the chain rule. The logsumexp trick is used to compute the log of the AM to address the risk of over- or underflow.
Parameters
Returns
Raises RuntimeError If the model initialization fails ValueError If the input data has incompatible dimensions

TabPFNUnsupervisedModel.outliers_pdf

View source
Calculate the log_pdf from numerical features only. This method filters out categorical features and only considers numerical features for outlier detection.
Parameters
Returns

TabPFNUnsupervisedModel.outliers_pmf

View source
Calculate log_pmf from categorical features only. This method filters out numerical features and only considers categorical features for outlier detection.
Parameters
Returns

TabPFNUnsupervisedModel.outliers_single_permutation_

View source
Compute the chain-rule log-density / log-probability of each row under one permutation.
Parameters
Returns