module emote.memory.uniform_strategy

Classes

class UniformStrategyBase(Strategy):

A sampler intended to sample uniformly across the whole set of experiences.

This base class is used by both the uniform sample and ejection strategies.

Methods

def __init__(self) -> None
def track(self, identity, sequence_length) -> None
def forget(self, identity) -> None
def post_import(self) -> None

class UniformSampleStrategy(UniformStrategyBase, SampleStrategy):

Methods

def sample(self, count, transition_count) -> Sequence[SamplePoint]

class UniformEjectionStrategy(UniformStrategyBase, EjectionStrategy):

Methods

def sample(self, count) -> Sequence[int]