Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsActions.h |
| Include | #include "LearningAgentsActions.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsActions.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents",
Meta=(AdvancedDisplay=2, AutoCreateRefTerm="PriorProbabilities"))
static FLearningAgentsActionSchemaElement SpecifyInclusiveUnionAction
(
ULearningAgentsActionSchema * Schema,
const TMap < FName , FLearningAgentsActionSchemaElement > & Elements,
const TMap < FName , float > & PriorProbabilities,
const FName Tag
)
Remarks
Specifies a new inclusive union action. This represents an action which is an inclusive choice from a number of named sub-actions, sampled from a Bernoulli distribution. The newly created action schema element.
Parameters
| Name | Description |
|---|---|
| Schema | The Action Schema |
| Elements | The sub-actions. |
| PriorProbabilities | The prior probabilities of each option. Can be left empty to use a probability of 0.5 for each option. |
| Tag | The tag of this new action. Used during action object validation and debugging. |