Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- ULearningAgentsImitationTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsImitationTrainer.h |
| Include | #include "LearningAgentsImitationTrainer.h" |
Syntax
UCLASS&40;BlueprintType, Blueprintable&41;
class ULearningAgentsImitationTrainer : public UActorComponent
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
(
ULearningAgentsPolicy* InPolicy, |
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. | ||
| void | RunTraining
(
ULearningAgentsPolicy* InPolicy, |
Convenience function that runs a basic training loop. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Will automatically call EndTraining if training is still in-progress when play is ending. |
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.