EpochState#

class liesel.goose.epoch.EpochState(config, nth_epoch, time, time_before_epoch, time_in_epoch)[source]#

Bases: object

EpochState describes the state in the current epoch.

In particular, it calculates how much time is left in the current epoch and advances time. It also, provides access to the EpochConfig of the current epoch.

Methods

advance_time(by)

Advances time by by units (mcmc iterations).

time_left()

Returns how much time is left in this epoch.

Attributes

config

EpochConfig of this epoch.

nth_epoch

Position of this epoch in the epoch sequence.

time

Current time.

time_before_epoch

Time passed before this epoch started.

time_in_epoch

Current time within this epoch.