Utils for organizing epoch iterations, printing progress, computing average of losses.

class dlutils.epoch.EpochRange(epoch_count, log_func=None)[source]

Range for iterating epochs

__len__()[source]
__next__()[source]
class dlutils.epoch.LossTracker[source]

Tracker for easy recording and computing mean values of some quanities such as losses. Summary of average values is printed at the end of each epoch.

__str__()[source]
add(name, format_str='%s: %.3f')[source]
reset()[source]
class dlutils.epoch.RunningMean[source]
__float__()[source]
__iadd__(value)[source]