Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
Description
Specifies a new exclusive union action. This represents an action which is an exclusive choice from a number of named sub-actions, sampled from a Categorical distribution.
| Name | SpecifyExclusiveUnionActionFromArrayViews |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsActions.h |
| Include Path | #include "LearningAgentsActions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsActions.cpp |
static FLearningAgentsActionSchemaElement SpecifyExclusiveUnionActionFromArrayViews
(
ULearningAgentsActionSchema * Schema,
const TArrayView < const FName > ElementNames,
const TArrayView < const FLearningAgentsActionSchemaElement > Elements,
const TArrayView < const float > PriorProbabilities,
const FName Tag
)
The newly created action schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Action Schema |
| ElementNames | The names of the sub-actions. |
| Elements | The corresponding sub-actions. Must be the same size as ElementNames. |
| PriorProbabilities | The prior probabilities of each option. Can be left empty to use a uniform distribution over options. Should sum to one. |
| Tag | The tag of this new action. Used during action object validation and debugging. |