-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
I would like to calculate feature importances using integrated gradients, as I am hoping this calculation will be faster than the SHAP KernelExplainer. Unfortunately, the embeddding layer is non-differentiable, since it's a simple matrix multiplication. This causes a failure in the gradient calculation.
I also tried embedding the categorical variables separately and then feeding the full data into the model. Theoretically, this procedure avoids calculating the gradients for the embedding layer because there is none present. However, when every variable is numeric the preprocesser discards all variables which are 0 from top to bottom. This is not what I want, as I want to train in batches.
I have two questions:
- Is there a way to calculate integrated gradients with embedding layers?
- How can I stop the deeptables pre-processor to discard variables which have non-unique (all zeros) values?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels