Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsCritic
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsCritic.h |
| Include | #include "LearningAgentsCritic.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsCritic.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents", Meta=(AutoCreateRefTerm="CriticSettings"))
void SetupCritic
(
ULearningAgentsManager *& InManager,
ULearningAgentsInteractor *& InInteractor,
ULearningAgentsPolicy *& InPolicy,
ULearningAgentsNeuralNetwork * CriticNeuralNetworkAsset,
const bool bReinitializeCriticNetwork,
const FLearningAgentsCriticSettings & CriticSettings,
const int32 Seed
)
Remarks
Initializes a critic to be used with the given agent interactor and critic settings.
Parameters
| Name | Description |
|---|---|
| InManager | The input Manager |
| InInteractor | The input Interactor object |
| InPolicy | The input Policy object |
| CriticNeuralNetworkAsset | Optional Network Asset to use. If not provided, asset is empty, or bReinitializeNetwork is set then a new neural network object will be created according to the given CriticSettings. |
| bReinitializeCriticNetwork | If to reinitialize the critic network |
| CriticSettings | The critic settings to use on creation of a new critic network |
| Seed | Random seed to use for initializing the critic weights |