Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsPPOTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsPPOTrainer.h |
| Include | #include "LearningAgentsPPOTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsPPOTrainer.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(Class="/Script/LearningAgents.LearningAgentsPPOTrainer", DeterminesOutputType="Class", AutoCreateRefTerm="TrainerSettings"))
static ULearningAgentsPPOTrainer * MakePPOTrainer
(
ULearningAgentsManager *& InManager,
ULearningAgentsInteractor *& InInteractor,
ULearningAgentsTrainingEnvironment *& InTrainingEnvironment,
ULearningAgentsPolicy *& InPolicy,
ULearningAgentsCritic *& InCritic,
const FLearningAgentsCommunicator & Communicator,
TSubclassOf < ULearningAgentsPPOTrainer > Class,
const FName Name,
const FLearningAgentsPPOTrainerSettings & TrainerSettings
)
Remarks
Constructs the trainer.
Parameters
| Name | Description |
|---|---|
| InManager | The agent manager we are using. |
| InInteractor | The agent interactor we are training with. |
| InTrainingEnvironment | The training environment. |
| InPolicy | The policy to be trained. |
| InCritic | The critic to be trained. |
| Communicator | The communicator. |
| Class | The trainer class. |
| Name | The trainer name. |
| TrainerSettings | The trainer settings to use. |