ReplayBuffer<T>
Models & Types · AiDotNet.ReinforcementLearning.ReplayBuffers
A buffer for storing and replaying experiences in reinforcement learning.
Constructors
| Constructor |
Summary |
ReplayBuffer() |
Initializes a new instance with default settings. |
ReplayBuffer(int capacity, int? seed) |
Initializes a new instance of the ReplayBuffer class. |
Properties
| Property |
Summary |
int Count { get; } |
Gets the current number of experiences in the buffer. |
Methods
| Method |
Summary |
List<Experience<T>> Sample(int batchSize) |
Samples a batch of experiences from the buffer. |
void Add(Experience<T> experience) |
Adds a new experience to the buffer. |
void Clear() |
Clears the buffer. |