Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsPolicy
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsPolicy.h |
| Include | #include "LearningAgentsPolicy.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsPolicy.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(Class="/Script/LearningAgents.LearningAgentsPolicy", DeterminesOutputType="Class", AutoCreateRefTerm="PolicySettings"))
static ULearningAgentsPolicy * MakePolicy
(
ULearningAgentsManager *& InManager,
ULearningAgentsInteractor *& InInteractor,
TSubclassOf < ULearningAgentsPolicy > Class,
const FName Name,
ULearningAgentsNeuralNetwork * EncoderNeuralNetworkAsset,
ULearningAgentsNeuralNetwork * PolicyNeuralNetworkAsset,
ULearningAgentsNeuralNetwork * DecoderNeuralNetworkAsset,
const bool bReinitializeEncoderNetwork,
const bool bReinitializePolicyNetwork,
const bool bReinitializeDecoderNetwork,
const FLearningAgentsPolicySettings & PolicySettings,
const int32 Seed
)
Remarks
Constructs this object to be used with the given agent interactor and policy settings.
Parameters
| Name | Description |
|---|---|
| InManager | The input Manager |
| InInteractor | The input Interactor component |
| Class | The policy class |
| Name | The policy name |
| EncoderNeuralNetworkAsset | Optional Encoder Network Asset to use. If not provided, asset is empty, or bReinitializeEncoderNetwork is set then a new neural network object will be created. |
| PolicyNeuralNetworkAsset | Optional Policy Network Asset to use. If not provided, asset is empty, or bReinitializePolicyNetwork is set then a new neural network object will be created according to the given PolicySettings. |
| DecoderNeuralNetworkAsset | Optional Decoder Network Asset to use. If not provided, asset is empty, or bReinitializeDecoderNetwork is set then a new neural network object will be created. |
| bReinitializeEncoderNetwork | If to reinitialize the encoder network |
| bReinitializePolicyNetwork | If to reinitialize the policy network |
| bReinitializeDecoderNetwork | If to reinitialize the decoder network |
| PolicySettings | The policy settings to use on creation of a new policy network |
| Seed | Random seed to use for initializing network weights and policy sampling |