Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

History Node

0.2.3

History Node

0.2.2

This version
History Node

0.2.1

History Node

0.2

History Node

0.1.16

History Node

0.1.15

History Node

0.1.14

History Node

0.1.13

History Node

0.1.12

History Node

0.1.11

History Node

0.1.10

History Node

0.1.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tensorboard-easy-0.2.1.tar.gz (12.1 kB) Copy SHA256 hash SHA256 Source None Oct 13, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page