MemoryAuditSink#

class scikitplot.agent.MemoryAuditSink[source]#

Keep records in a list, records.

Examples

>>> from scikitplot.agent import MemoryAuditSink
>>> MemoryAuditSink().records
[]
digest_at(run_id, seq)[source]#

Return the digest of record seq of run_id.

Parameters:
Return type:

str | None

head(run_id)[source]#

Return the last record of run_id, as {"seq", "digest"}.

Parameters:

run_id (str)

Return type:

dict[str, Any] | None

write(record)[source]#

Append a copy of record.

Parameters:

record (Mapping[str, Any])

Return type:

None