Navigation
API > API/Plugins > API/Plugins/LearningTraining
Inheritance Hierarchy
- IImitationTrainer
- FSharedMemoryImitationTrainer
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningImitationTrainer.h |
| Include | #include "LearningImitationTrainer.h" |
Syntax
struct FSharedMemoryImitationTrainer : public UE::Learning::IImitationTrainer
Remarks
Object used to create and communicate with the Python training sub-process
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSharedMemoryImitationTrainer
(
const FString& TaskName, |
Create a new imitation trainer sub-process |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from IImitationTrainer
| Type | Name | Description | |
|---|---|---|---|
| bool | Check if a new policy is available or if training is complete. | ||
| ETrainerResponse | RecvPolicy
(
FNeuralNetwork& OutNetwork, |
Wait for the trainer and pull an updated policy. | |
| ETrainerResponse | SendExperience
(
const TLearningArrayView< 2, const float > ObservationVectors, |
Push experience to the trainer. | |
| ETrainerResponse | SendPolicy
(
const FNeuralNetwork& Network, |
Wait for the training process to be ready and push an updated policy to the shared memory. | |
| 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. |