Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades TabPFN support and implements a new prediction method priority system. The key changes include updating TabPFN from version 2.0.7 to 2.2.1 (via minimum version 2.1.3), introducing a new predict_logits method that is now prioritized over predict_proba for sklearn-like classifiers, and adding tests to verify the correct prediction function is used for TabPFN models.
- Updated TabPFN dependency from
>=2.0.7to>=2.1.3to support models withpredict_logitsmethod - Introduced
predict_logitsfunction and prioritized it overpredict_probain prediction function selection - Added new test fixtures and test cases to verify TabPFN models use logits-based predictions
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Updates dependency versions including TabPFN (2.0.7 → 2.2.1), filelock, platformdirs, and adds new dependencies for TabPFN (pydantic, posthog, etc.) |
| pyproject.toml | Updates minimum TabPFN version requirement from 2.0.7 to 2.1.3 and clarifies a comment about lightgbm |
| src/shapiq/explainer/utils.py | Adds predict_logits function and prioritizes it over predict_proba in the prediction function selection logic |
| tests/shapiq/fixtures/models.py | Adds two new fixtures (tabpfn_reg_model and tabpfn_clf_model) for testing TabPFN models |
| tests/shapiq/tests_unit/tests_explainer/test_prediction_function.py | Adds new test file to verify that TabPFN classifiers use the predict_logits method |
| CHANGELOG.md | Documents the new feature and clarifies the comment about lightgbm installation issues |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Closes #426
Public API Changes
How Has This Been Tested?
New test case and locally testing.
Checklist
CHANGELOG.md(if relevant for users).