-
Notifications
You must be signed in to change notification settings - Fork 45
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
Regression Task Scoring #64
Comments
@Lswhiteh, I'm sorry for the lack of information. For purposes of brevity, I assume that the shape of your model's output is
(Because you've attempted to use The score functions you need will be one (or more) of the following: def score_when_increase(output):
return output[:, 0]
def score_when_decrease(output):
return -1.0 * output[:, 0]
def score_when_maintain(output):
# If you want to visualize the region of input that contributes to maintain the output at 0.0
return tf.math.abs(1.0 / (output[:, 0] + tf.keras.backend.epsilon())) For example, if you want to visualize the region of input that contributes the increase output, the usage is: saliency_maps = saliency(score_when_increase, X) If you have any question or any problem, please feel free to ask us. |
This clarified quite a bit for me, thanks for the help! |
Hi all, I'm currently wondering if there's a way to get Saliency maps on a regression task I'm attempting to visualize. I assumed that the "InactiveScore" class would be the way to go, but I get ValueErrors as such:
The text was updated successfully, but these errors were encountered: