Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsManagerListener
- ULearningAgentsImitationTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsImitationTrainer.h |
| Include | #include "LearningAgentsImitationTrainer.h" |
Syntax
UCLASS (BlueprintType, Blueprintable)
class ULearningAgentsImitationTrainer : public ULearningAgentsManagerListener
Remarks
The ULearningAgentsImitationTrainer enable imitation learning, i.e. learning from human/AI demonstrations. Imitation training is typically much faster than reinforcement learning, but requires gathering large amounts of data in order to generalize. This can be used to initialize a reinforcement learning policy to speed up initial exploration.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| -- Setup -- | |||
ULearningAgentsImitationTrainer
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BeginTraining
(
const ULearningAgentsRecording* Recording, |
Begins the training process with the provided settings. | |
| void | EndTraining () |
Stops the training process. | |
| bool | Returns true if the trainer has failed to communicate with the external training process. | ||
| bool | IsTraining () |
Returns true if the trainer is currently training; Otherwise, false. | |
| void | Iterates the training process and gets the updated policy network. | ||
| ULearningAgentsImitationTrainer * | MakeImitationTrainer
(
ULearningAgentsManager*& InManager, |
Constructs the imitation trainer and runs the setup functions. | |
| void | RunTraining
(
const ULearningAgentsRecording* Recording, |
Convenience function that runs a basic training loop. | |
| void | SetupImitationTrainer
(
ULearningAgentsManager* InManager, |
Initializes the imitation trainer and runs the setup functions. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Will automatically call EndTraining if training is still in-progress when the object is destroyed. |
See Also
ULearningAgentsInteractor to understand how observations and actions work.
ULearningAgentsController to understand how we can manually perform actions via a human or AI.
ULearningAgentsRecorder to understand how to make new recordings.