Announcing the TensorFlow Dev Summit 2020 Learn more

tf.keras.callbacks.ProgbarLogger

TensorFlow 1 version View source on GitHub

Class ProgbarLogger

Callback that prints metrics to stdout.

Inherits From: Callback

Arguments:

  • count_mode: One of "steps" or "samples". Whether the progress bar should count samples seen or steps (batches) seen.
  • stateful_metrics: Iterable of string names of metrics that should not be averaged over an epoch. Metrics in this list will be logged as-is. All others will be averaged over time (e.g. loss, etc).

Raises:

  • ValueError: In case of invalid count_mode.

__init__

View source

__init__(
    count_mode='samples',
    stateful_metrics=None
)

Initialize self. See help(type(self)) for accurate signature.

Methods

set_model

View source

set_model(model)

set_params

View source

set_params(params)

Compat aliases