
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
tf-compactprogbar
Advanced tools
A simple and compact one-line progress bar for TensorFlow 2 Keras.
Existing ways of monitoring training of TensorFlow Keras models either display nothing (verbose=0), one progress bar per epoch (verbose=1), or prints one line of metrics per epoch (verbose=2). When training for thousands of epochs, this often leads to bloated log files or crashed/sluggish Jupyter environments when working interactively.
This library provides a compact progress bar that simply displays the overall training progress by epoch. There are also a few small additional features for convenience, such as excluding certain metrics to avoid excessive clutter.
Notebook mode

Console mode

Install from PyPi:
$ pip install tf-compactprogbar
tensorflow >= 2 (TF 1 likely works, but untested)tqdmpython >= 3.7ipywidgets (Optional)jupyterlab_widgets (Optional)For nice looking Jupyter/IPython progress bars, make sure you have ipywidgets and jupyterlab_widgets if you are on Jupyter Lab.
To use it, disable the built-in logging (verbose=0) and pass it in as a Callback:
from tf_compactprogbar import CompactProgressBar
progBar = CompactProgressBar()
history = model.fit(X_train, Y_train,
epochs=200,
batch_size=100,
verbose=0,
validation_data = (X_test, Y_test),
callbacks=[progBar])
# Call signature
CompactProgressBar(show_best=True, best_as_max=[], exclude=[], notebook='auto', epochs=None)
Args:
- show_best (bool) Display best metrics. Default: True
- best_as_max (list) Metrics which should be maximized (see note)
- exclude (list) Metrics which should be excluded from display
- notebook (str/bool) Whether to use IPython/Jupyter widget or console. Default: 'auto'
- epochs (int) Optional total number of epochs. Default is inferred from `.fit`.
Note: When using `show_best`, by default the "best" metric is the minimum. Pass
in the metric name to `best_as_max` to change this behavior.
If there are any issues in Jupyter, please see the tqdm Issues page for help or disable notebook mode with notebook=False.
FAQs
A simple and compact one-line progress bar for TensorFlow 2 Keras.
We found that tf-compactprogbar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.