alibi_detect.utils.state.state module

class alibi_detect.utils.state.state.StateMixin[source]

Bases: ABC

Utility class that provides methods to save and load stateful attributes to disk.

load_state(filepath)[source]

Load the detector’s state from disk, in order to restart from a checkpoint previously generated with save_state.

Parameters:

filepath (Union[str, PathLike]) – The directory to load state from.

online_state_keys: Tuple[str, ...]
save_state(filepath)[source]

Save a detector’s state to disk in order to generate a checkpoint.

Parameters:

filepath (Union[str, PathLike]) – The directory to save state to.

t: int