I have trained a binary classification model with CNN, and here is my code
model = Sequential() model.add(Convolution2D(nb_filters, kernel_size[0], kernel_si
Based on all the good answers of this thread, I wrote a library to fetch the output of each layer. It abstracts all the complexity and has been designed to be as user-friendly as possible:
https://github.com/philipperemy/keract
It handles almost all the edge cases
Hope it helps!