inouye-lab / ShapleyExplanationNetworks

Implementation of the paper "Shapley Explanation Networks"
MIT License
84 stars 16 forks source link

syntax error & more code request #1

Closed suradaBANG closed 3 years ago

suradaBANG commented 3 years ago

Hi, I'm trying to using ShapNet to visualize a CNN classifier.

Anyway, thanks a lot for the project! Wish you all the best!

RuiWang1998 commented 3 years ago

Hi,

  1. Thanks for pointing out the error! We'll fix that soon!

  2. To generate the figure, all you need to do is to train a DeepConvShapNet as shown in the code with different regularizations! For the first row you need none of it. For the second row, you need to perform l-1 regularization on the explanations at the end of the forward pass (before the summation that brings out the outputs), and, for the third row, on the explanations on every layer. For plotting, we just mask out pixel values close to zero.

  3. Yes it is definitely in the work! We have been a bit busy but the experimental code will be released soon!

suradaBANG commented 3 years ago

Thank you for your work!