Navigation
API > API/Plugins > API/Plugins/LearningTraining > API/Plugins/LearningTraining/FSocketTrainerServerProcess
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningExternalTrainer.h |
| Include | #include "LearningExternalTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Private/LearningExternalTrainer.cpp |
FSocketTrainerServerProcess
(
const FString & CustomTrainerPath,
const FString & TrainerFileName,
const FString & PythonExecutablePath,
const FString & PythonContentPath,
const FString & IntermediatePath,
const TCHAR * IpAddress,
const uint32 Port,
const float InTimeout,
const ESubprocessFlags TrainingProcessFlags,
const ELogSetting LogSettings
)
Remarks
Creates a training server as a subprocess
Parameters
| Name | Description |
|---|---|
| CustomTrainerPath | Path to check for custom trainer files |
| TrainerFileName | The name of the training file to use |
| PythonExecutablePath | Path to the python executable used for training. In general should be the python shipped with Unreal Editor. |
| PythonContentPath | Path to the Python Content folder provided by the Learning plugin |
| IntermediatePath | Path to the intermediate folder to write temporary files, logs, and snapshots to |
| IpAddress | Ip address to bind the listening socket to. For a local server you will want to use 127.0.0.1 |
| Port | Port to use for the listening socket. |
| TrainingProcessFlags | Training server subprocess flags |
| LogSettings | Logging settings to use |