Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Specifies a new map observation. This represents an observation made up of a Map of some other key and pair observations. This Map 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 | SpecifyMapObservation |
| 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=4))
static FLearningAgentsObservationSchemaElement SpecifyMapObservation
(
ULearningAgentsObservationSchema * Schema,
const FLearningAgentsObservationSchemaElement KeyElement,
const FLearningAgentsObservationSchemaElement ValueElement,
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 |
| KeyElement | The sub-observation that represents keys in this map. |
| ValueElement | The sub-observation that represents values in this map. |
| MaxNum | The maximum number of elements that can be included in the map. |
| 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. |