module emote.memory.loading

Utilities for loading files into memories.

Functions

def fill_table_from_legacy_file(
    memory_table,
    path
,
    *read_obs,
    read_actions,
    read_rewards
) -> None

Load a legacy memory dump into a new-style table memory.

Arguments:

  • memory_table(ArrayMemoryTable)
  • path(str): The path to load from. Must be a pickle file. Extension is optional :throws: OSError if file does not exist. KeyError if table or file do not match the legacy format.
  • read_obs(bool)
  • read_actions(bool)
  • read_rewards(bool)