Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsActions
Description
Specifies a new encoding action. This represents an action which will be a decoding of another sub-action using a small neural network.
| Name | SpecifyEncodingAction |
| 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 |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AdvancedDisplay=2))
static FLearningAgentsActionSchemaElement SpecifyEncodingAction
(
ULearningAgentsActionSchema * Schema,
const FLearningAgentsActionSchemaElement Element,
const int32 EncodingSize,
const int32 HiddenLayerNum,
const ELearningAgentsActivationFunction ActivationFunction,
const FName Tag
)
The newly created action schema element.
Parameters
| Name | Remarks |
|---|---|
| Schema | The Action Schema |
| Element | The sub-action. |
| EncodingSize | The encoding size used to decode this sub-action. |
| HiddenLayerNum | The number of hidden layers used to decode this sub-action. |
| ActivationFunction | The activation function used to decode this sub-action. |
| Tag | The tag of this new action. Used during action object validation and debugging. |