Skip to main content

Plot Keras model losses and metrics live in Jupyter

Project description

PyPI version Build Status Coverage Status

History plot for Keras model training

history plot with batches

Plots training losses and metrics in Jupyter while training your keras model.

This project started as an attempt to extend livelossplot, but I realized that a rewrite was easier. Key improvements are:

  • keeps full history, including losses for each batch in each epoch
  • plots scatter of batch losses
  • plots arbitrary log entries, such a lr (learning rate)
  • simplifies codebase extendibility

Basic Usage

Install package from source:

pip install git+

Or from PyPi:

pip install kerashistoryplot

Import function:

from livehistoryplot.callbacks import PlotHistory

Use in callbacks:
    X, y,
        PlotHistory(batches=True, n_cols=3, figsize=(15, 7))

More Examples

See notebooks/



make dev-install
make test


Original livelossplot:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kerashistoryplot, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size kerashistoryplot-0.0.10-py2.py3-none-any.whl (5.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size kerashistoryplot-0.0.10.tar.gz (70.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page