A tensorflow-independent tensorboard logger
Project description
A small logger that lets you write logs readable by Tensorboard but doesn’t require Tensorflow.
Usage
You can use the logger as a context manager:
from tensorboard_easy import Logger
import numpy as np
with Logger('/path/to/logs/folder/') as log:
log.log_scalar('my_scalar', 100, step=1)
log.log_image('my_images', np.random.rand(3, 20, 20), step=1)
or you can close the logger explicitly:
log = Logger('/some/other/logs')
log.log_text('my_text', "Let's throw in some text", 0)
log.log_text('my_text', [['Some', 'tensor'], ['with', 'text!']], 1)
log.log_histogram('my_histogram', np.random.rand(500), step=0)
log.close()
It supports scalars, images, text and histograms.
You can also create functions, that write to a specific tag and automatically increase the step:
with Logger('/path/to/logs/folder/') as log:
write_loss = log.make_log_scalar('loss')
for i in range(1, 100):
write_loss(1 / i)
Installation
It can be installed via pip:
pip install tensorboard-easy
The tensorflow or tensorflow-tensorboard packages are not required, however you will need one of them to visualize your logs.
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
tensorboard-easy-0.2.3.tar.gz
(12.0 kB
view details)
File details
Details for the file tensorboard-easy-0.2.3.tar.gz
.
File metadata
- Download URL: tensorboard-easy-0.2.3.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8a86045966b368bc1dd4b0c0e9a91f0011daa5d83188012a3f7467c04a6fd2 |
|
MD5 | 28a46f3bd5b4cecc821f3656ffc67151 |
|
BLAKE2b-256 | b7f6e0348a81a3c4756204cc0ff65de0b0381a5fa653bcb74bbd81741f2dc41d |