EmaTrainLossMonitor.from_half_life()

EmaTrainLossMonitor.from_half_life()#

classmethod EmaTrainLossMonitor.from_half_life(half_life)[source]#

Constructs a monitor from an approximate half-life.

half_life is measured in configured epoch equivalents. The conversion uses effective_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:

EmaTrainLossMonitor