Skip to main content

Live training loss plot in Jupyter Notebook for Keras, PyTorch and others.

Project description

Live Loss Plot

PyPI version PyPI license PyPI status Downloads

Don't train deep learning models blindfolded! Be impatient and look at each epoch of your training!

A live training loss plot in Jupyter Notebook for Keras, PyTorch and other frameworks. An open source Python package by Piotr Migdał, Kasia Kańska and others. Open for collaboration! (Some tasks are as simple as writing code docstrings, so - no excuses! :))

from livelossplot.keras import PlotLossesCallback

model.fit(X_train, Y_train,
          epochs=10,
          validation_data=(X_test, Y_test),
          callbacks=[PlotLossesCallback()],
          verbose=0)

So remember, log your loss!

  • (The most FA)Q: Why not TensorBoard?
  • A: Jupyter Notebook compatibility (for exploration and teaching). Simplicity of use.

Installation

To install this verson from PyPI, type:

pip install livelossplot

To get the newest one from this repo (note that we are in the alpha stage, so there may be frequent updates), type:

pip install git+git://github.com/stared/livelossplot.git

Examples

Look at notebook files with full working examples:

Overview

Text logs are easy, but it's easy to miss the most crucial information: is it learning, doing nothing or overfitting?

Visual feedback allows us to keep track of the training process. Now there is one for Jupyter.

If you want to get serious - use TensorBoard or even better - Neptune - Machine Learning Lab (as it allows to compare between models, in a Kaggle leaderboard style).

But what if you just want to train a small model in Jupyter Notebook? Here is a way to do so, using livelossplot as a plug&play component.

It started as this gist. Since it went popular, I decided to rewrite it as a package.

To do

  • Add docstrings
  • Add Bokeh backend
  • History saving
  • Add connectors to TensorBoard

If you want more functionality - open an Issue or even better - prepare a Pull Request.

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

livelossplot-0.3.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livelossplot-0.3.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file livelossplot-0.3.3.tar.gz.

File metadata

  • Download URL: livelossplot-0.3.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.5.4

File hashes

Hashes for livelossplot-0.3.3.tar.gz
Algorithm Hash digest
SHA256 a5e784d411e2363ef681a684561e69c6e84c22184d8ff84c829fe9cb4a7ab633
MD5 beb2f5298e839c04207f9c88a8673fcf
BLAKE2b-256 d2d3179e77c4a1823ea4a9637d1efdc8efb7fba6fbc7a015ee04b7ebb0e4361b

See more details on using hashes here.

File details

Details for the file livelossplot-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: livelossplot-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.5.4

File hashes

Hashes for livelossplot-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 852c8bf0d3d509e53ffe5858c744769cb9b904e2f324253dcef93d2ecb2c6c89
MD5 d76ad77b67d24f9f2492f9563dd3f299
BLAKE2b-256 079d54f8a93d65eece0bcd475b191c4c9a3bff9dbf993db8d5e2d02b76c2d2c3

See more details on using hashes here.

Supported by

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