Skip to main content

Camera ready machine learning plots with a Tensorboard-like API

Project description

paperplots

Camera ready machine learning plots with a Tensorboard-like API

Ever felt like the tensorboard summary writer can do a bit more than just letting you monitor your training logs? Wouldn't it be nice if you could also directly get pretty paper-ready versions of your tensorboard logs? Paperplots does just this!

  • Record scalars in the exact same way as you do with tensorboard summarywriter
  • Save your training data in easy to access pickle files
  • Plot runs, whole experiments, and even compare different experiments
  • Automatically calculate simple convenience transforms such as rolling averages and shaded error regions

Documentation

Examples

Writing Logs

writer = Writer(logdir=f'runs/algo', run_name=f'run1')

for i in range(iter):
	writer.add_scalar("loss", loss_value, i, ylabel="loss", xlabel="num iter", name="algo loss")

writer.close()

Plotting Written Logs

plotter = Plotter(logdir='runs')

# Plotting runs
plotter.plot_run(run_name="algo/run1")

# Compare two runs
plotter.plot_run(run_name=["algo/run0", "algo/run1"])

# Plot an average over all runs in the experiment
plotter.plot_experiment(exp_name="algo")

# Compare two experiments
plotter.plot_experiment(exp_name=["algo1", "algo2"])

Plots

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

paperplots-0.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

paperplots-0.2.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file paperplots-0.2.0.tar.gz.

File metadata

  • Download URL: paperplots-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for paperplots-0.2.0.tar.gz
Algorithm Hash digest
SHA256 429bedf510e36ba5f70ea77c764b648ec68d09be6f2f127b02a8d5b6a9e663c6
MD5 93f7eee79c9cbd0e6a83cbe3cafc66f8
BLAKE2b-256 496e90b31111f6bccd047f2b9b4f0d1e0c1e4b3c65493a3c84dbec54cadc3506

See more details on using hashes here.

File details

Details for the file paperplots-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: paperplots-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for paperplots-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9de9764753ff97457be7384a125b43d61b80a4cf3fa4467c6df8b41f0d7e1ddb
MD5 679153907a3e8b87b5fa5430359c61f7
BLAKE2b-256 e1e9241eae23e18a4de8fef7e778429c79f89e399c9d8cc2c48aa91e875b22fc

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