> ## Documentation Index
> Fetch the complete documentation index at: https://docs.priorlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Unsupervised embeddings

> Get the transformer embeddings for the test data X.

> [!NOTE]
>
> Looking for usage documentation? Check out [Embeddings](https://docs.priorlabs.ai/capabilities/embeddings.md).

## `TabPFNUnsupervisedModel.get_embeddings`

[ View source ](https://github.com/PriorLabs/tabpfn-extensions/blob/840c15a1848a986b39c85bc17efc61e0e377f983/src/tabpfn_extensions/unsupervised/unsupervised.py#L968)

Get the transformer embeddings for the test data `X`.

```python theme={null}
TabPFNUnsupervisedModel.get_embeddings(
    X: torch.tensor,
    per_column: bool = False,
) -> torch.tensor
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `torch.tensor` | Required | — |
| `per_column` | `bool` | `False` | — |

**Returns**

| Type | Description |
| - | - |
| `torch.tensor` | torch.Tensor of shape (n\_samples, embedding\_dim) |

***

## `TabPFNUnsupervisedModel.get_embeddings_`

[ View source ](https://github.com/PriorLabs/tabpfn-extensions/blob/840c15a1848a986b39c85bc17efc61e0e377f983/src/tabpfn_extensions/unsupervised/unsupervised.py#L986)

***

## `TabPFNUnsupervisedModel.get_embeddings_per_column`

[ View source ](https://github.com/PriorLabs/tabpfn-extensions/blob/840c15a1848a986b39c85bc17efc61e0e377f983/src/tabpfn_extensions/unsupervised/unsupervised.py#L997)

Alternative implementation for [`get_embeddings`](https://docs.priorlabs.ai/api-reference/python/tabpfn-extensions/unsupervised/embeddings#unsupervised-unsupervised-tabpfnunsupervisedmodel-get-embeddings), where we get the embeddings for each column as a label
separately and concatenate the results. This alternative way needs more passes but might be more accurate.

```python theme={null}
TabPFNUnsupervisedModel.get_embeddings_per_column(
    X: torch.tensor,
) -> torch.tensor
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `torch.tensor` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `torch.tensor` | — |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.