Skip to main content

TensorVis

Code Style: Black

OverviewFeaturesInstallationContribute

Overview

A command line tool to automate the process of grabbing tensorboard events data and visualising them. This allows for faster result analysis and separation of the experiment logic from the visualisation aspect of the metrics logged in tensorboard.

Features

  • Uploads experiment metrics logged to tensorboard to tensorboard.dev and creates a log of uploaded experiments.
  • Downloads experiments from tensorboard.dev to a local csv file.
  • Plots experiment metrics.

Benefits

  1. Faster result analysis
  2. Less code writting
  3. Separate experiments from analysis
  4. Allows for more research time

Installation

tensorvis can be installed using pip with the command:

pip install tensorvis

This will install tensorvis in the current python environment and will be available through the terminal.

tensorvis supports autocompletion of commands and experiment names using Click's shell completion. To initialise autocompletion run the following command if using Ubuntu and bash:

mv /path/to/virtualenvs/your-virtualenv/site-packages/.tensorvis-complete.bash ~/

The reason for this path is due to an issue with poetry not packaging data within the .whl file. You can find more about this here.

Follow Click' documentation linked above for different shell support.

Assumptions

There can be many different directory structures when running and logging experiments with tensorboard. This tool makes several assumptions to make it easier to handle dataframes resulting from downloading experiments.

tensorvis assumes the following directory structure of tensorboard logs within the top level directory logs, where each run subdirectory contains the events file:

logs
├── exp_name_1
│   ├── run_1
│   └── run_2
├── exp_name_2
│   ├── run_1
│   ├── run_2
│   └── run_3
└── exp_name_3
    └── run_1

For a description of how the directory structure is represented in a dataframe follow this link.

By default tensorvis assumes a single experiment directory is provided which corresponds to a single experiment having multiple runs. All runs from a single experiment will be aggregate and averaged to plot the mean values along with the standard deviation.

Contribute

Any feedback on tensorvis is welcomed in order to improve its usage and versatility. If you have something specific in mind please don't hesitate to create an issue or better yet open a PR!

Current Contributors

Release files for tensorvis 1.3.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tensorvis 1.3.10
File Size Uploaded
tensorvis-1.3.10.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tensorvis 1.3.10
File Interpreter ABI Platform
tensorvis-1.3.10-py3-none-any.whl Python 3 none any Details

Total release size:20.5 kB

Release files / tensorvis-1.3.10.tar.gz

Download URL tensorvis-1.3.10.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
389fbfde205664345c01cd365d4f0feade811bfe5682800e2a3fafc1dda2a533
BLAKE2b-256 checksum
How to use checksums
f9ddf68a160b7d2e9a1832bef50b8ebe017ac7433f664d505b0fdc1702875a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.7.13 Linux/5.13.0-1023-azure

Release files / tensorvis-1.3.10-py3-none-any.whl

Download URL tensorvis-1.3.10-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc4fa84634fe3e3920e8afd8294522803a0fc85c63b3ebf0947aa6f1dff9a918
BLAKE2b-256 checksum
How to use checksums
59ee52b9a95ce07c811d78bf6ff032a7fba569ebf29ab04c813e7ac5d18074a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.7.13 Linux/5.13.0-1023-azure

Release history Release notifications | RSS feed

This release

1.3.10 This release

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.1.5

2 release files

1.1.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page