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$
  • $\begingroup$ What is the shape of the array/tensor you passed to matplotlib? $\endgroup$ – A Kareem May 14 at 5:51
0
$\begingroup$

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

| improve this answer | |
$\endgroup$
  • $\begingroup$ @Ali Raza Memom Do you have any doubts? $\endgroup$ – user1825567 May 19 at 20:43
0
$\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.

| improve this answer | |
$\endgroup$

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.