Skip to content
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

Tabpfn explainer #302

Merged
merged 8 commits into from
Jan 15, 2025
Merged

Tabpfn explainer #302

merged 8 commits into from
Jan 15, 2025

Conversation

mmschlk
Copy link
Owner

@mmschlk mmschlk commented Jan 14, 2025

This pull request introduces a new explainer class, TabPFNExplainer, and its associated imputer, TabPFNImputer, to the shapiq package. These changes include updates to the initialization and validation processes, as well as modifications to existing classes to accommodate the new explainer. The most important changes include the addition of the new explainer and imputer, updates to the Explainer class initialization, and improvements to data validation.

New Explainer and Imputer:

Updates to Explainer Class:

  • shapiq/explainer/_base.py: Modified the Explainer class to include the _validate_data method for data validation and updated the initialization process to dynamically set the explainer class based on the model type. [1] [2]
  • renames _prediction_function to _shapiq_predict_function such that the prediction function which shapiq may add to objects during explanations does not clash and overrides potential _predict_function functions

Integration of New Explainer and Imputer:

@mmschlk mmschlk requested review from hbaniecki and FFmgll and removed request for hbaniecki January 14, 2025 17:08
Copy link
Collaborator

@FFmgll FFmgll left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@mmschlk mmschlk merged commit bd7597f into main Jan 15, 2025
7 of 8 checks passed
@mmschlk mmschlk deleted the tabpfn_explainer branch January 15, 2025 07:11
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.

2 participants