tf.compat.v1.keras.callbacks.TensorBoard

View source on GitHub

Enable visualizations for TensorBoard.

Inherits From: Callback

tf.compat.v1.keras.callbacks.TensorBoard(
    log_dir='./logs', histogram_freq=0, batch_size=32, write_graph=True,
    write_grads=False, write_images=False, embeddings_freq=0,
    embeddings_layer_names=None, embeddings_metadata=None, embeddings_data=None,
    update_freq='epoch', profile_batch=2
)

TensorBoard is a visualization tool provided with TensorFlow.

This callback logs events for TensorBoard, including: * Metrics summary plots * Training graph visualization * Activation histograms * Sampled profiling

If you have installed TensorFlow with pip, you should be able to launch TensorBoard from the command line:

tensorboard --logdir=path_to_your_logs

You can find more information about TensorBoard here.

Arguments:

Raises:

Eager Compatibility

Using the TensorBoard callback will work when eager execution is enabled, with the restriction that outputting histogram summaries of weights and gradients is not supported. Consequently, histogram_freq will be ignored.

Methods

set_model

View source

set_model(
    model
)

Sets Keras model and creates summary ops.

set_params

View source

set_params(
    params
)