Repository navigation
Conversation
Parquet is smaller and faster to encode, carries missing and non-finite values exactly, and lets an endpoint check a table's size from its metadata before decoding it, so large tables are admitted by their real size. An explicit payload_format="json" keeps working but warns at predict time; the constructor still stores the argument unchanged, so get_params() and clone() behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011EUDq8MGfcUwDxBY5o7GhK
eddiebergman-priorlabs
left a comment
There was a problem hiding this comment.
No chance of this in the main client? Love it
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 856bbf3. Configure here.
| import json | ||
| import time | ||
| import uuid | ||
| import warnings |
There was a problem hiding this comment.
Parquet predict drops fit column names
High Severity
Making Parquet the default now sends feature names on every hosted predict*. _to_parquet_part wraps a numpy X as a DataFrame with integer columns instead of reusing names from X_train_. After a DataFrame fit, an ndarray predict (sklearn contract, and what SHAP/PDP pass) ships train columns like a,b and test columns 0,1, which the endpoint rejects. JSON never sent names, so this path used to work.
Additional Locations (1)
Triggered by learned rule: Parquet payloads must reuse fit-time column names on predict
Reviewed by Cursor Bugbot for commit 856bbf3. Configure here.
DeprecationWarning is hidden by default unless raised from __main__, so calls from inside Pipeline or cross_validate never showed it. A Content-Type in extra_headers replaced the multipart one httpx writes, dropping its boundary, so the endpoint could not parse the body. The client now sets Content-Type from the payload format on both paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011EUDq8MGfcUwDxBY5o7GhK


The self-hosted estimators (
tabpfn_client.hosted) now default topayload_format="parquet". Passingpayload_format="json"still works but emits aFutureWarning; JSON payloads will be removed in a future release.Why Parquet: it is smaller and faster to encode, carries missing and non-finite values exactly (JSON needs the non-standard
NaN/Infinityliterals), and lets an endpoint check a table's size from its metadata before decoding it, so large tables are admitted by their real size.Decisions:
"json"can produce JSON now, so the plain value is enough, andget_params()/clone()see the argument unchanged.predict*, beside the existingtabpfn_systemscheck, not in__init__: sklearn estimators must not validate in the constructor.FutureWarning, notDeprecationWarning, which Python hides unless raised from__main__, so calls from insidePipelineorcross_validatewould never show it;stacklevelpoints at the caller'spredict*line.payload_format="json"until removal. Changelog:470.breaking.md,470.deprecated.md.Content-Typeon both paths, like the routing headers: aContent-Typeinextra_headers(any casing) is dropped, so httpx's multipart header keeps its boundary, and the JSON path always sendsapplication/json. Changelog:470.changed.md.Tests: the shared test helpers decode either wire format, so the existing request-shape tests now run on the Parquet default. New tests cover the default, no warning on
"parquet", the warning on explicit"json"(none at construction orfit),get_params()/clone()for both values, and a userContent-Typebeing ignored on both paths (Parquet boundary intact and the body still parses).🤖 Generated with Claude Code