Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsManagerListener
- ULearningAgentsPPOTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsPPOTrainer.h |
| Include | #include "LearningAgentsPPOTrainer.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, Meta=(BlueprintSpawnableComponent))
class ULearningAgentsPPOTrainer : public ULearningAgentsManagerListener
Constructors
| Type | Name | Description | |
|---|---|---|---|
| -- Setup -- | |||
ULearningAgentsPPOTrainer
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginTraining
(
const FLearningAgentsPPOTrainingSettings& TrainerTrainingSettings, |
Begins the training process with the provided settings. | |
| void | EndTraining () |
Stops the training process. | |
| int32 | GetEpisodeStepNum
(
const int32 AgentId |
Gets the number of step recorded in an episode for the given agent. | |
| bool | Returns true if the trainer has failed to communicate with the external training process. | ||
| const bool | IsTraining () |
-- Training Process -- | |
| ULearningAgentsPPOTrainer * | MakePPOTrainer
(
ULearningAgentsManager*& InManager, |
Constructs the trainer. | |
| void | OnAgentsAdded_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | OnAgentsRemoved_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | OnAgentsReset_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | ProcessExperience
(
const bool bResetAgentsOnUpdate |
Call this function at the end of each step of your training loop. | |
| void | RunTraining
(
const FLearningAgentsPPOTrainingSettings& TrainerTrainingSettings, |
Convenience function that runs a basic training loop. | |
| void | SetupPPOTrainer
(
ULearningAgentsManager*& InManager, |
Initializes the trainer. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Will automatically call EndTraining if training is still in-progress when the object is destroyed. |