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

Input format on tf_explain for ExtractActivations #59

Closed
elviejokike opened this issue Jan 10, 2020 · 1 comment
Closed

Input format on tf_explain for ExtractActivations #59

elviejokike opened this issue Jan 10, 2020 · 1 comment

Comments

@elviejokike
Copy link

elviejokike commented Jan 10, 2020

The data passes to the explain method (when using ExtractActivations) must be fixed to

data_for_activation = (np.array([img]), None)
grid = explainer.explain(data_for_activation, model, ['conv1'])

https://github.com/PracticalDL/Practical-Deep-Learning-Book/blob/master/code/chapter-5/3-tf-explain.ipynb

@sidgan
Copy link
Collaborator

sidgan commented Jan 13, 2020

Thank you for pointing out the error. Fixed via #62

@sidgan sidgan closed this as completed Jan 13, 2020
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