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

Pre-Softmax Analysis #5

Open
albermax opened this issue Dec 29, 2017 · 0 comments
Open

Pre-Softmax Analysis #5

albermax opened this issue Dec 29, 2017 · 0 comments

Comments

@albermax
Copy link

Hi Luisa,

I try to create visualizations for the pre-softmax activations. My understanding from the documentation and issue 4 is that I only need to change in line blobnames = ["prob"] to blobnames =["loss3/classifier"] (for Googlenet). Unfortunately this leads an "empty" visualization:

Pre-Softmax:
n02488291_1177jpg_langur_winsize10_condsampl_numsampl10_paddsize2_googlenet
n02917067_1599jpg_bullet train_winsize10_condsampl_numsampl10_paddsize2_googlenet
n01855672_8202jpg_goose_winsize10_condsampl_numsampl10_paddsize2_googlenet

compared to Post-Softmax:
n02488291_1177jpg_langur_winsize10_condsampl_numsampl10_paddsize2_googlenet
n02917067_1599jpg_bullet_train_winsize10_condsampl_numsampl10_paddsize2_googlenet
n01855672_8202jpg_goose_winsize10_condsampl_numsampl10_paddsize2_googlenet

Do I do something wrong?
One thing I noticed is:

/home/bbdc/alber/tmp/zintgraf/DeepVis-PredDiff2/prediction_difference_analysis.py:222: RuntimeWarning: invalid value encountered in log2
oddsTarVal = np.log2(tarVal_laplace/(1-tarVal_laplace))
/home/bbdc/alber/tmp/zintgraf/DeepVis-PredDiff2/prediction_difference_analysis.py:223: RuntimeWarning: invalid value encountered in log2
oddsAvgP = np.log2(avgP_laplace/(1-avgP_laplace))

A further questions regarding my understanding of the code/algorithm. The algorithm shows which parts of an image increase or lower the activation of a neuron, e.g., an output neuron for class c and in that case the the visualization indicates what speaks for and against a class. Where in the code is the neuron selected?
At line 125 for the sensitivity analysis the neuron with the largest activation in the pre-softmax activation is selected. Is there something similar for the prediction difference analysis? To me target_func in line 98 considers whole layers?

Thank you!
Cheers,
Max

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