Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.11 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.11 KB

Build Status codecov Docs License PyPI version

dowel

dowel is a little logger for machine learning research.

Installation

pip install dowel

Usage

import dowel
from dowel import logger, tabular

logger.add_output(dowel.StdOutput())
logger.add_output(dowel.TensorBoardOutput('tensorboard_logdir'))

logger.log('Starting up...')
for i in range(1000):
    logger.push_prefix('itr {}'.format(i))
    logger.log('Running training step')

    tabular.record('itr', i)
    tabular.record('loss', 100.0 / (2 + i))
    logger.log(tabular)

    logger.pop_prefix()
    logger.dump_all()

logger.remove_all()