Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
Description
Specifies a new inclusive union observation. This represents an observation which is inclusively chosen from a set of named sub-observations. In other words, when this observation is created, you can provide any combination of observations from the given sub-observations. 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 | SpecifyInclusiveUnionObservationFromArrayViews |
| 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 |
static FLearningAgentsObservationSchemaElement SpecifyInclusiveUnionObservationFromArrayViews
(
ULearningAgentsObservationSchema * Schema,
const TArrayView < const FName > ElementNames,
const TArrayView < const FLearningAgentsObservationSchemaElement > Elements,
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 |
| ElementNames | The names of the sub-observations that make up this union. |
| Elements | The corresponding sub-observations that make up this union. Must be the same size as ElementNames. |
| 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. |