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

Location of TSR algorithm in the code #2

Open
itsmemala opened this issue Nov 22, 2022 · 0 comments
Open

Location of TSR algorithm in the code #2

itsmemala opened this issue Nov 22, 2022 · 0 comments

Comments

@itsmemala
Copy link

itsmemala commented Nov 22, 2022

Hello, I would like to apply the TSR method to my model but I'm not able to find the exact location of the algorithm in the scripts. Could you point me to the lines that implement the algorithm please? Is it the function - GivenAttGetRescaledSaliency()?
If I understand right, in interpret.py, line 138 masks all features for a time step (per TSR algorithm) and therefore should be
'mask[i,:] = 0' and not 'mask[i,:] = i' ?

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

1 participant