Skip to content

Camera ready machine learning plots and figures with a Tensorboard-like API

License

Notifications You must be signed in to change notification settings

anishhdiwan/paperplots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 pypi index

Install

pip install paperplots==0.2.0

Examples

Writing Logs

from paperplots import Writer, Plotter

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

About

Camera ready machine learning plots and figures with a Tensorboard-like API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages