factor_agent.ledger.Ledger#

class Ledger(path)[source]#

Bases: object

Append and read the trial records of a run directory.

Methods#

Ledger.append

Append records; the file and its directory are created when missing.

Ledger.keep

Drop the records of every round after rounds, such as a round a crash left half written.

Ledger.records

Every record written so far, in order.