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

Improvements to knnshap parallelization #632

Merged
merged 6 commits into from
Jan 13, 2025
Merged

Conversation

mdbenito
Copy link
Collaborator

@mdbenito mdbenito commented Dec 5, 2024

Description

This PR distributes test samples in the parallelization of KNN shapley across workers, instead of processing test points one by one. This reduces the memory cost and the number of processes started.

Changes

  • Uniformly distribute test points across processes
  • Fail with GroupedDatasets

Checklist

  • Wrote Unit tests (if necessary)
  • Updated Documentation (if necessary) -> There's no documentation for the new valuation module yet
  • Updated Changelog
  • If notebooks were added/changed, added boilerplate cells are tagged with "tags": ["hide"] or "tags": ["hide-input"]

@mdbenito mdbenito marked this pull request as ready for review January 13, 2025 18:13
@mdbenito
Copy link
Collaborator Author

@janosg This is a minor PR, tagging you in case you are curious and have time in some distant future :D

@mdbenito mdbenito merged commit ace6b38 into develop Jan 13, 2025
@mdbenito mdbenito deleted the fix/knn-parallelization branch January 13, 2025 18:14
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