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

# Image estimator

> Fits an estimator on a frame whose declared image columns become features.

## `TabPFNWithImages`

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

Fits an estimator on a frame whose declared image columns become features.

```python theme={null}
TabPFNWithImages(
    estimator: BaseEstimator,
    *,
    image_features_indices: Sequence[int],
    n_components: int = DEFAULT_N_COMPONENTS,
    batch_size: int = DEFAULT_BATCH_SIZE,
)
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `estimator` | `BaseEstimator` | Required | Typically a `TabPFNClassifier` or `TabPFNRegressor`; cloned at [`fit`](https://docs.priorlabs.ai/api-reference/python/tabpfn-extensions/image/estimator#image-tabpfn-with-images-tabpfnwithimages-fit). Its `categorical_features_indices`, when set, are positions in the caller's frame and are moved to the expanded frame. Its `device`, when it has one, is where the image encoder runs. |
| `image_features_indices` | `Sequence[int]` | Required | Positions in `X` whose cells hold images, each as a base64 string, as the image file's path or bytes, or as a PIL image. |
| `n_components` | `int` | `DEFAULT_N_COMPONENTS` | Features an image column is expanded into. |
| `batch_size` | `int` | `DEFAULT_BATCH_SIZE` | Images per encoder forward pass. |

**Attributes**

| Attribute | Type | Description |
| - | - | - |
| `estimator_` | `Any` | The fitted clone of `estimator`. |
| `image_transformer_` | `ImageTransformer` | The fitted [`ImageTransformer`](https://docs.priorlabs.ai/api-reference/python/tabpfn-extensions/image/transformer#image-image-transformer-imagetransformer). |

***

## `TabPFNWithImages.classes_`

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

The fitted estimator's classes; a classifier's attribute only.

**Returns**

| Type | Description |
| - | - |
| `Any` | — |

***

## `TabPFNWithImages.fit`

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

Expand the image columns of `X`, then fit a clone of the estimator.

```python theme={null}
TabPFNWithImages.fit(
    X: pd.DataFrame,
    y: Any,
    **fit_params: Any,
) -> TabPFNWithImages
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `pd.DataFrame` | Required | — |
| `y` | `Any` | Required | — |
| `**fit_params` | `Any` | — | — |

**Returns**

| Type | Description |
| - | - |
| `TabPFNWithImages` | — |

***

## `TabPFNWithImages.predict`

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

The fitted estimator's `predict` on the expanded `X`.

```python theme={null}
TabPFNWithImages.predict(
    X: pd.DataFrame,
    **predict_params: Any,
) -> Any
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `pd.DataFrame` | Required | — |
| `**predict_params` | `Any` | — | — |

**Returns**

| Type | Description |
| - | - |
| `Any` | — |

***

## `TabPFNWithImages.predict_proba`

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

The fitted estimator's `predict_proba` on the expanded `X`.

```python theme={null}
TabPFNWithImages.predict_proba(
    X: pd.DataFrame,
) -> Any
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `pd.DataFrame` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `Any` | — |

***

## `TabPFNWithImages.score`

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

The fitted estimator's `score` on the expanded `X`.

```python theme={null}
TabPFNWithImages.score(
    X: pd.DataFrame,
    y: Any,
) -> Any
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `pd.DataFrame` | Required | — |
| `y` | `Any` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `Any` | — |


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