Hosted TabPFN regressor with a scikit-learn-compatible interface.Construct a TabPFN regressor.This constructs a regressor using the latest model and settings. If you would
like to use a previous model version, use create_default_for_version()
instead. You can also use model_path to specify a particular model.
The name of the model to use. “auto” (or None) lets the server pick the latest default model; “default” is accepted as a backward-compatible alias. Use create_default_for_version() to pin to a specific major version, and list_available_models() for the accepted names.
n_estimators
int | None
None
The number of estimators in the TabPFN ensemble. We aggregate the predictions of n_estimators-many forward passes of TabPFN. Each forward pass has (slightly) different input data. Think of this as an ensemble of n_estimators-many “prompts” of the input data. The server accepts at most 8. If None, it applies the model’s default:
- v3.5 ("v3.5_default", the default model): 8. - v3.5-fast ("v3.5-fast_default"): 4. - v3 ("v3_default"): 8, raised on wide datasets until every feature is seen by at least one estimator, up to 32.
These are server defaults and may change with server releases.
softmax_temperature
float | None
None
The temperature for the softmax function. This is used to control the confidence of the model’s predictions. Lower values make the model’s predictions more confident. This is only applied when predicting during a post-processing step. Set softmax_temperature=1.0 for no effect. If None, the server default is used.
average_before_softmax
bool | None
None
Only used if n_estimators > 1. Whether to average the predictions of the estimators before applying the softmax function. This can help to improve predictive performance when calibrating the model’s confidence. This is only applied when predicting during a post-processing step. If None, the server default is used.
ignore_pretraining_limits
bool
False
Whether to ignore the pre-training limits of the model. The TabPFN models have been pre-trained on a specific range of input data. If the input data is outside of this range, the model may not perform well. You may ignore our limits to use the model on data outside the pre-training range.
inference_precision
Literal[“autocast”, “auto”] | None
None
The precision to use for inference. This can dramatically affect the speed and reproducibility of the inference. "autocast" enables mixed-precision autocast; "auto" decides based on the device. If None, the server default is used.
random_state
int | None
0
Controls the randomness of the model. Pass an int for reproducible results; pass None to use a fresh random seed each run.
For advanced users, additional advanced arguments that adjust the behavior of the model interface. See InferenceConfig in the tabpfn package for details and options. For the client, the inference_config and the preprocess transforms need to be dictionaries.
categorical_features_indices
list[int] | None
None
The indices of the columns that should be treated as categorical. If None, the model infers which columns are categorical.
Controls what the server persists at fit time. None defers to the server default, which is “fit_preprocessors”.
- If "fit_preprocessors", only the preprocessing state is fitted, so every predict re-runs the forward pass from the uploaded train set. - If "fit_with_cache", a server-side KV cache is additionally built and persisted, keyed by the resulting fitted-train-set id. Later predicts against that id (stored on the estimator as model_id_, and persisted across runs by save_model()) are served from the cache instead of re-fitting.
paper_version
bool
False
If True, will use the model described in the paper, instead of the newest version available on the API, which e.g. handles text features better. Cannot be combined with thinking mode.
thinking_mode
bool
False
If True, spend extra fit-time compute for higher precision. Equivalent to passing thinking_effort="medium"; setting any thinking_effort value also enables thinking, so this flag is optional when you’ve set the level explicitly.
Effort level for thinking mode, from least to most compute: “micro”, “mini”, “low”, “medium”, “high”, “xhigh”, “max”. When set, thinking is enabled (you don’t also need thinking_mode=True). When None and thinking_mode=True, defaults to “medium”.
thinking_timeout_s
float | None
None
Budget for the fit, in seconds. Only consulted when thinking is enabled. Capped at 2400.
thinking_metric
str | None
None
Optimization metric for the fit. Only consulted when thinking is enabled.
Aliases “mse”, “rmse”, “mae”, “mape”, “smape” are also accepted.
group_col
str | list[str] | None
None
New since 0.6.0. Column(s) of X that identify groups of related rows, e.g. a patient or a session id. During the fit, the rows of one group are never split between training and validation. The fit may also use the other rows of a group to predict a row of it. Requires thinking mode, and X passed to fit and predict must be a pandas DataFrame that holds the column(s).
time_col
str | None
None
New since 0.6.0. Column of X that holds time, as datetimes or numbers. During the fit, validation uses contiguous blocks of time. Cannot be combined with group_col. Requires thinking mode, and X must be a pandas DataFrame that holds the column.
group_time_col
str | None
None
New since 0.6.0. Column of X that orders the rows within a group. Requires group_col and thinking mode, and X must be a pandas DataFrame that holds the column.
- SYNC: for small workloads, where latency matters. The client waits on one open request. - ASYNC: for larger workloads. The server runs the work as a background job, and the client polls it until it is done. - AUTO: ASYNC for large workloads, SYNC otherwise. A fit runs as a job for a large training set. A prediction runs as a job once the fit’s training rows or the rows to predict reach the thresholds the server sets; a model fitted with fit_mode="fit_with_cache" predicts with one request.
In every mode fit() and predict() return once the work is done. A thinking-mode fit always runs as a background job, as do submit_fit() and submit_predict(), whatever this setting is. In every mode, fit() waits for a thinking-mode fit for at most TABPFN_CLIENT_ASYNC_POLL_TIMEOUT seconds: by default the server’s 2 hours, which outlasts the server’s own deadline for a fit. Against a server that does not run predictions as background jobs, predict() sends one request in every mode.
Text-processing preset. Both choices support text. Advanced preserves the default processing; simple is an alternative whose accuracy depends on the dataset. Applies when preprocessing is enabled.
Usage guidance
TabPFN-3 and later versions support up to 1,000,000 rows, subject to
feature count and model/API limits.
For large datasets, use per-estimator subsampling,
e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}.
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.
Scikit-learn configuration
Use inherited get_params and set_params to inspect or update constructor settings.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prior Labs","colors":{"primary":"#101075","light":"#ffffff","dark":"#1e293b"},"logo":{"light":"https://mintcdn.com/priorlabs/t197PY0EpQCr-YHY/logo/light.svg?fit=max\u0026auto=format\u0026n=t197PY0EpQCr-YHY\u0026q=85\u0026s=33643e275cfc08c99769e1719c4f53c2","dark":"https://mintcdn.com/priorlabs/t197PY0EpQCr-YHY/logo/light.svg?fit=max\u0026auto=format\u0026n=t197PY0EpQCr-YHY\u0026q=85\u0026s=33643e275cfc08c99769e1719c4f53c2"},"favicon":"https://mintcdn.com/priorlabs/SdCir_vgKw3mGacd/favicon.png?fit=max\u0026auto=format\u0026n=SdCir_vgKw3mGacd\u0026q=85\u0026s=88fa647a00e90147d312725e3354c544","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://priorlabs.ai/contact?utm_source=docs","label":"Talk to Sales"}],"primary":{"type":"button","label":"Try TabPFN","href":"https://platform.priorlabs.ai/playground"}},"footer":{"socials":{"github":"https://github.com/priorlabs","linkedin":"https://www.linkedin.com/company/prior-labs"}},"fonts":{"heading":{"family":"Inter","weight":700},"body":{"family":"DM Sans","weight":400}},"integrations":{"ga4":{"measurementId":"G-9VZ68NQKPM"},"posthog":{"apiKey":"phc_GN5N25uDvJqsqnxmoM6Akr2CuyFIZsdu5ZokAXsPa1N","apiHost":"https://eu.i.posthog.com","sessionRecording":true}},"banner":{"content":"New course with Andrew Ng: **Tabular Foundation Models for Data Science Agents**. [Enroll now →](https://bit.ly/4sQZVAA)","dismissible":true},"interaction":{"drilldown":false},"markdown":{"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."]},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/priorlabs/tabpfn"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/VJRuU3bSxt"},{"anchor":"Colab Demo","icon":"book","href":"https://colab.research.google.com/github/PriorLabs/TabPFN/blob/main/examples/notebooks/TabPFN_Demo_Local.ipynb"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"/changelog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"priorlabs","hasAudioNarration":false,"actualSubdomain":"priorlabs","customDomains":["docs.priorlabs.ai"],"gitSource":{"type":"github","owner":"priorlabs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afd9ad06e8299194cf5b6a7","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API reference","count":79},{"language":"default","tag":"Documentation","count":51},{"language":"default","tag":"Cookbook","count":27},{"language":"default","tag":"All Cookbooks","count":27},{"language":"default","tag":"tabpfn","count":25},{"language":"default","tag":"Capabilities","count":24},{"language":"default","tag":"tabpfn-extensions","count":23},{"language":"default","tag":"tabpfn-client","count":17},{"language":"default","tag":"TabPFNRegressor","count":10},{"language":"default","tag":"tabpfn-rel","count":8}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".cookbook-filter-bar{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;margin:1.5rem 0 2rem}.cookbook-filter-label{font-size:0.875rem;font-weight:600;color:#334155}.cookbook-tag-filters{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center}.cookbook-tag-filter-btn,.cookbook-tag-filter-clear{display:inline-flex;align-items:center;padding:0.375rem 0.75rem;border-radius:9999px;border:1px solid #cbd5e1;background:#ffffff;color:#334155;font-size:0.8125rem;font-weight:600;line-height:1.25rem;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.cookbook-tag-filter-btn:hover,.cookbook-tag-filter-clear:hover{border-color:#101075;color:#101075}.cookbook-tag-filter-btn.is-active{background:#101075;border-color:#101075;color:#ffffff}.cookbook-tag-filter-clear{border-style:dashed}.cookbook-grid{display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:1rem}.cookbook-tile{height:100%;grid-column:span 2}.cookbook-tile>a,.cookbook-tile>div{height:100%}.cookbook-grid[data-featured-count=\"1\"] .cookbook-tile.is-featured{grid-column:span 6}.cookbook-grid[data-featured-count=\"2\"] .cookbook-tile.is-featured{grid-column:span 3}.cookbook-grid[data-featured-count=\"3\"] .cookbook-tile.is-featured{grid-column:span 2}@media (max-width: 1024px){.cookbook-grid{grid-template-columns:repeat(4, minmax(0, 1fr))}.cookbook-grid[data-featured-count=\"1\"] .cookbook-tile.is-featured{grid-column:span 4}.cookbook-grid[data-featured-count=\"2\"] .cookbook-tile.is-featured,.cookbook-grid[data-featured-count=\"3\"] .cookbook-tile.is-featured{grid-column:span 2}}@media (max-width: 640px){.cookbook-grid{grid-template-columns:minmax(0, 1fr)}.cookbook-tile,.cookbook-grid[data-featured-count] .cookbook-tile.is-featured{grid-column:1 / -1}}.cookbook-tile.is-featured>a,.cookbook-tile.is-featured>div{position:relative;border:2px solid #101075;box-shadow:0 8px 24px -12px rgba(16, 16, 117, 0.45);background-image:linear-gradient(\n 135deg,\n rgba(16, 16, 117, 0.06) 0%,\n rgba(16, 16, 117, 0) 55%\n )}.cookbook-tile.is-featured>a:hover{border-color:#101075;box-shadow:0 12px 32px -12px rgba(16, 16, 117, 0.6)}.cookbook-featured-badge{display:inline-flex;align-items:center;gap:0.25rem;margin:0 0 0.75rem;padding:0.125rem 0.625rem;border-radius:9999px;background:#101075;color:#ffffff;font-size:0.75rem;font-weight:700;letter-spacing:0.02em;line-height:1.25rem;text-transform:uppercase}.cookbook-tile.is-featured .cookbook-tile-description{font-size:1rem}.cookbook-tile-tags{display:flex;flex-wrap:wrap;gap:0.375rem;margin:0 0 0.75rem}.cookbook-tag-pill{display:inline-flex;align-items:center;padding:0.125rem 0.5rem;border-radius:9999px;background:#eef2ff;color:#101075;font-size:0.75rem;font-weight:600;line-height:1.25rem}.cookbook-tile-description{margin:0;color:#475569;font-size:0.9375rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}.cookbook-tile.is-featured .cookbook-tile-description{-webkit-line-clamp:2;line-clamp:2}.cookbook-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0.75rem 1rem;margin:0 0 1.75rem}.cookbook-authors{margin:0;min-width:0}.cookbook-colab{display:flex;justify-content:flex-end;align-items:center;margin:0 0 0 auto}.cookbook-colab-button{display:inline-flex!important;align-items:center;gap:0.5rem;padding:0.5rem 1rem!important;font-family:Inter, ui-sans-serif, system-ui, sans-serif!important;font-size:0.875rem!important;font-weight:500!important;line-height:1.25!important;color:#101075!important;background-color:#ffffff!important;border:1px solid #101075!important;border-radius:0.75rem!important;text-decoration:none!important;box-shadow:none!important;transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,\n transform 0.15s ease;cursor:pointer}.cookbook-colab-button:hover{background-color:#f3f3fa!important;border-color:#2a2a99!important;color:#2a2a99!important;transform:translateY(-1px)}.cookbook-colab-icon{width:1.125rem;height:1.125rem;flex-shrink:0;display:block}.cookbook-colab-label{white-space:nowrap}.cookbook-author-bar{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.625rem;padding:0.625rem 0.875rem;border:1px solid #e2e8f0;border-radius:9999px;background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);box-shadow:0 1px 2px rgba(15, 23, 42, 0.04)}.cookbook-author-by{font-size:0.8125rem;font-weight:500;color:#64748b!important;letter-spacing:0.01em;flex-shrink:0}.cookbook-author-list{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.5rem 0.75rem}.cookbook-author-entry{display:inline-flex;align-items:center;gap:0.5rem}.cookbook-author-separator{color:#cbd5e1!important;font-size:1rem;line-height:1;user-select:none}.cookbook-author-name{font-size:0.9375rem;font-weight:600;color:#101075!important;white-space:nowrap}.cookbook-author-links{display:inline-flex;align-items:center;gap:0.375rem}.cookbook-author-icon-link{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:9999px;color:#475569!important;background:#ffffff;border:1px solid #e2e8f0;text-decoration:none;transition:color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease}.cookbook-author-icon-link:hover{color:#101075!important;border-color:#c7d2fe;background:#eef2ff;transform:translateY(-1px)}.cookbook-author-icon{width:0.95rem;height:0.95rem;display:block}.compare-benchmark-table{overflow-x:auto;border:1px solid #dbe4f0;border-radius:0.75rem;background:#ffffff}.compare-task-switch-controls{display:inline-flex;gap:0.25rem;margin:0 0 1rem;padding:0.25rem;border:1px solid #dbe4f0;border-radius:0.5rem;background:#f8fafc}.compare-task-switch-button{padding:0.45rem 0.8rem;border:0;border-radius:0.35rem;background:transparent;color:#64748b;font-size:0.8125rem;font-weight:600;cursor:pointer}.compare-task-switch-button.is-active{background:#101075;color:#ffffff}.compare-task-panel[aria-hidden=\"true\"]{display:none}.compare-task-panel[aria-hidden=\"false\"]{display:block}.compare-benchmark-table table{display:table!important;width:100%!important;min-width:680px;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed!important}.compare-benchmark-table th:first-child,.compare-benchmark-table td:first-child{width:34%}.compare-benchmark-table th:not(:first-child),.compare-benchmark-table td:not(:first-child){width:13.2%}.compare-benchmark-table-performance table{min-width:0}.compare-benchmark-table-performance th:first-child,.compare-benchmark-table-performance td:first-child{width:50%}.compare-benchmark-table-performance th:not(:first-child),.compare-benchmark-table-performance td:not(:first-child){width:25%}.compare-benchmark-table-speed table{min-width:0}.compare-benchmark-table-speed th:first-child,.compare-benchmark-table-speed td:first-child{width:40%}.compare-benchmark-table-speed th:not(:first-child),.compare-benchmark-table-speed td:not(:first-child){width:20%}.compare-benchmark-table th,.compare-benchmark-table td{padding:0.75rem 1rem;border-bottom:1px solid #e8eef5;white-space:nowrap;text-align:right}.compare-benchmark-table th:first-child,.compare-benchmark-table td:first-child{text-align:left}.compare-benchmark-table th{color:#64748b;background:#f8fafc;font-size:0.75rem;font-weight:700}.compare-benchmark-table td{color:#475569;font-size:0.875rem}.benchmark-config-info{display:inline-block;position:relative;text-align:left;white-space:normal}.benchmark-config-trigger{padding:0;border:0;background:transparent;color:#12213a;cursor:pointer;text-decoration:underline dotted;text-underline-offset:0.2em}.benchmark-config-trigger:focus-visible{outline:2px solid #2855d9;outline-offset:2px}.benchmark-config-popover{position:fixed;z-index:1000;padding:0.75rem;border:1px solid #cbd5e1;border-radius:0.5rem;background:#ffffff;box-shadow:0 8px 24px rgb(15 23 42 / 18%);color:#334155;font-size:0.8125rem;line-height:1.5;text-align:left;white-space:normal}.benchmark-config-popover::before{position:absolute;top:-0.35rem;left:1rem;width:0.6rem;height:0.6rem;border-top:1px solid #cbd5e1;border-left:1px solid #cbd5e1;background:#ffffff;content:\"\";transform:rotate(45deg)}.benchmark-config-popover.is-above::before{top:auto;bottom:-0.35rem;border:0;border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1}.compare-data-types-table .data-type-supported,.compare-data-types-table .data-type-engineering{font-weight:600}.compare-data-types-table .data-type-supported{color:#101075}.compare-data-types-table .data-type-processed{color:#2855d9}.compare-data-types-table .data-type-engineering{color:#a21caf}.compare-benchmark-table tr:last-child td{border-bottom:0}.compare-benchmark-table .compare-table-row-tabpfn td{background:#eef4ff}.compare-benchmark-table .compare-table-row-tabpfn td:first-child{border-left:3px solid #2855d9}.compare-benchmark-table .compare-table-row-xgboost td{background:#fff5e9}.compare-benchmark-table .compare-table-row-xgboost td:first-child{border-left:3px solid #c85c0a}.compare-benchmark-table .compare-table-best{color:#12213a;font-weight:800}.compare-benchmark-note{margin:1rem 0 2rem;color:#64748b;font-size:0.8125rem;line-height:1.55}.compare-choice-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1rem;margin:1.5rem 0 2.5rem}.compare-choice{padding:1.25rem;border:1px solid #dbe4f0;border-radius:0.5rem;background:#f8fbff}.compare-choice-competitor{border-color:#eadfce;background:#fdfaf5}.compare-choice h3{margin:0 0 0.75rem;font-size:0.95rem}.compare-choice ul{margin:0;padding-left:1.1rem;color:#475569;font-size:0.875rem}.compare-choice li{margin:0.5rem 0}@media (max-width: 700px){.compare-choice-grid{grid-template-columns:minmax(0, 1fr)}}.sidebar-group-title{font-size:0.5rem!important;font-weight:600!important}[data-testid=\"sidebar-group-title\"]{font-size:0.5rem!important;font-weight:600!important}.sidebar .group-title{font-size:0.5rem!important;font-weight:600!important}.sidebar-group-title{margin-bottom:0.5rem!important;margin-top:1rem!important}.table-container{width:auto!important;overflow-x:auto!important}.table-container table{width:auto!important;table-layout:auto!important}.table-container table th:first-child,.table-container table td:first-child{text-align:left!important;white-space:nowrap!important;padding-right:1rem!important}.table-container table th:last-child,.table-container table td:last-child{text-align:left!important}.nav-logo{width:27%!important;height:auto}h1,h2,h3,h4,h5,h6{color:#101075!important}.heading-1,.heading-2,.heading-3,.heading-4,.heading-5,.heading-6{color:#101075!important}[data-heading]{color:#101075!important}.heading{color:#101075!important}.main-content,.content,.page-content{background-color:#f8f8f9!important}body,p,div,a,li,td,th{color:#0c0c0c!important}strong,b{font-weight:700!important;color:#0c0c0c!important}.paragraph{color:#0c0c0c!important}a{color:#0c0c0c!important}.sidebar-group-title{font-size:0.5rem!important;font-weight:600!important}[data-testid=\"sidebar-group-title\"]{font-size:0.5rem!important;font-weight:600!important}.sidebar .group-title{font-size:0.5rem!important;font-weight:600!important}.sidebar-group-title{margin-bottom:0.5rem!important;margin-top:1rem!important}.table-container-dc3e57e5{width:100%!important;overflow-x:auto!important}.table-container-dc3e57e5 table{width:100%!important;table-layout:fixed!important}.table-container-dc3e57e5 table th:first-child,.table-container-dc3e57e5 table td:first-child{width:50%!important;text-align:left!important;white-space:nowrap!important;padding-right:1rem!important}.table-container-dc3e57e5 table th:nth-child(2),.table-container-dc3e57e5 table td:nth-child(2){width:50%!important;text-align:left!important}.table-container-nowrap{width:100%!important;overflow-x:auto!important}.table-container-nowrap table{width:auto!important;table-layout:auto!important}.table-container-nowrap table th,.table-container-nowrap table td{white-space:nowrap!important;text-align:left!important;padding-right:1rem!important}.table-container-nowrap table th:first-child,.table-container-nowrap table td:first-child{width:auto!important;padding-right:1.5rem!important}.metering-operations th,.metering-operations td{padding:0.75rem 1rem}.metering-operations thead th{font-weight:700}#banner{background:linear-gradient(90deg, #101075 0%, #1e3a8a 60%, #2563eb 100%)!important;font-size:0.875rem;letter-spacing:0.01em}#banner,#banner *{color:#ffffff!important}#banner strong{font-weight:700}#banner a{color:#ffffff!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255, 255, 255, 0.6);transition:text-decoration-color 0.15s ease}#banner a:hover{text-decoration-color:#ffffff}.dlai-course{display:grid;grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);gap:1.5rem;margin:2rem 0;padding:1.5rem;background:#ffffff;border:2px solid #f65b66;border-radius:1rem}.dlai-course-media{position:relative}.dlai-course-video{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0.75rem}.dlai-course-logo{display:block;flex-shrink:0;height:1.875rem;width:auto;margin:0}.dlai-course-heading{display:flex;align-items:center;flex-wrap:wrap;gap:0 0.375rem}.dlai-course-eyebrow{margin:0;font-size:0.75rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;opacity:0.85}.dlai-course-title{margin:0.25rem 0 1rem;font-size:1.25rem;font-weight:700;line-height:1.3}.dlai-course-description{margin:0;font-size:0.9rem;line-height:1.6}.dlai-course-cta{display:inline-block;margin-top:1rem;padding:0.5rem 1rem;background:#f65b66;border-radius:0.75rem;color:#ffffff!important;font-size:0.875rem;font-weight:600;text-decoration:none!important;transition:background-color 0.15s ease}.dlai-course-cta:hover{background:#e0434f}@media (max-width: 768px){.dlai-course{grid-template-columns:1fr}.dlai-course-media{aspect-ratio:16 / 9}}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]{display:inline-flex!important;align-items:center;gap:0.625rem;padding:0.5rem 1rem!important;font-size:0.875rem!important;font-weight:500!important;color:#101075!important;background-color:#ffffff!important;border:1px solid #101075!important;border-radius:0.75rem!important;text-decoration:none!important;transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;cursor:pointer}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]::after{content:\"\";display:inline-block;width:6px;height:6px;border-right:1.5px solid #101075;border-bottom:1.5px solid #101075;transform:rotate(-45deg);margin-top:-1px;flex-shrink:0;transition:border-color 0.2s ease}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]:hover{background-color:#f3f3fa!important;border-color:#2a2a99!important;color:#2a2a99!important}#navbar a[href=\"https://priorlabs.ai/contact?utm_source=docs\"]:hover::after{border-right-color:#2a2a99;border-bottom-color:#2a2a99}.research-search-bar{display:flex;flex-direction:column;gap:0.5rem;margin:1.5rem 0 1rem}.research-search-label{font-size:0.875rem;font-weight:600;color:#334155}.research-search-input-wrap{position:relative;display:flex;align-items:center;width:100%;max-width:32rem}.research-search-icon{position:absolute;left:0.75rem;width:1.125rem;height:1.125rem;color:#94a3b8;pointer-events:none}.research-search-input{width:100%;padding:0.625rem 0.75rem 0.625rem 2.375rem;border:1px solid #cbd5e1;border-radius:0.75rem;background:#ffffff;color:#0f172a;font-size:0.9375rem;line-height:1.375rem;transition:border-color 0.15s ease, box-shadow 0.15s ease}.research-search-input::placeholder{color:#94a3b8}.research-search-input:focus{outline:none;border-color:#101075;box-shadow:0 0 0 3px rgba(16, 16, 117, 0.12)}.research-filter-bar{display:flex;flex-direction:column;align-items:flex-start;gap:0.75rem;margin:1.5rem 0 1rem}.research-filter-label{font-size:0.875rem;font-weight:600;color:#334155}.research-tag-filters{display:flex;flex-wrap:wrap;gap:0.5rem;align-items:center}.research-tag-filter-btn,.research-tag-filter-clear{display:inline-flex;align-items:center;padding:0.375rem 0.75rem;border-radius:9999px;border:1px solid #cbd5e1;background:#ffffff;color:#334155;font-size:0.8125rem;font-weight:600;line-height:1.25rem;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.research-tag-filter-btn:hover,.research-tag-filter-clear:hover{border-color:#101075;color:#101075}.research-tag-filter-btn.is-active{background:#101075;border-color:#101075;color:#ffffff}.research-tag-filter-clear{border-style:dashed}.research-count{font-size:0.8125rem;font-weight:500;color:#64748b;margin:0 0 1rem}.research-grid{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1rem}@media (max-width: 900px){.research-grid{grid-template-columns:minmax(0, 1fr)}}.research-tile{display:flex!important;flex-direction:column;gap:0.75rem;padding:1.25rem 1.25rem 1rem;border:1px solid #e2e8f0;border-radius:0.75rem;background:#ffffff;color:inherit!important;text-decoration:none!important;transition:border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;height:100%}.research-tile.is-hidden{display:none!important}.research-tile:hover{border-color:#101075;box-shadow:0 6px 20px rgba(16, 16, 117, 0.08);transform:translateY(-1px)}.research-tile-cta{background:linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);border-color:#c7d2fe;border-style:dashed}.research-tile-cta:hover{border-style:solid}.research-tile-cta .research-tile-meta{color:#101075;font-weight:600;text-transform:none;letter-spacing:0;font-size:0.8125rem}.research-tile-header{display:flex;flex-wrap:wrap;gap:0.375rem}.research-tag-pill{display:inline-flex;align-items:center;padding:0.125rem 0.5rem;border-radius:9999px;background:#eef2ff;color:#101075;font-size:0.75rem;font-weight:600;line-height:1.25rem}.research-tile-title{margin:0;font-size:1rem;font-weight:600;line-height:1.35;color:#0f172a!important}.research-tile-description{margin:0;color:#475569;font-size:0.9375rem;line-height:1.55;flex-grow:1}.research-tile-footer{display:flex;flex-direction:column;gap:0.25rem;margin-top:0.25rem;padding-top:0.75rem;border-top:1px solid #f1f5f9;font-size:0.8125rem;color:#64748b}.research-tile-authors{font-weight:500;color:#334155}.research-tile-meta{color:#94a3b8;font-size:0.75rem;text-transform:uppercase;letter-spacing:0.03em}.research-pagination{display:none;align-items:center;justify-content:center;gap:1rem;margin:1.5rem 0 0;width:100%;clear:both;grid-column:1 / -1}.research-pagination.is-visible{display:flex}.research-pagination-btn{display:inline-flex;align-items:center;justify-content:center;min-width:6rem;padding:0.5rem 0.875rem;border:1px solid #cbd5e1;border-radius:0.75rem;background:#ffffff;color:#334155;font-size:0.875rem;font-weight:600;line-height:1.25rem;cursor:pointer;transition:background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease}.research-pagination-btn:hover:not(:disabled){border-color:#101075;color:#101075}.research-pagination-btn:disabled{cursor:not-allowed;opacity:0.45}.research-pagination-status{font-size:0.875rem;font-weight:600;color:#475569}.python-reference-table table{width:100%!important;min-width:640px;table-layout:fixed!important}.python-reference-table th,.python-reference-table td{white-space:normal!important;overflow-wrap:anywhere;vertical-align:top}.python-reference-table th:nth-child(1){width:20%}.python-reference-table th:nth-child(2){width:20%}.python-reference-table th:nth-child(3){width:16%}.python-reference-table th:nth-child(4){width:44%}.python-reference-table code{white-space:normal;overflow-wrap:anywhere}.python-reference-table code.python-reference-parameter{overflow-wrap:normal;word-break:normal}.python-reference-table [id]{scroll-margin-top:180px}.python-reference-returns table{min-width:0}.python-reference-returns th:nth-child(1){width:32%}.python-reference-returns th:nth-child(2){width:68%}body:has(.python-reference-table) #pagination{gap:1rem}body:has(.python-reference-table) #pagination>a{min-width:0;max-width:48%}body:has(.python-reference-table) #pagination>a span{overflow-wrap:anywhere}body:has(.python-reference-table) #pagination>a svg{flex-shrink:0}.python-reference-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:0.75rem 1rem;margin:2.5rem 0 1rem}.python-reference-heading h2{margin:0!important;min-width:0}.python-reference-heading h2 code{font-size:0.85em;white-space:normal;overflow-wrap:anywhere}.python-reference-source{display:inline-flex;align-items:center;gap:0.375rem;flex-shrink:0;padding:0.25rem 0.5rem;border:1px solid color-mix(in srgb, currentColor 20%, transparent);border-radius:0.375rem;color:inherit!important;font-size:0.75rem;line-height:1.25rem;text-decoration:none!important}.python-reference-source:hover{background:color-mix(in srgb, currentColor 6%, transparent)}.python-reference-type a{font:inherit;padding:0;border-radius:0;background:transparent}"}]}
{"page":{"pagePath":"api-reference/python/tabpfn-client/regressor/configuration","slug":"/api-reference/python/tabpfn-client/regressor/configuration","pageMetadata":{"title":"Constructor and configuration","description":"Configure the hosted TabPFN regressor.","href":"/api-reference/python/tabpfn-client/regressor/configuration"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Configure the hosted TabPFN regressor.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Info,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Info,{children:_jsxs(_components.p,{children:[`Looking for usage documentation? Check out `,_jsx(_components.a,{href:`/capabilities/regression`,children:`Regression`}),`, `,_jsx(_components.a,{href:`/capabilities/thinking-mode`,children:`Thinking mode`}),` and `,_jsx(_components.a,{href:`/capabilities/kv-cache`,children:`KV cache`}),`.`]})}),`\n`,_jsxs(`div`,{className:`python-reference-heading`,children:[_jsx(Heading,{level:`2`,id:`constructor`,children:_jsx(_components.code,{children:`TabPFNRegressor`})}),_jsxs(`a`,{className:`python-reference-source`,href:`https://github.com/PriorLabs/tabpfn-client/blob/ce678cec44dc715f4d835a44990a8f5f115b7acc/src/tabpfn_client/estimator.py#L1104`,\"aria-label\":`View source for TabPFNRegressor`,children:[_jsx(`span`,{\"aria-hidden\":`true`,children:`\u003c/>`}),` View source `,_jsx(`span`,{\"aria-hidden\":`true`,children:`↗`})]})]}),`\n`,_jsx(_components.p,{children:`Hosted TabPFN regressor with a scikit-learn-compatible interface.`}),`\n`,_jsx(_components.p,{children:`Construct a TabPFN regressor.`}),`\n`,_jsxs(_components.p,{children:[`This constructs a regressor using the latest model and settings. If you would\nlike to use a previous model version, use `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/model-selection-and-persistence#create-default-for-version`,children:_jsx(_components.code,{children:`create_default_for_version()`})}),`\ninstead. You can also use `,_jsx(_components.code,{children:`model_path`}),` to specify a particular model.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`23`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`TabPFNRegressor(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` model_path: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` n_estimators: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`int`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` softmax_temperature: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`float`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` average_before_softmax: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`bool`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ignore_pretraining_limits: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`bool`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inference_precision: Literal[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"autocast\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"auto\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` random_state: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`int`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inference_config: dict[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, Any] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` categorical_features_indices: list[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fit_mode: FitModeLiteral `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` paper_version: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`bool`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` thinking_mode: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`bool`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` False`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` thinking_effort: ThinkingEffort `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` thinking_timeout_s: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`float`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` thinking_metric: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` group_col: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` list[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time_col: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` group_time_col: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` api_mode: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`ApiMode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ApiMode.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`AUTO`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client_options: ClientOptions `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` None`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` text_handling: `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`TextHandling`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"advanced\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(Accordion,{title:`Type aliases`,id:`type-aliases`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`TextHandling `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Literal[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"advanced\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"simple\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`]})})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Parameters`})}),`\n`,_jsx(`div`,{className:`python-reference-table`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-model-path`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`model_`,_jsx(`wbr`,{}),`path`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`str | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`The name of the model to use. “auto” (or `,_jsx(_components.code,{children:`None`}),`) lets the server pick the latest default model; “default” is accepted as a backward-compatible alias. Use `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/model-selection-and-persistence#create-default-for-version`,children:_jsx(_components.code,{children:`create_default_for_version()`})}),` to pin to a specific major version, and `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/model-selection-and-persistence#list-available-models`,children:_jsx(_components.code,{children:`list_available_models()`})}),` for the accepted names.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-n-estimators`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`n_`,_jsx(`wbr`,{}),`estimators`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`int | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`The number of estimators in the TabPFN ensemble. We aggregate the predictions of `,_jsx(_components.code,{children:`n_estimators`}),`-many forward passes of TabPFN. Each forward pass has (slightly) different input data. Think of this as an ensemble of `,_jsx(_components.code,{children:`n_estimators`}),`-many “prompts” of the input data. The server accepts at most 8. If `,_jsx(_components.code,{children:`None`}),`, it applies the model’s default:`,_jsx(`br`,{}),_jsx(`br`,{}),`- v3.5 (`,_jsx(_components.code,{children:`\"v3.5_default\"`}),`, the default model): 8.`,_jsx(`br`,{}),`- v3.5-fast (`,_jsx(_components.code,{children:`\"v3.5-fast_default\"`}),`): 4.`,_jsx(`br`,{}),`- v3 (`,_jsx(_components.code,{children:`\"v3_default\"`}),`): 8, raised on wide datasets until every feature is seen by at least one estimator, up to 32.`,_jsx(`br`,{}),_jsx(`br`,{}),`These are server defaults and may change with server releases.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-softmax-temperature`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`softmax_`,_jsx(`wbr`,{}),`temperature`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`float | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`The temperature for the softmax function. This is used to control the confidence of the model’s predictions. Lower values make the model’s predictions more confident. This is only applied when predicting during a post-processing step. Set `,_jsx(_components.code,{children:`softmax_temperature=1.0`}),` for no effect. If `,_jsx(_components.code,{children:`None`}),`, the server default is used.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-average-before-softmax`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`average_`,_jsx(`wbr`,{}),`before_`,_jsx(`wbr`,{}),`softmax`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`bool | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`Only used if `,_jsx(_components.code,{children:`n_estimators > 1`}),`. Whether to average the predictions of the estimators before applying the softmax function. This can help to improve predictive performance when calibrating the model’s confidence. This is only applied when predicting during a post-processing step. If `,_jsx(_components.code,{children:`None`}),`, the server default is used.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-ignore-pretraining-limits`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`ignore_`,_jsx(`wbr`,{}),`pretraining_`,_jsx(`wbr`,{}),`limits`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`False`})}),_jsx(_components.td,{children:`Whether to ignore the pre-training limits of the model. The TabPFN models have been pre-trained on a specific range of input data. If the input data is outside of this range, the model may not perform well. You may ignore our limits to use the model on data outside the pre-training range.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-inference-precision`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`inference_`,_jsx(`wbr`,{}),`precision`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`Literal[“autocast”, “auto”] | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`The precision to use for inference. This can dramatically affect the speed and reproducibility of the inference. `,_jsx(_components.code,{children:`\"autocast\"`}),` enables mixed-precision autocast; `,_jsx(_components.code,{children:`\"auto\"`}),` decides based on the device. If `,_jsx(_components.code,{children:`None`}),`, the server default is used.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-random-state`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`random_`,_jsx(`wbr`,{}),`state`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`int | None`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`0`})}),_jsxs(_components.td,{children:[`Controls the randomness of the model. Pass an int for reproducible results; pass `,_jsx(_components.code,{children:`None`}),` to use a fresh random seed each run.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-inference-config`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`inference_`,_jsx(`wbr`,{}),`config`]})]}),_jsxs(_components.td,{children:[_jsx(`code`,{className:`python-reference-type`,children:`dict[str, Any] | None`}),_jsx(`br`,{}),_jsxs(_components.a,{href:`/api-reference/python/tabpfn/inference-config#inferenceconfig`,children:[_jsx(`code`,{children:`InferenceConfig`}),` options`]})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`For advanced users, additional advanced arguments that adjust the behavior of the model interface. See `,_jsx(_components.code,{children:`InferenceConfig`}),` in the tabpfn package for details and options. For the client, the `,_jsx(_components.code,{children:`inference_config`}),` and the preprocess transforms need to be dictionaries.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-categorical-features-indices`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`categorical_`,_jsx(`wbr`,{}),`features_`,_jsx(`wbr`,{}),`indices`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`list[int] | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`The indices of the columns that should be treated as categorical. If `,_jsx(_components.code,{children:`None`}),`, the model infers which columns are categorical.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-fit-mode`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`fit_`,_jsx(`wbr`,{}),`mode`]})]}),_jsx(_components.td,{children:_jsxs(`code`,{className:`python-reference-type`,children:[_jsxs(_components.a,{href:`/api-reference/python/tabpfn-client/configuration#fitmodeliteral`,children:[`Fit`,_jsx(`wbr`,{}),`Mode`,_jsx(`wbr`,{}),`Literal`]}),` | None`]})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`Controls what the server persists at fit time. `,_jsx(_components.code,{children:`None`}),` defers to the server default, which is “fit_preprocessors”.`,_jsx(`br`,{}),_jsx(`br`,{}),`- If `,_jsx(_components.code,{children:`\"fit_preprocessors\"`}),`, only the preprocessing state is fitted, so every predict re-runs the forward pass from the uploaded train set.`,_jsx(`br`,{}),`- If `,_jsx(_components.code,{children:`\"fit_with_cache\"`}),`, a server-side KV cache is additionally built and persisted, keyed by the resulting fitted-train-set id. Later predicts against that id (stored on the estimator as `,_jsx(_components.code,{children:`model_id_`}),`, and persisted across runs by `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/model-selection-and-persistence#save-model`,children:_jsx(_components.code,{children:`save_model()`})}),`) are served from the cache instead of re-fitting.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-paper-version`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`paper_`,_jsx(`wbr`,{}),`version`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`False`})}),_jsxs(_components.td,{children:[`If `,_jsx(_components.code,{children:`True`}),`, will use the model described in the paper, instead of the newest version available on the API, which e.g. handles text features better. Cannot be combined with thinking mode.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-thinking-mode`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`thinking_`,_jsx(`wbr`,{}),`mode`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`False`})}),_jsxs(_components.td,{children:[`If `,_jsx(_components.code,{children:`True`}),`, spend extra fit-time compute for higher precision. Equivalent to passing `,_jsx(_components.code,{children:`thinking_effort=\"medium\"`}),`; setting any `,_jsx(_components.code,{children:`thinking_effort`}),` value also enables thinking, so this flag is optional when you’ve set the level explicitly.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-thinking-effort`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`thinking_`,_jsx(`wbr`,{}),`effort`]})]}),_jsx(_components.td,{children:_jsxs(`code`,{className:`python-reference-type`,children:[_jsxs(_components.a,{href:`/api-reference/python/tabpfn-client/configuration#thinkingeffort`,children:[`Thinking`,_jsx(`wbr`,{}),`Effort`]}),` | None`]})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`Effort level for thinking mode, from least to most compute: “micro”, “mini”, “low”, “medium”, “high”, “xhigh”, “max”. When set, thinking is enabled (you don’t also need `,_jsx(_components.code,{children:`thinking_mode=True`}),`). When `,_jsx(_components.code,{children:`None`}),` and `,_jsx(_components.code,{children:`thinking_mode=True`}),`, defaults to “medium”.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-thinking-timeout-s`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`thinking_`,_jsx(`wbr`,{}),`timeout_`,_jsx(`wbr`,{}),`s`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`float | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsx(_components.td,{children:`Budget for the fit, in seconds. Only consulted when thinking is enabled. Capped at 2400.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-thinking-metric`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`thinking_`,_jsx(`wbr`,{}),`metric`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`str | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`Optimization metric for the fit. Only consulted when thinking is enabled.`,_jsx(`br`,{}),_jsx(`br`,{}),`Regression: “r2”, “mean_squared_error”, “root_mean_squared_error”, “mean_absolute_error”, “median_absolute_error”, “mean_absolute_percentage_error”, “symmetric_mean_absolute_percentage_error”, “spearmanr”, “pearsonr”.`,_jsx(`br`,{}),_jsx(`br`,{}),`Aliases “mse”, “rmse”, “mae”, “mape”, “smape” are also accepted.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-group-col`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`group_`,_jsx(`wbr`,{}),`col`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`str | list[str] | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`New since 0.6.0. Column(s) of `,_jsx(_components.code,{children:`X`}),` that identify groups of related rows, e.g. a patient or a session id. During the fit, the rows of one group are never split between training and validation. The fit may also use the other rows of a group to predict a row of it. Requires thinking mode, and `,_jsx(_components.code,{children:`X`}),` passed to `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#fit`,children:_jsx(_components.code,{children:`fit`})}),` and `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#predict`,children:_jsx(_components.code,{children:`predict`})}),` must be a pandas DataFrame that holds the column(s).`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-time-col`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`time_`,_jsx(`wbr`,{}),`col`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`str | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`New since 0.6.0. Column of `,_jsx(_components.code,{children:`X`}),` that holds time, as datetimes or numbers. During the fit, validation uses contiguous blocks of time. Cannot be combined with `,_jsx(_components.code,{children:`group_col`}),`. Requires thinking mode, and `,_jsx(_components.code,{children:`X`}),` must be a pandas DataFrame that holds the column.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-group-time-col`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`group_`,_jsx(`wbr`,{}),`time_`,_jsx(`wbr`,{}),`col`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:`str | None`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsxs(_components.td,{children:[`New since 0.6.0. Column of `,_jsx(_components.code,{children:`X`}),` that orders the rows within a group. Requires `,_jsx(_components.code,{children:`group_col`}),` and thinking mode, and `,_jsx(_components.code,{children:`X`}),` must be a pandas DataFrame that holds the column.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-api-mode`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`api_`,_jsx(`wbr`,{}),`mode`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:_jsxs(_components.a,{href:`/api-reference/python/tabpfn-client/configuration#apimode`,children:[`Api`,_jsx(`wbr`,{}),`Mode`]})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ApiMode.AUTO`})}),_jsxs(_components.td,{children:[`How the client calls the API.`,_jsx(`br`,{}),_jsx(`br`,{}),`- `,_jsx(_components.code,{children:`SYNC`}),`: for small workloads, where latency matters. The client waits on one open request.`,_jsx(`br`,{}),`- `,_jsx(_components.code,{children:`ASYNC`}),`: for larger workloads. The server runs the work as a background job, and the client polls it until it is done.`,_jsx(`br`,{}),`- `,_jsx(_components.code,{children:`AUTO`}),`: `,_jsx(_components.code,{children:`ASYNC`}),` for large workloads, `,_jsx(_components.code,{children:`SYNC`}),` otherwise. A fit runs as a job for a large training set. A prediction runs as a job once the fit’s training rows or the rows to predict reach the thresholds the server sets; a model fitted with `,_jsx(_components.code,{children:`fit_mode=\"fit_with_cache\"`}),` predicts with one request.`,_jsx(`br`,{}),_jsx(`br`,{}),`In every mode `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#fit`,children:_jsx(_components.code,{children:`fit()`})}),` and `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#predict`,children:_jsx(_components.code,{children:`predict()`})}),` return once the work is done. A thinking-mode fit always runs as a background job, as do `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#submit-fit`,children:_jsx(_components.code,{children:`submit_fit()`})}),` and `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#submit-predict`,children:_jsx(_components.code,{children:`submit_predict()`})}),`, whatever this setting is. In every mode, `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#fit`,children:_jsx(_components.code,{children:`fit()`})}),` waits for a thinking-mode fit for at most `,_jsx(_components.code,{children:`TABPFN_CLIENT_ASYNC_POLL_TIMEOUT`}),` seconds: by default the server’s 2 hours, which outlasts the server’s own deadline for a fit. Against a server that does not run predictions as background jobs, `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#predict`,children:_jsx(_components.code,{children:`predict()`})}),` sends one request in every mode.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-client-options`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`client_`,_jsx(`wbr`,{}),`options`]})]}),_jsx(_components.td,{children:_jsxs(`code`,{className:`python-reference-type`,children:[_jsxs(_components.a,{href:`/api-reference/python/tabpfn-client/configuration#clientoptions`,children:[`Client`,_jsx(`wbr`,{}),`Options`]}),` | None`]})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsx(_components.td,{children:`Client specific options (e.g. timeout, headers).`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(`span`,{id:`constructor-text-handling`}),_jsxs(`code`,{className:`python-reference-parameter`,children:[`text_`,_jsx(`wbr`,{}),`handling`]})]}),_jsx(_components.td,{children:_jsx(`code`,{className:`python-reference-type`,children:_jsxs(_components.a,{href:`/api-reference/python/tabpfn-client/configuration#texthandling`,children:[`Text`,_jsx(`wbr`,{}),`Handling`]})})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`\"advanced\"`})}),_jsx(_components.td,{children:`Text-processing preset. Both choices support text. Advanced preserves the default processing; simple is an alternative whose accuracy depends on the dataset. Applies when preprocessing is enabled.`})]})]})]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Usage guidance`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`TabPFN-3 and later versions support up to 1,000,000 rows, subject to\nfeature count and model/API limits.`}),`\n`,_jsxs(_components.li,{children:[`For large datasets, use per-estimator subsampling,\ne.g. `,_jsx(_components.code,{children:`inference_config={\"SUBSAMPLE_SAMPLES\": 100_000}`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Pass raw pandas DataFrames to `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#fit`,children:_jsx(_components.code,{children:`fit`})}),` and `,_jsx(_components.a,{href:`/api-reference/python/tabpfn-client/regressor/fitting-and-prediction#predict`,children:_jsx(_components.code,{children:`predict`})}),`. Categorical\nstrings/categories, raw text, and missing feature values are handled\nautomatically; no manual integer/one-hot encoding, imputation, scaling,\nor outlier removal is needed.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`scikit-learn-configuration`,children:`Scikit-learn configuration`}),`\n`,_jsxs(_components.p,{children:[`Use inherited `,_jsx(_components.a,{href:`https://scikit-learn.org/stable/modules/generated/sklearn.base.BaseEstimator.html#sklearn.base.BaseEstimator.get_params`,children:_jsx(_components.code,{children:`get_params`})}),` and `,_jsx(_components.a,{href:`https://scikit-learn.org/stable/modules/generated/sklearn.base.BaseEstimator.html#sklearn.base.BaseEstimator.set_params`,children:_jsx(_components.code,{children:`set_params`})}),` to inspect or update constructor settings.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Constructor and configuration","description":"Configure the hosted TabPFN regressor.","href":"/api-reference/python/tabpfn-client/regressor/configuration"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"TabPFNRegressor","slug":"constructor","depth":2,"children":[]},{"title":"Scikit-learn configuration","slug":"scikit-learn-configuration","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/priorlabs/dc47dfb9d8e46daa/cookieyes.js","/_mintlify/custom/priorlabs/d8ce73b7f7a5de7b/posthog-consent.js","/_mintlify/custom/priorlabs/bd145ba8c5f78a12/cookbook-filter.js","/_mintlify/custom/priorlabs/4fffc985e576f41c/research-filter.js","/_mintlify/custom/priorlabs/09720b48fd3a180c/tabarena-switch.js"],"subdomain":"priorlabs","siteName":"Prior Labs","title":"Constructor and configuration - Prior Labs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T13:18:58.679Z","originalFileLocation":"api-reference/python/tabpfn-client/regressor/configuration.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Configure the hosted TabPFN regressor.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prior Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Constructor and configuration - Prior Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Configure the hosted TabPFN regressor.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prior Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://priorlabs.mintlify.site/_mintlify/api/og/v2?division=TabPFNRegressor\u0026amp;title=Constructor+and+configuration\u0026amp;description=Configure+the+hosted+TabPFN+regressor.\u0026amp;theme=cfa6251b37c93e730460b4c0\u0026amp;signature=e476a386008c540b91841539d67a342acfc26771765c1ed2699ba714f93677cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Constructor and configuration - Prior Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Configure the hosted TabPFN regressor.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://priorlabs.mintlify.site/_mintlify/api/og/v2?division=TabPFNRegressor\u0026amp;title=Constructor+and+configuration\u0026amp;description=Configure+the+hosted+TabPFN+regressor.\u0026amp;theme=cfa6251b37c93e730460b4c0\u0026amp;signature=e476a386008c540b91841539d67a342acfc26771765c1ed2699ba714f93677cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/priorlabs/ezqAkuYrXl_TJelR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prior Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#101075\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/python/tabpfn-client/regressor/configuration.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.priorlabs.ai/#organization\",\"name\":\"Prior Labs\",\"url\":\"https://docs.priorlabs.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/priorlabs/t197PY0EpQCr-YHY/logo/light.svg?fit=max\u0026auto=format\u0026n=t197PY0EpQCr-YHY\u0026q=85\u0026s=33643e275cfc08c99769e1719c4f53c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.priorlabs.ai#website\",\"name\":\"Prior Labs\",\"url\":\"https://docs.priorlabs.ai\",\"publisher\":{\"@id\":\"https://docs.priorlabs.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration#webpage\",\"url\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration\",\"name\":\"Constructor and configuration\",\"description\":\"Configure the hosted TabPFN regressor.\",\"dateModified\":\"2026-11-04T13:18:58.679Z\",\"isPartOf\":{\"@id\":\"https://docs.priorlabs.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"tabpfn-client\",\"item\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Constructor and configuration\",\"item\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration#article\",\"headline\":\"Constructor and configuration\",\"name\":\"Constructor and configuration\",\"description\":\"Configure the hosted TabPFN regressor.\",\"url\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration\",\"mainEntityOfPage\":{\"@id\":\"https://docs.priorlabs.ai/api-reference/python/tabpfn-client/regressor/configuration#webpage\"},\"dateModified\":\"2026-11-04T13:18:58.679Z\",\"publisher\":{\"@id\":\"https://docs.priorlabs.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.priorlabs.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prior Labs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Prior Labs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/python/tabpfn-client/regressor/configuration.md","siteName":"Prior Labs","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/priorlabs/tabpfn"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/VJRuU3bSxt"},{"anchor":"Colab Demo","icon":"book","href":"https://colab.research.google.com/github/PriorLabs/TabPFN/blob/main/examples/notebooks/TabPFN_Demo_Local.ipynb"},{"anchor":"Changelog","icon":"clock-rotate-left","href":"/changelog"}]},"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/overview"}]},{"tab":"Cookbook","icon":"hat-chef","pages":[{"title":"Cookbook","href":"/cookbook"}]},{"tab":"API reference","icon":"code","groups":[{"group":"Reference","pages":[{"title":"API reference","href":"/api-reference/overview"}]},{"group":"tabpfn","pages":[{"sidebarTitle":"Overview","title":"tabpfn","href":"/api-reference/python/tabpfn/overview"},{"group":"TabPFNClassifier","expanded":false,"pages":[{"title":"Constructor and configuration","href":"/api-reference/python/tabpfn/classifier/configuration"},{"title":"Fitting and prediction","href":"/api-reference/python/tabpfn/classifier/fitting-and-prediction"},{"title":"Embeddings","href":"/api-reference/python/tabpfn/classifier/embeddings"},{"title":"Batched and differentiable inference","href":"/api-reference/python/tabpfn/classifier/advanced"},{"title":"Persistence and devices","href":"/api-reference/python/tabpfn/classifier/persistence"}]},{"group":"TabPFNRegressor","expanded":false,"pages":[{"title":"Constructor and configuration","href":"/api-reference/python/tabpfn/regressor/configuration"},{"title":"Fitting and prediction","href":"/api-reference/python/tabpfn/regressor/fitting-and-prediction"},{"title":"Embeddings","href":"/api-reference/python/tabpfn/regressor/embeddings"},{"title":"Batched and differentiable inference","href":"/api-reference/python/tabpfn/regressor/advanced"},{"title":"Persistence and devices","href":"/api-reference/python/tabpfn/regressor/persistence"},{"title":"Predictive distributions","href":"/api-reference/python/tabpfn/regressor/predictive-distributions"}]},{"title":"Inference configuration","href":"/api-reference/python/tabpfn/inference-config"},{"title":"Inference tuning","href":"/api-reference/python/tabpfn/inference-tuning"},{"title":"Model versions","href":"/api-reference/python/tabpfn/model-versions"},{"title":"Model persistence","href":"/api-reference/python/tabpfn/model-persistence"},{"title":"Diagnostics and errors","href":"/api-reference/python/tabpfn/diagnostics"},{"group":"Fine-tuning","expanded":false,"pages":[{"title":"Batch and evaluation types","href":"/api-reference/python/tabpfn/finetuning/data"},{"title":"Fine-tuning base class","href":"/api-reference/python/tabpfn/finetuning/base"},{"title":"Fine-tuned classifier","href":"/api-reference/python/tabpfn/finetuning/classifier"},{"title":"Fine-tuned regressor","href":"/api-reference/python/tabpfn/finetuning/regressor"},{"title":"Experiment logging","href":"/api-reference/python/tabpfn/finetuning/logging"}]},{"group":"Preprocessing","expanded":false,"pages":[{"title":"Preprocessing configuration","href":"/api-reference/python/tabpfn/preprocessing/configuration"},{"title":"Preprocessing pipelines","href":"/api-reference/python/tabpfn/preprocessing/pipeline"},{"title":"Preprocessor presets","href":"/api-reference/python/tabpfn/preprocessing/presets"}]}]},{"group":"tabpfn-client","pages":[{"sidebarTitle":"Overview","title":"tabpfn-client","href":"/api-reference/python/tabpfn-client/overview"},{"group":"TabPFNClassifier","expanded":false,"pages":[{"title":"Constructor and configuration","href":"/api-reference/python/tabpfn-client/classifier/configuration"},{"title":"Fitting and prediction","href":"/api-reference/python/tabpfn-client/classifier/fitting-and-prediction"},{"title":"Model selection and persistence","description":"Select model versions and save or restore a hosted classifier.","href":"/api-reference/python/tabpfn-client/classifier/model-selection-and-persistence"}]},{"group":"TabPFNRegressor","expanded":false,"pages":[{"title":"Constructor and configuration","href":"/api-reference/python/tabpfn-client/regressor/configuration"},{"title":"Fitting and prediction","description":"Fit, predict, and inspect server timings with TabPFNRegressor.","href":"/api-reference/python/tabpfn-client/regressor/fitting-and-prediction"},{"title":"Model selection and persistence","href":"/api-reference/python/tabpfn-client/regressor/model-selection-and-persistence"},{"title":"Predictive distributions","href":"/api-reference/python/tabpfn-client/regressor/predictive-distributions"}]},{"title":"Authentication","href":"/api-reference/python/tabpfn-client/authentication"},{"title":"Configuration","href":"/api-reference/python/tabpfn-client/configuration"},{"title":"Usage and costs","href":"/api-reference/python/tabpfn-client/usage-and-costs"},{"title":"UserDataClient","href":"/api-reference/python/tabpfn-client/user-data"},{"group":"Deployment backends","expanded":false,"pages":[{"title":"Self-hosted HTTP","href":"/api-reference/python/tabpfn-client/backends/hosted"},{"title":"SageMaker","href":"/api-reference/python/tabpfn-client/backends/sagemaker"},{"title":"Azure Foundry","href":"/api-reference/python/tabpfn-client/backends/foundry"}]},{"title":"Exceptions","href":"/api-reference/python/tabpfn-client/exceptions"},{"title":"SHAP explanations","href":"/api-reference/python/tabpfn-client/explain"}]},{"group":"tabpfn-extensions","pages":[{"sidebarTitle":"Overview","title":"tabpfn-extensions","href":"/api-reference/python/tabpfn-extensions/overview"},{"group":"Interpretability","root":{"title":"Interpretability","href":"/api-reference/python/tabpfn-extensions/interpretability"},"expanded":false,"pages":[{"title":"Shapley explainers","href":"/api-reference/python/tabpfn-extensions/interpretability/shapley-explainers"},{"title":"Partial dependence","href":"/api-reference/python/tabpfn-extensions/interpretability/partial-dependence"},{"title":"Feature selection","href":"/api-reference/python/tabpfn-extensions/interpretability/feature-selection"},{"title":"Decoder readout","href":"/api-reference/python/tabpfn-extensions/interpretability/decoder-readout"}]},{"title":"Conformal prediction with missing data","href":"/api-reference/python/tabpfn-extensions/cp-missing-data"},{"title":"Hurdle regression","href":"/api-reference/python/tabpfn-extensions/hurdle"},{"title":"Many-class classification","href":"/api-reference/python/tabpfn-extensions/many-class"},{"title":"Embeddings","href":"/api-reference/python/tabpfn-extensions/embedding"},{"group":"Images","root":{"title":"Images","href":"/api-reference/python/tabpfn-extensions/image"},"expanded":false,"pages":[{"title":"Image transformer","href":"/api-reference/python/tabpfn-extensions/image/transformer"},{"title":"Image estimator","href":"/api-reference/python/tabpfn-extensions/image/estimator"}]},{"group":"Unsupervised learning","root":{"title":"Unsupervised learning","href":"/api-reference/python/tabpfn-extensions/unsupervised"},"expanded":false,"pages":[{"title":"Model and fitting","href":"/api-reference/python/tabpfn-extensions/unsupervised/model"},{"title":"Imputation and data generation","href":"/api-reference/python/tabpfn-extensions/unsupervised/imputation"},{"title":"Anomaly detection","href":"/api-reference/python/tabpfn-extensions/unsupervised/outliers"},{"title":"Unsupervised embeddings","href":"/api-reference/python/tabpfn-extensions/unsupervised/embeddings"},{"title":"Unsupervised experiments","href":"/api-reference/python/tabpfn-extensions/unsupervised/experiments"}]},{"title":"Energy-based data generation","href":"/api-reference/python/tabpfn-extensions/tabebm"},{"title":"Bayesian optimization","href":"/api-reference/python/tabpfn-extensions/bayesian-optimization"},{"title":"Conditional randomization tests","href":"/api-reference/python/tabpfn-extensions/pval-crt"},{"title":"Survival analysis","href":"/api-reference/python/tabpfn-extensions/survival"},{"title":"Experiments","href":"/api-reference/python/tabpfn-extensions/benchmarking"},{"title":"Scoring","href":"/api-reference/python/tabpfn-extensions/scoring"},{"title":"Utilities","href":"/api-reference/python/tabpfn-extensions/utils"}]},{"group":"tabpfn-rel","expanded":false,"pages":[{"sidebarTitle":"Overview","title":"tabpfn-rel","href":"/api-reference/python/tabpfn-rel/overview"},{"title":"TabPFNRel","href":"/api-reference/python/tabpfn-rel/estimator"},{"title":"Model backends","href":"/api-reference/python/tabpfn-rel/models"},{"title":"Search spaces","href":"/api-reference/python/tabpfn-rel/search-spaces"},{"group":"Context and queries (RPI)","expanded":false,"pages":[{"title":"Predictive context","href":"/api-reference/python/relarena-core/context"},{"title":"Prediction queries","href":"/api-reference/python/relarena-core/query"},{"title":"Fitted predictor","href":"/api-reference/python/relarena-core/fitted-predictor"},{"title":"Database and task specifications","href":"/api-reference/python/relarena-core/specifications"}]}]},{"group":"REST API","icon":"code","pages":[{"title":"Prepare train set upload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /tabpfn/prepare_train_set_upload","href":"/api-reference/training/prepare-train-set-upload"},{"title":"Get model limits","deprecated":true,"version":null,"openapi":"/api-reference/openapi.json get /tabpfn/get_model_limits","href":"/api-reference/training/get-model-limits"},{"title":"Fit (TabPFN JSON API)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /tabpfn/fit","href":"/api-reference/training/fit-tabpfn-json-api"},{"title":"Prepare test set upload","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /tabpfn/prepare_test_set_upload","href":"/api-reference/prediction/prepare-test-set-upload"},{"title":"Predict (TabPFN JSON API)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /tabpfn/predict","href":"/api-reference/prediction/predict-tabpfn-json-api"}]}]},{"tab":"Blog","icon":"newspaper","href":"https://priorlabs.ai/blog#articles"}]},"basePath":"","title":"Constructor and configuration - Prior Labs","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["10e4515597"],"chunks":["BannerMarkdown-BOAJk9BH.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}