Navigation
API > API/Plugins > API/Plugins/LearningTraining
Inheritance Hierarchy
- IPPOTrainer
- FSocketPPOTrainer
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningPPOTrainer.h |
| Include | #include "LearningPPOTrainer.h" |
Syntax
struct FSocketPPOTrainer : public UE::Learning::IPPOTrainer
Remarks
Trainer that connects to an external training server to perform training
This trainer can be used to allow the python training process the run on a different machine to the experience gathering process.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSocketPPOTrainer
(
ETrainerResponse& OutResponse, |
Creates a new Socket PPO trainer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from IPPOTrainer
| Type | Name | Description | |
|---|---|---|---|
| ETrainerResponse | RecvCritic
(
FNeuralNetwork& OutNetwork, |
Wait for the trainer to push an updated critic network. | |
| ETrainerResponse | RecvPolicy
(
FNeuralNetwork& OutNetwork, |
Wait for the trainer to push an updated policy network. | |
| ETrainerResponse | SendCritic
(
const FNeuralNetwork& Network, |
Wait for the trainer to be ready and push the current critic network. | |
| ETrainerResponse | SendExperience
(
const FReplayBuffer& ReplayBuffer, |
Wait for the trainer to be ready and push new experience. | |
| ETrainerResponse | SendPolicy
(
const FNeuralNetwork& Network, |
Wait for the trainer to be ready and push the current policy network. | |
| ETrainerResponse | SendStop
(
const float Timeout |
Signal for the trainer to stop. | |
| void | Terminate () |
Terminate the trainer immediately. | |
| ETrainerResponse | Wait
(
const float Timeout |
Wait for the trainer to finish. |