Navigation
API > API/Plugins > API/Plugins/LearningTraining
Inheritance Hierarchy
- IImitationTrainer
- FSharedMemoryImitationTrainer
- FSocketImitationTrainer
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningImitationTrainer.h |
| Include | #include "LearningImitationTrainer.h" |
Syntax
struct IImitationTrainer
Remarks
Interface for an object which can train a policy from experience using imitation learning.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| 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. |