utils package¶
Submodules¶
utils.device module¶
utils.helpers module¶
utils.moving_average module¶
- class utils.moving_average.MovingAverage(init_value=0)[source]¶
Bases:
object
Keeps a moving average of some quantity
- add(new_value, new_weight=1)[source]¶
Includes a single value into a moving average
- Parameters:
- new_value: float
pointwise estimate of the quantity to estimate
- new_weight: float
a weight by which to ponder the new value