Monitor¶
-
class
tinder.monitor.
Stat
(alpha: float = 0.6)[source]¶ A small class that calculates the statistics for a scalar metric. This is useful to calcaulate accuracies and losses across minibatches.
- Parameters
alpha (float) – Defaults to 1. Weight(0~1) used for exponential moving average. A smaller weight reprsents more smooth average.
-
average
Average of all samples.
- Returns
average