Plot Keras model losses and metrics live in Jupyter
Project description
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
Project details
Release history Release notifications | RSS feed
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.7.tar.gz
(70.1 kB
view hashes)
Built Distribution
Close
Hashes for kerashistoryplot-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41355ecf460161b3e615f864f27ec977fcf5cff8220f4a7fef734a1e835b1464 |
|
MD5 | 91c0985052b42c38403abda68caa0134 |
|
BLAKE2b-256 | 81cd4b216a1a659545d607160fce561323530ff2292a82a9f8b3b867fcd06de8 |