Helper Module for Deep Learning.
Module that provides logging utilities.
-
class
pynet.history.History(name, verbose=0)[source]¶ Track training progress by following the some metrics.
-
__init__(name, verbose=0)[source]¶ Initilize the class.
- Parameters
name: str
the object name.
verbose: int, default 0
control the verbosity level.
-
log(step, **kwargs)[source]¶ Record some metrics at a specific step.
- Example:
state = History() state.log(1, loss=1., accuracy=0.)
If logging the same metrics for one specific step, new values overwrite older ones.
- Parameters
step: int or uplet
The step name: we can use a tuple to log the fold, the epoch or the step within the epoch.
kwargs
The metrics to be logged.
-
property
steps¶ Returns a list of all steps.
-
Follow us
© 2019, pynet developers .
Inspired by AZMIND template.
Inspired by AZMIND template.