0
$\begingroup$

I am trying to understand how the neural network works. I plotted the intermediate layer activations and I got the following image.

enter image description here

I used the matplotlib library and selected cmap='jet'. I would like to know what is the meaning of these colors? Does the area with color red mean the filter is activated in that region? Then, what about the green, yellow and blue color means?

$\endgroup$
1
  • $\begingroup$ What is the shape of the array/tensor you passed to matplotlib? $\endgroup$
    – A Kareem
    May 14 '20 at 5:51
1
$\begingroup$

It's a heat map, where "hotter" means "higher values". They are very useful for studying CNNs, since they let you see what each convolutional filters see in each image.

Some filters are activated with vertical lines, other with diagonal or with round shapes... the deeper you go into the network, the more complex are the things each layer is looking for. Heatmaps of activations let you do that.

$\endgroup$
1
$\begingroup$

In heat maps, generally reddish regions represents higher values where as bluish ones represent lower.

$\endgroup$
2
  • $\begingroup$ @Ali Raza Memom Do you have any doubts? $\endgroup$ May 19 '20 at 20:43
  • $\begingroup$ thanks for the clarification $\endgroup$ Feb 25 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.