Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsObservations
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsObservations.h |
| Include | #include "LearningAgentsObservations.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsObservations.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AdvancedDisplay=3))
static FLearningAgentsObservationSchemaElement SpecifyInclusiveUnionObservationFromArrays
(
ULearningAgentsObservationSchema * Schema,
const TArray < FName > & ElementNames,
const TArray < FLearningAgentsObservationSchemaElement > & Elements,
const int32 AttentionEncodingSize,
const int32 AttentionHeadNum,
const int32 ValueEncodingSize,
const FName Tag
)
Remarks
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. The newly created observation schema element.
Parameters
| Name | Description |
|---|---|
| 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. |