Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
Description
Specifies a new enum action. This represents an action which is an exclusive choice from entries of an Enum, sampled from a Categorical distribution.
| Name | SpecifyEnumActionFromArrayView |
| 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 SpecifyEnumActionFromArrayView
(
ULearningAgentsActionSchema * Schema,
const UEnum * Enum,
const TArrayView < const float > PriorProbabilities,
const FName Tag
)
The newly created action schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Action Schema |
| Enum | The Enum type. |
| PriorProbabilities | The prior probabilities of each enum element. Can be left empty to use a uniform distribution over elements. Should sum to one. |
| Tag | The tag of this new action. Used during action object validation and debugging. |