Navigation
API > API/Plugins > API/Plugins/LearningTraining > API/Plugins/LearningTraining/FReplayBuffer
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningExperience.h |
| Include | #include "LearningExperience.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Private/LearningExperience.cpp |
bool AddEpisodes
&40;
const TLearningArrayView< 1, const ECompletionMode > InEpisodeCompletionModes,
const TLearningArrayView< 2, const float > InEpisodeFinalObservations,
const FEpisodeBuffer & EpisodeBuffer,
const FIndexSet Instances,
const bool bAddTruncatedEpisodeWhenFull
&41;
Remarks
Add a set of episodes to the replay buffer True when the replay buffer is full
Parameters
| Name | Description |
|---|---|
| InEpisodeCompletionModes | Array of completion modes for each instance of shape (InstanceNum) |
| InEpisodeFinalObservations | Array of final observations for each instance of shape (InstanceNum, ObservationVectorDimNum) |
| EpisodeBuffer | Episode buffer to add experience from |
| Instances | Instances to add |
| bAddTruncatedEpisodeWhenFull | When enabled, this will add a truncated, partial episode to the buffer when full |