Skip to content

Commit 03601d8

Browse files
committed
Add feature ablation to Insights
1 parent 89dcb0b commit 03601d8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

captum/insights/config.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from captum.attr import (
55
Deconvolution,
66
DeepLift,
7+
FeatureAblation,
78
GuidedBackprop,
89
InputXGradient,
910
IntegratedGradients,
@@ -31,6 +32,7 @@ class StrEnumConfig(NamedTuple):
3132
InputXGradient,
3233
IntegratedGradients,
3334
Saliency,
35+
FeatureAblation,
3436
]
3537

3638
ATTRIBUTION_NAMES_TO_METHODS = {
@@ -43,5 +45,8 @@ class StrEnumConfig(NamedTuple):
4345
IntegratedGradients.get_name(): {
4446
"n_steps": NumberConfig(value=25, limit=(2, None)),
4547
"method": StrEnumConfig(limit=SUPPORTED_METHODS, value="gausslegendre"),
46-
}
48+
},
49+
FeatureAblation.get_name(): {
50+
"perturbations_per_eval": NumberConfig(value=1, limit=(1, 100)),
51+
},
4752
}

0 commit comments

Comments
 (0)