-
Notifications
You must be signed in to change notification settings - Fork 162
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
Can we get all m_{xy} or C_{xy} values from the model for all layers? #37
Comments
Hi younglululu, I had to refresh my memory, but the answer is yes! find_scores_layer_idx (for a sequential model) and find_scores_layer_name (for a graph model) can actually be lists: https://github.com/kundajelab/deeplift/blob/master/deeplift/models.py#L225-L227 I would have changed the names of the arguments to reflect this, but I didn't want to break the API. Let me know if you have any issues. |
Oh, one more followup remark: for all layers except the input layer, multipliers are split up into pos_mxts and neg_mxts (as needed by the RevealCancel rule described in the DeepLIFT paper). For layers that act as inputs to nonlinearities, these will be different, but for layers that act as inputs to a linear layer, these should be the same. Because
Let me know if that works for your purposes, and if it does, would be happy to accept a pull request to the main code base! |
No description provided.
The text was updated successfully, but these errors were encountered: