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

How to use deeplift for regression #126

Open
Comp-Engr18 opened this issue Oct 14, 2021 · 1 comment
Open

How to use deeplift for regression #126

Comp-Engr18 opened this issue Oct 14, 2021 · 1 comment

Comments

@Comp-Engr18
Copy link

My last layer uses tanh activation function for continuous variable prediction like steering angle. What changes I need in deeplift to use deeplift for my scenario i.e., regression problem.

@AvantiShri
Copy link
Collaborator

AvantiShri commented Oct 20, 2021

Hi @Comp-Engr18, in theory you may not have to make changes; however this particular codebase was set up to work with a fairly old version of tensorflow/keras, and thus may not work with your model for that reason, so my first suggestion would be to look at the external implementations here: https://github.com/kundajelab/deeplift#my-model-architecture-is-not-supported-by-this-deeplift-implementation-what-should-i-do.

My second recommendation would be to compute the explanation with respect to the linear input that feeds into the tanh nonlinearity (i.e. what would be analogous to the logit of a sigmoid output) to avoid saturation effects (as discussed in the deeplift paper in the section "Choice of Target Layer"); however, that is a more subjective decision.

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

No branches or pull requests

2 participants