Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsPPOTrainer
Description
Convenience function that runs a basic training loop. If training has not been started, it will start it, and then call RunInference. On each following call to this function, it will call GatherRewards, GatherCompletions, and ProcessExperience, followed by RunInference.
| Name | RunTraining |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsPPOTrainer.h |
| Include Path | #include "LearningAgentsPPOTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsPPOTrainer.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(AutoCreateRefTerm="TrainerTrainingSettings,TrainingGameSettings"))
void RunTraining
(
const FLearningAgentsPPOTrainingSettings & TrainerTrainingSettings,
const FLearningAgentsTrainingGameSettings & TrainingGameSettings,
const bool bResetAgentsOnBegin,
const bool bResetAgentsOnUpdate
)
Parameters
| Name | Remarks |
|---|---|
| TrainerTrainingSettings | The settings for this training run. |
| TrainingGameSettings | The settings that will affect the game's simulation. |
| bResetAgentsOnBegin | If true, reset all agents at the beginning of training. |
| bResetAgentsOnUpdate | If true, reset all agents whenever an updated policy is received. |