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+https://github.com/ig248/kerashistoryplot

Or from PyPi:

pip install kerashistoryplot

Import function:

from livehistoryplot.callbacks import PlotHistory

Use in callbacks:

model.fit(
    X, y,
    epochs=20,
    callbacks=[
        ReduceLROnPlateau(),
        PlotHistory(batches=True, n_cols=3, figsize=(15, 7))
    ]
)

More Examples

See notebooks/

Tests

Run

make dev-install
make test

References

Original livelossplot: https://github.com/stared/livelossplot

Project details


Download files

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

Source Distribution

kerashistoryplot-0.0.9.tar.gz (70.2 kB view details)

Uploaded Source

Built Distribution

kerashistoryplot-0.0.9-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kerashistoryplot-0.0.9.tar.gz.

File metadata

  • Download URL: kerashistoryplot-0.0.9.tar.gz
  • Upload date:
  • Size: 70.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for kerashistoryplot-0.0.9.tar.gz
Algorithm Hash digest
SHA256 04183e046a3d35f0f28f8e5a551222e4b139586cd9f258e59ca35abf500afe20
MD5 e002ba2b5298cbb469d61a16f82b7ea0
BLAKE2b-256 a3188813de39c2670676f43ed2215c9bf184f8a49dc9e77bc3985c50211daa70

See more details on using hashes here.

File details

Details for the file kerashistoryplot-0.0.9-py2.py3-none-any.whl.

File metadata

  • Download URL: kerashistoryplot-0.0.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for kerashistoryplot-0.0.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 890a499c1b415a4383d91e4551636e6451092f701fff8fe310e419271fd62773
MD5 d5b213a91d7ca5898e2446f2cec19285
BLAKE2b-256 de7fdc7fa682e6eb13192896bc41ba512e44ba4dd271746749a0ab333ae390d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page