Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsImitationTrainer
Description
Exports training materials to file, only performing work needed for the requested export flags. Skips expensive replay buffer construction when not exporting replay buffers.
| Name | ExportToFile |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsImitationTrainer.h |
| Include Path | #include "LearningAgentsImitationTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsImitationTrainer.cpp |
void ExportToFile
(
UE::Learning::FFileTrainer & FileTrainer,
const ULearningAgentsRecording * Recording,
const FLearningAgentsImitationTrainerSettings & ImitationTrainerSettings,
const FLearningAgentsImitationTrainerTrainingSettings & ImitationTrainerTrainingSettings,
UE::Learning::ETrainerExportFlags ExportFlags
)
Parameters
| Name | Remarks |
|---|---|
| Recording | The data to export. |
| ImitationTrainerSettings | The settings for this trainer. |
| ImitationTrainerTrainingSettings | The training settings for this network. |
| ExportFlags | Which sections to export. |