Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Specifies a new set observation. This represents an observation made up of a Set of some other observation. This Set can be variable in size (up to some fixed maximum size) and elements are considered unordered. Internally this observation uses Attention so can be slower to evaluate and more difficult to train than other observation types. For this reason it should be used sparingly.
| Name | SpecifySetObservation |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include Path | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AdvancedDisplay=3))
static FLearningAgentsObservationSchemaElement SpecifySetObservation
(
ULearningAgentsObservationSchema * Schema,
const FLearningAgentsObservationSchemaElement Element,
const int32 MaxNum,
const int32 AttentionEncodingSize,
const int32 AttentionHeadNum,
const int32 ValueEncodingSize,
const FName Tag
)
The newly created observation schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Observation Schema |
| Element | The sub-observation that represents elements of this array. |
| MaxNum | The maximum number of elements that can be included in the set. |
| AttentionEncodingSize | The encoding size used by the attention mechanism. |
| AttentionHeadNum | The number of heads used by the attention mechanism. |
| ValueEncodingSize | The output encoding size used by the attention mechanism. |
| Tag | The tag of this new observation. Used during observation object validation and debugging. |