rstudio / keras3

R Interface to Keras
https://keras3.posit.co/
Other
831 stars 282 forks source link

Class Activation Map (CAM) or Saliency Maps for 1 dimensional data (vector) #949

Open saanasum opened 4 years ago

saanasum commented 4 years ago

Is there a way in R-keras to generate CAMs or Saliency Maps for one-dimensional input (e.g. a vector) as described for example for the "keras-vis" package for python?: https://github.com/raghakot/keras-vis/issues/93

I trained a CNN using R-Keras and now want to visualize where the CNN is focusing on when performing class predictions.

P.S.: Once I asked for the 2D option in R-Keras: https://github.com/rstudio/keras/issues/182 --> maybe the code proposed there is useful.

crazyhottommy commented 10 months ago

Hey, I have the exactly the same question. I want to calculate the salicency maps as in this example https://github.com/abidlabs/deep-learning-genomics-primer/blob/master/A_Primer_on_Deep_Learning_in_Genomics_Public.ipynb but with keras in R.