gyx v0.1.1 Gyx.Core.ReplayMemory behaviour

This module defines the behaviour for a Replay Memory. The role of a Replay Memory is to store experiences coming from one or multiple agents when interacting with their environments. In this way, an agent can sample experiencess directly from a replay memory with different strategies that can improve learning convergence.

Link to this section Summary

Link to this section Types

Link to this type

batch_size()
batch_size() :: integer()

Link to this type

experience()
experience() :: Gyx.Core.Exp.t()

Link to this type

experiences()
experiences() :: [experience()]

Link to this type

sampling_type()
sampling_type() :: :random | :latest

Link to this section Callbacks

Link to this callback

add(experience)
add(experience()) :: :ok

Link to this callback

get_batch({})
get_batch({batch_size(), sampling_type()}) :: experiences()