Skip to main content

Live plot of Keras model history

Project description

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/livehistoryplot

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.2.tar.gz (69.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: kerashistoryplot-0.0.2.tar.gz
  • Upload date:
  • Size: 69.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for kerashistoryplot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 560f432ee77a9f977ec41c0e3206fc2964873124e391f488603d94d36d0da3ab
MD5 1e970d1f1eda244ea83836e0575fd17e
BLAKE2b-256 744d8afe7ff74106afff74ea0e8cfdae3141820277ec415cae9764ee3b6d5b62

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