Keras comes with a callback for TensorBoard .
You can easily add this behavior to your model, and then simply run the tensogram on top of the registration data.
callbacks = [TensorBoard(log_dir='./logs')] result = model.fit(X, Y, ..., callbacks=callbacks)
And then on your shell:
tensorboard --logdir=/logs
If you need it on your laptop, you can also write your own callback to get indicators during training:
class LogCallback(Callback): def on_epoch_end(self, epoch, logs=None): print(logs["train_accuracy"])
This will ensure accuracy of training at the end of the current era and print it. There is good documentation on the keras official website.
source share