View source on GitHub |
Displays a progress bar.
tf.keras.utils.Progbar(
target,
width=30,
verbose=1,
interval=0.05,
stateful_metrics=None,
unit_name='step'
)
Methods
add
add(
n, values=None
)
update
update(
current, values=None, finalize=None
)
Updates the progress bar.
Args | |
---|---|
current
|
Index of current step. |
values
|
List of tuples: (name, value_for_last_step) . If name is
in stateful_metrics , value_for_last_step will be displayed
as-is. Else, an average of the metric over time will be
displayed.
|
finalize
|
Whether this is the last update for the progress bar. If
None , defaults to current >= self.target .
|