Skip to content

Add complete TabPFNv2 usage comments in classification#28

Open
emast4 wants to merge 1 commit intoPriorLabs:mainfrom
emast4:patch-1
Open

Add complete TabPFNv2 usage comments in classification#28
emast4 wants to merge 1 commit intoPriorLabs:mainfrom
emast4:patch-1

Conversation

@emast4
Copy link
Copy Markdown

@emast4 emast4 commented Apr 1, 2026

Existing setup code fails when using TabPFNv2 because ModelVersion is never imported.

Existing setup code fails when using TabPFNv2 because ModelVersion is never imported.
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the classification documentation to include commented-out instructions for using TabPFNv2. The feedback suggests importing ModelVersion directly from the main tabpfn package instead of the internal constants sub-module to adhere to public API best practices.

Comment on lines +17 to +18
# To use TabPFNv2:
# from tabpfn.constants import ModelVersion
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It is generally recommended to use the public API for imports rather than internal sub-modules like constants. In TabPFN v2.x, ModelVersion is exported directly at the package level, so you can import it from tabpfn instead of tabpfn.constants.

Additionally, ensure that when users uncomment this, they also update the model initialization to include the desired device (e.g., device="cuda"), as the create_default_for_version method might otherwise default to CPU.

# To use TabPFNv2:
# from tabpfn import ModelVersion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant