Navigation
API > API/Plugins > API/Plugins/LearningTraining
This object allows you to launch the FSharedMemoryTrainer server as a subprocess, which is convenient when you want to train locally.
| Name | FSharedMemoryTrainerServerProcess |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningExternalTrainer.h |
| Include Path | #include "LearningExternalTrainer.h" |
Syntax
struct FSharedMemoryTrainerServerProcess
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSharedMemoryTrainerServerProcess
(
const FString& TaskName, |
Creates a training server as a subprocess using shared memory for communication. | LearningExternalTrainer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConfigPath | FString | LearningExternalTrainer.h | ||
| Controls | TSharedMemoryArrayView< 1, volatile int32 > | LearningExternalTrainer.h | ||
| IntermediatePath | FString | LearningExternalTrainer.h | ||
| Timeout | float | LearningExternalTrainer.h | ||
| TrainingProcess | FSubprocess | LearningExternalTrainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FString & GetConfigPath() |
Get the config path. | LearningExternalTrainer.h | |
TSharedMemoryArrayView< 1, volatile int32 > GetControlsSharedMemoryArrayView() |
Get the Controls shared memory array view. | LearningExternalTrainer.h | |
const FString & GetIntermediatePath() |
Get the intermediate path. | LearningExternalTrainer.h | |
FSubprocess * GetTrainingSubprocess() |
Get the training subprocess. | LearningExternalTrainer.h | |
bool IsRunning() |
Check if the server process is still running. | LearningExternalTrainer.h | |
void Terminate() |
Terminate the server process. | LearningExternalTrainer.h | |
bool Wait() |
Wait for the server process to end | LearningExternalTrainer.h |