Skip to content

Add simple TabPFN example #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 5, 2025
Merged

Add simple TabPFN example #510

merged 11 commits into from
Mar 5, 2025

Conversation

zechengz
Copy link
Member

@zechengz zechengz commented Mar 3, 2025

  • Fixed one doc issue
  • Add a simple script to some classification tasks
    • Support minibatch of training data for the prediction with minibatch of test data
    • Titanic - Accuracy: 0.8202
    • Mushroom - Accuracy: 1.0000(ok)
    • ForestCoverType - Accuracy: 0.8205 (ok, outperforms some model)
    • KDDCensusIncome - Accuracy: 0.9537 (ok)

Zecheng Zhang added 2 commits March 2, 2025 20:54
@zechengz zechengz merged commit cb0b30a into master Mar 5, 2025
25 checks passed
@zechengz zechengz deleted the zecheng_tabpfn_example branch March 5, 2025 11:06
shuffle=True,
)
X_train = []
train_data = next(iter(train_loader))
Copy link
Contributor

Choose a reason for hiding this comment

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

why only sample random minibatch this way?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's in context learning need some training data (usually thousands) so for now just randomly choose some samples.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, you probably don't need data loader. Just use index select over the original tensor frame.

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

Successfully merging this pull request may close these issues.

4 participants