Home

Awesome

dd_board

Version 0.4

Works with: Python 2.7

Converts logs to "TensorBoard compatible" data.

Parameters (except for del_dir, they must be written between quotes, even if left empty):

Requirements:

Usage:

from dd_board_logger import DDBoard

do_what_have_to_be_done_before()

read_dd = DDBoard(base_dir, sub_dir, del_dir)

Then, with a log flow:

read_dd.ddb_logger(log_src)

Or, with a log file:

read_dd.ddb_logger_file(log_src)

Or with external data (need "import json, time", for this example):

log_src = open(json_src, 'r')
for line in log_src:

json_src = open(log_src, 'r')
for line in json_src:
	json_obj = json.loads(line)
	read_dd.ddb_logger(json_obj)
	time.sleep(1)

You can then start TensorBoard in console:

$tensorboard --logdir base_dir

(base_dir without quotes, here. Ex: tensorboard --logdir runs)