-
Couldn't load subscription status.
- Fork 447
Saliency mapping gradient #577
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
base: master
Are you sure you want to change the base?
Conversation
…h dataloader and models
Applying and visualizing gradient saliency on a basic pyhealth model claissifying image data
…h dataloader and models (cherry picked from commit 858c4f7)
(cherry picked from commit 3bd6860)
Trying to find a version of this that github can render without errors
Still trying to get something that displays correctly in github
Remove temporary branch references from python notebook example import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Can you write a super minimal test case in tests/core?
|
Reasonable, there's probably something small I can test without a full CNN, I'll look at the other tests for options. |
Adding minimal testing of the gradient saliency function
|
I wasn't able to find something without a CNN, but it was simple to create a test with a dummy CNN. Would you like me to make it use a CNN with other pyhealth modules or is this sufficient? Keeping it with something small will keep it running pretty quickly, I noticed some of the unit tests in the broader suite are very slow. |
Goal of this pull request is to add basic gradient saliency mapping in the appropriate location in pyhealth as well as providing a clean python notebook example with a basic CNN since a CNN is required to display the saliency map. Assuming this looks ok, I have a basic LRP saliency mapping and GradCAM to implement next since I already have basic pytorch implementations of those already.