Skip to content

Commit

Permalink
Adding async future functionality to ShapleyValues (#1487)
Browse files Browse the repository at this point in the history
Summary:

This diff implements the attribute_future method for the ShapleyValueSampling class.

Reviewed By: cyrjano

Differential Revision: D68158802
  • Loading branch information
jjuncho authored and facebook-github-bot committed Jan 21, 2025
1 parent b487891 commit 2ad525d
Show file tree
Hide file tree
Showing 4 changed files with 452 additions and 17 deletions.
8 changes: 8 additions & 0 deletions captum/_utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ class FeatureAblationFutureError(Exception):
FeatureAblation attribution call"""

pass


class ShapleyValueFutureError(Exception):
"""This custom error is raised when an error
occurs within the callback chain of a
ShapleyValue attribution call"""

pass
Loading

0 comments on commit 2ad525d

Please sign in to comment.