Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsTrainer.h |
| Include | #include "LearningAgentsTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsTrainer.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"LearningAgents"&41;
void SetupTrainer
&40;
ULearningAgentsInteractor &42; InInteractor,
ULearningAgentsPolicy &42; InPolicy,
ULearningAgentsCritic &42; InCritic,
const FLearningAgentsTrainerSettings & TrainerSettings
&41;
Remarks
Initializes this object and runs the setup functions for rewards and completions.
Parameters
| Name | Description |
|---|---|
| InInteractor | The agent interactor we are training with. |
| InPolicy | The policy to be trained. |
| InCritic | Optional - only needs to be provided if we want the critic to be accessible at runtime. |
| TrainerSettings | The trainer settings to use. |