History plot for Keras model training
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
Metadata
Release files for kerashistoryplot 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kerashistoryplot-0.0.10.tar.gz | 70.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kerashistoryplot-0.0.10-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 75.8 kB
Release files / kerashistoryplot-0.0.10.tar.gz
| Download URL | kerashistoryplot-0.0.10.tar.gz |
|---|---|
| Size | 70.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff0b340d29289027979c2a4fa179b94f8e985bb0122723e3dc7fc238c3dcb6ad
|
|
BLAKE2b-256 checksum How to use checksums |
62870c34f5fe7af2e6091ec4d10b752ad8c11b2235dac79992eb57146dbce0c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / kerashistoryplot-0.0.10-py2.py3-none-any.whl
| Download URL | kerashistoryplot-0.0.10-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4170d0af0268e9065bb1b8849e7239b5046dc87859e39274212b17197bd1733a
|
|
BLAKE2b-256 checksum How to use checksums |
cd12a48cd489936bea016fb5523828daf300407d7b6239cafdef3edd4bb24344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for kerashistoryplot 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.