EmaTrainLossMonitor.from_half_life()#
- classmethod EmaTrainLossMonitor.from_half_life(half_life)[source]#
Constructs a monitor from an approximate half-life.
half_lifeis measured in configured epoch equivalents. The conversion useseffective_window = 2 * half_life / log(2)and is approximate because the exact finite-step relationship depends on the number of batches per epoch.- Return type: