tf.keras.utils.Progbar
Stay organized with collections
Save and categorize content based on your preferences.
Displays a progress bar.
tf.keras.utils.Progbar(
target,
width=20,
verbose=1,
interval=0.05,
stateful_metrics=None,
unit_name='step'
)
Used in the notebooks
Args |
target
|
Total number of steps expected, None if unknown.
|
width
|
Progress bar width on screen.
|
verbose
|
Verbosity mode, 0 (silent), 1 (verbose), 2 (semi-verbose)
|
stateful_metrics
|
Iterable of string names of metrics that should not
be averaged over time. Metrics in this list will be displayed as-is.
All others will be averaged by the progbar before display.
|
interval
|
Minimum visual progress update interval (in seconds).
|
unit_name
|
Display name for step counts (usually "step" or "sample").
|
Methods
add
View source
add(
n, values=None
)
update
View source
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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-06-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-07 UTC."],[],[]]