Navigation
API > API/Plugins > API/Plugins/LearningTraining > API/Plugins/LearningTraining/FSocketPPOTrainerServerProcess
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningPPOTrainer.h |
| Include | #include "LearningPPOTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Private/LearningPPOTrainer.cpp |
FSocketPPOTrainerServerProcess
&40;
const FString & PythonExecutablePath,
const FString & SitePackagesPath,
const FString & PythonContentPath,
const FString & IntermediatePath,
const TCHAR &42; IpAddress,
const uint32 Port,
const ESubprocessFlags TrainingProcessFlags,
const ELogSetting LogSettings
&41;
Remarks
Creates a training server as a subprocess
Parameters
| Name | Description |
|---|---|
| PythonExecutablePath | Path to the python executable used for training. In general should be the python shipped with Unreal Editor. |
| SitePackagesPath | Path to the site-packages shipped with the PythonFoundationPackages plugin |
| 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 |