MemoryStore#

class scikitplot.agent.MemoryStore[source]#

Keep states in memory, as their JSON text (so a load is a real round trip).

Examples

>>> from scikitplot.agent import MemoryStore
>>> MemoryStore().run_ids()
()
has(run_id)[source]#

Whether a state of run_id is kept.

Parameters:

run_id (str)

Return type:

bool

load(run_id)[source]#

Return the latest state of run_id.

Parameters:

run_id (str)

Return type:

RunState

run_ids()[source]#

Return the ids of the runs kept, sorted.

Return type:

tuple[str, …]

save(state)[source]#

Keep state as the latest state of its run.

Parameters:

state (RunState)

Return type:

None