Navigation
API > API/Plugins > API/Plugins/LearningTraining
Buffer storing the observations, actions, and rewards of multiple instances over an episode
| Name | FEpisodeBuffer |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningExperience.h |
| Include Path | #include "LearningExperience.h" |
Syntax
struct FEpisodeBuffer
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActionArrays | TArray< TLearningArray< 3, float >, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ActionModifierArrays | TArray< TLearningArray< 3, float >, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ActionModifierNames | TArray< FName, TInlineAllocator< 1 > > | Action Modifiers. | LearningExperience.h | |
| ActionModifierSchemaIds | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ActionModifierSizes | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ActionNames | TArray< FName, TInlineAllocator< 1 > > | Actions. | LearningExperience.h | |
| ActionSchemaIds | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ActionSizes | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| bHasBeenSized | bool | LearningExperience.h | ||
| EpisodeStepNums | TLearningArray< 1, int32 > | Episode Step Nums. | LearningExperience.h | |
| MaxInstanceNum | int32 | LearningExperience.h | ||
| MaxStepNum | int32 | LearningExperience.h | ||
| MemoryStateArrays | TArray< TLearningArray< 3, float >, TInlineAllocator< 1 > > | LearningExperience.h | ||
| MemoryStateNames | TArray< FName, TInlineAllocator< 1 > > | Memory States. | LearningExperience.h | |
| MemoryStateSizes | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ObservationArrays | TArray< TLearningArray< 3, float >, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ObservationNames | TArray< FName, TInlineAllocator< 1 > > | Observations. | LearningExperience.h | |
| ObservationSchemaIds | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| ObservationSizes | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h | ||
| RewardArrays | TArray< TLearningArray< 3, float >, TInlineAllocator< 1 > > | LearningExperience.h | ||
| RewardNames | TArray< FName, TInlineAllocator< 1 > > | Rewards. | LearningExperience.h | |
| RewardSizes | TArray< int32, TInlineAllocator< 1 > > | LearningExperience.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddActionModifiers
(
const FName& Name, |
LearningExperience.h | ||
int32 AddActions
(
const FName& Name, |
LearningExperience.h | ||
int32 AddMemoryStates
(
const FName& Name, |
LearningExperience.h | ||
int32 AddObservations
(
const FName& Name, |
LearningExperience.h | ||
int32 AddRewards
(
const FName& Name, |
LearningExperience.h | ||
const TLearningArrayView< 2, const float > GetActionModifiers
(
const int32 ActiActionModifierIdnId, |
LearningExperience.h | ||
const TLearningArrayView< 2, const float > GetActions
(
const int32 ActionId, |
LearningExperience.h | ||
const TLearningArrayView< 1, const int32 > GetEpisodeStepNums() |
LearningExperience.h | ||
int32 GetMaxInstanceNum() |
LearningExperience.h | ||
int32 GetMaxStepNum() |
LearningExperience.h | ||
const TLearningArrayView< 2, const float > GetMemoryStates
(
const int32 MemoryStateId, |
LearningExperience.h | ||
const TLearningArrayView< 2, const float > GetObservations
(
const int32 ObservationId, |
LearningExperience.h | ||
const TLearningArrayView< 2, const float > GetRewards
(
const int32 RewardId, |
LearningExperience.h | ||
void IncrementEpisodeStepNums
(
const FIndexSet Instances |
LearningExperience.h | ||
void PushActionModifiers
(
const int32 ActionModifierId, |
LearningExperience.h | ||
void PushActions
(
const int32 ActionId, |
LearningExperience.h | ||
void PushMemoryStates
(
const int32 MemoryStateId, |
LearningExperience.h | ||
void PushObservations
(
const int32 ObservationId, |
LearningExperience.h | ||
void PushRewards
(
const int32 RewardId, |
Convenience overload for pushing rewards from a Training Environment. | LearningExperience.h | |
void PushRewards
(
const int32 RewardId, |
LearningExperience.h | ||
void Reset
(
const FIndexSet Instances |
Reset the buffer for the given set of instances | LearningExperience.h | |
void Resize
(
const int32 InMaxInstanceNum, |
Resize the experience buffer | LearningExperience.h |