running_stats#

Computation of mean and std from online streams of batches

Module Contents#

Classes#

RunningStats

class running_stats.RunningStats(loader_dict)[source]#
update(batch, i)[source]#

Update stats for a new batch

Parameters#

batcharray or dict

new batch of data whose data can be accessed by the functions in loader_dict

iint

index indicating that the batch is the i-th batch