I'm new to Keras and I intend to store the output of my network for every epoch. To that end, I want to use Tensorbaord to observe the output layer in its environment.
class OutputObserver(Callback):
""""
callback to observe the output of the network
"""
def on_train_begin(self, logs={}):
self.epoch = []
self.out_log = []
def on_epoch_end(self, epoch, logs={}):
self.epoch.append(epoch)
self.out_log.append(self.model.get_layer('Dense03/Output').output)
This will store the outputs tensors into a list. The problem is that I can do neither 1. convert this to a Numpy array so that can be read a CSV, ... file, 2. write a summary using Tensorflow (as Keras does not have this ability) and then analyze the output in Tensorboard.
I would be pleased to hear your opinions on storing and visualizing the output layer in every epoch of training.
Sincerely, Saeed.