mighty.monitor.batch_timer.ScheduleExp

class mighty.monitor.batch_timer.ScheduleExp[source]

Schedule updates at batches that are powers of two: 1, 2, 4, 8, 16, … Handy for the first epoch.

Methods

__init__()

next_batch_update()

Returns:

__call__(func: Callable)

Call self as a function.

next_batch_update()[source]
Returns:
int

The next batch id when an update is needed.