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

# Azure Foundry

> Use the Azure Foundry deployment adapters.

> [!NOTE]
>
> Looking for usage documentation? Check out [Classification](https://docs.priorlabs.ai/capabilities/classification.md), [Regression](https://docs.priorlabs.ai/capabilities/regression.md) and [KV cache](https://docs.priorlabs.ai/capabilities/kv-cache.md).

## `foundry.TabPFNClassifier`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L437)

TabPFN classifier backed by an Azure AI Foundry endpoint.

```python theme={null}
foundry.TabPFNClassifier(
    *args: Any,
    task: str = "classification",
    **kwargs: Any,
)
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `*args` | `Any` | — | — |
| `task` | `str` | `"classification"` | — |
| `**kwargs` | `Any` | — | See the [accepted constructor options](#classifier-endpoint-url) in this table. |
| `endpoint_url` | `str` | Required | Accepted through `**kwargs`. |
| `api_key` | `str` | Required | Accepted through `**kwargs`. |
| `n_estimators` | `int` | `8` | Accepted through `**kwargs`. |
| `softmax_temperature` | `float` | `0.9` | Accepted through `**kwargs`. |
| `balance_probabilities` | `bool` | `False` | Accepted through `**kwargs`. |
| `average_before_softmax` | `bool` | `False` | Accepted through `**kwargs`. |
| `ignore_pretraining_limits` | `bool` | `True` | Accepted through `**kwargs`. |
| `inference_precision` | `Literal["autocast", "auto"]` | `"auto"` | Accepted through `**kwargs`. |
| `random_state` | `Optional[int]` | `0` | Accepted through `**kwargs`. |
| `inference_config` | `Optional[Dict[str, Any]]` [`InferenceConfig` options](https://docs.priorlabs.ai/api-reference/python/tabpfn/inference-config#inferenceconfig) | `None` | Accepted through `**kwargs`. |
| `paper_version` | `bool` | `False` | Accepted through `**kwargs`. |
| `thinking_mode` | `bool` | `False` | Accepted through `**kwargs`. |
| `thinking_effort` | `Optional[ThinkingEffort]` | `None` | Accepted through `**kwargs`. |
| `thinking_timeout_s` | `Optional[float]` | `None` | Accepted through `**kwargs`. |
| `thinking_metric` | `Optional[str]` | `None` | Accepted through `**kwargs`. |
| `use_kv_cache` | `bool` | `False` | Accepted through `**kwargs`. |
| `fit_mode` | `Optional[FitModeLiteral]` | `None` | Accepted through `**kwargs`. |
| `timeout_s` | `float` | `300.0` | Accepted through `**kwargs`. |

**Example**

```python theme={null}
from tabpfn_client.foundry import TabPFNClassifier
clf = TabPFNClassifier(
    endpoint_url="https://<your-endpoint>.<region>.inference.ml.azure.com/predict",
    api_key="<your-foundry-bearer-token>",
)
clf.fit(X_train, y_train)
clf.predict(X_test)
clf.predict_proba(X_test)
```

***

## `foundry.TabPFNClassifier.fit`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L360)

Store the training data; the endpoint fits on the next `predict*` call.

```python theme={null}
foundry.TabPFNClassifier.fit(
    X: Any,
    y: Any,
) -> "_FoundryBase"
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `Any` | Required | Training features. |
| `y` | `Any` | Required | Training targets. |

**Returns**

| Type | Description |
| - | - |
| `_FoundryBase` | The estimator itself. |

**Raises**

`ValueError`

If `X` and `y` have different numbers of samples, or
thinking mode is on and `y` has only one class.

***

## `foundry.TabPFNClassifier.predict`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L454)

Predict class labels for `X`.

```python theme={null}
foundry.TabPFNClassifier.predict(
    X: Any,
) -> np.ndarray
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `Any` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `np.ndarray` | — |

***

## `foundry.TabPFNClassifier.predict_proba`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L459)

Predict class probabilities for `X`.

```python theme={null}
foundry.TabPFNClassifier.predict_proba(
    X: Any,
) -> np.ndarray
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `Any` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `np.ndarray` | — |

***

## `foundry.TabPFNRegressor`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L465)

TabPFN regressor backed by an Azure AI Foundry endpoint.

```python theme={null}
foundry.TabPFNRegressor(
    *args: Any,
    task: str = "regression",
    **kwargs: Any,
)
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `*args` | `Any` | — | — |
| `task` | `str` | `"regression"` | — |
| `**kwargs` | `Any` | — | See the [accepted constructor options](#regressor-endpoint-url) in this table. |
| `endpoint_url` | `str` | Required | Accepted through `**kwargs`. |
| `api_key` | `str` | Required | Accepted through `**kwargs`. |
| `n_estimators` | `int` | `8` | Accepted through `**kwargs`. |
| `softmax_temperature` | `float` | `0.9` | Accepted through `**kwargs`. |
| `balance_probabilities` | `bool` | `False` | Accepted through `**kwargs`. |
| `average_before_softmax` | `bool` | `False` | Accepted through `**kwargs`. |
| `ignore_pretraining_limits` | `bool` | `True` | Accepted through `**kwargs`. |
| `inference_precision` | `Literal["autocast", "auto"]` | `"auto"` | Accepted through `**kwargs`. |
| `random_state` | `Optional[int]` | `0` | Accepted through `**kwargs`. |
| `inference_config` | `Optional[Dict[str, Any]]` [`InferenceConfig` options](https://docs.priorlabs.ai/api-reference/python/tabpfn/inference-config#inferenceconfig) | `None` | Accepted through `**kwargs`. |
| `paper_version` | `bool` | `False` | Accepted through `**kwargs`. |
| `thinking_mode` | `bool` | `False` | Accepted through `**kwargs`. |
| `thinking_effort` | `Optional[ThinkingEffort]` | `None` | Accepted through `**kwargs`. |
| `thinking_timeout_s` | `Optional[float]` | `None` | Accepted through `**kwargs`. |
| `thinking_metric` | `Optional[str]` | `None` | Accepted through `**kwargs`. |
| `use_kv_cache` | `bool` | `False` | Accepted through `**kwargs`. |
| `fit_mode` | `Optional[FitModeLiteral]` | `None` | Accepted through `**kwargs`. |
| `timeout_s` | `float` | `300.0` | Accepted through `**kwargs`. |

**Example**

```python theme={null}
from tabpfn_client.foundry import TabPFNRegressor
reg = TabPFNRegressor(
    endpoint_url="https://<your-endpoint>.<region>.inference.ml.azure.com/predict",
    api_key="<your-foundry-bearer-token>",
)
reg.fit(X_train, y_train)
reg.predict(X_test)
reg.predict(X_test, output_type="quantiles", quantiles=[0.1, 0.5, 0.9])
```

***

## `foundry.TabPFNRegressor.fit`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L360)

Store the training data; the endpoint fits on the next `predict*` call.

```python theme={null}
foundry.TabPFNRegressor.fit(
    X: Any,
    y: Any,
) -> "_FoundryBase"
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `Any` | Required | Training features. |
| `y` | `Any` | Required | Training targets. |

**Returns**

| Type | Description |
| - | - |
| `_FoundryBase` | The estimator itself. |

**Raises**

`ValueError`

If `X` and `y` have different numbers of samples, or
thinking mode is on and `y` has only one class.

***

## `foundry.TabPFNRegressor.predict`

[ View source ](https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/foundry/estimator.py#L482)

Predict regression targets for `X`.

```python theme={null}
foundry.TabPFNRegressor.predict(
    X: Any,
    output_type: Literal["mean", "median", "mode", "quantiles", "full", "main"] = "mean",
    quantiles: Optional[list] = None,
) -> Union[np.ndarray, list, Dict[str, np.ndarray]]
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `X` | `Any` | Required | Test features. |
| `output_type` | `Literal["mean", "median", "mode", "quantiles", "full", "main"]` | `"mean"` | Which prediction to return. |
| `quantiles` | `Optional[list]` | `None` | Quantile levels to compute when `output_type` is "quantiles". |

**Returns**

| Type | Description |
| - | - |
| `Union[np.ndarray, list, Dict[str, np.ndarray]]` | An array for point predictions; a list with one array per quantile for "quantiles"; a dict of arrays for dict-shaped outputs such as "full" and "main". |

## Scoring

The classifier and regressor inherit the corresponding scikit-learn `score` method. These adapters do not inherit the main hosted client's `save_model`, `load_model`, or model-version selection methods.


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