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

PartitionExplainer with non-binary partition_tree #3397

Open
1 of 2 tasks
IMW112 opened this issue Nov 21, 2023 · 0 comments
Open
1 of 2 tasks

PartitionExplainer with non-binary partition_tree #3397

IMW112 opened this issue Nov 21, 2023 · 0 comments
Labels
enhancement Indicates new feature requests

Comments

@IMW112
Copy link

IMW112 commented Nov 21, 2023

Problem Description

Hi,

I would like to use shap to compute Owen values where partition_tree describes an arbitrary coalition structure, e.g., imagine we had three different 'teams' at the first level of the hierarchy, and each team had a variable number of 'players' at the second level.

I have been looking at providing a custom partition_tree array to PartitionExplainer to achieve this, but, as far as I have been able to tell, there is no way to describe a coalition structure other than a binary tree (e.g., a dendrogram resulting from cluster analysis).

Is this a feature that could be added please, or is there some other workaround?

Many thanks

Alternative Solutions

No response

Additional Context

No response

Feature request checklist

  • I have checked the issue tracker for duplicate issues.
  • I'd be interested in making a PR to implement this feature
@IMW112 IMW112 added the enhancement Indicates new feature requests label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

1 participant