tensorboard.load_scalars

tensorboard.load_scalars(logdir, *, tags=None, runs=None)

Read the scalars of a TensorBoard log directory.

Parameters

Name Type Description Default
logdir str or os.PathLike The directory TensorBoard would be started with (--logdir). Every directory under it holding an event file is a run, named by its path from logdir, and "." for logdir itself. required
tags iterable of str Only these tags, in this order. A tag that no run logged is warned about. None
runs iterable of str Only these runs. A run that is not in logdir is warned about. None

Returns

Name Type Description
dict of str to dict of str to ScalarSeries Tag by tag, sorted unless tags gives the order, and within a tag run by run, sorted.

Raises

Name Type Description
FileNotFoundError If logdir is not a directory.