Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsCommunicatorLibra-
Description
Start a local python training sub-process which will communicate via sockets. Sockets have some overhead compared to shared memory but can work over networked connects. This provides no encryption so do not use on public internet if privacy is a concern.
This must be called on game thread!
| Name | SpawnSocketTrainingProcess |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCommunicator.h |
| Include Path | #include "LearningAgentsCommunicator.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsCommunicator.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(AutoCreateRefTerm="TrainerProcessSettings,SocketSettings"))
static FLearningAgentsSocketTrainerProcess SpawnSocketTrainingProcess
(
const FLearningAgentsTrainerProcessSettings & TrainerProcessSettings,
const FLearningAgentsSocketCommunicatorSettings & SocketSettings
)
Parameters
| Name | Remarks |
|---|---|
| TrainerProcessSettings | Settings universal to all trainer processes. |
| FLearningAgentsSocketCommunicatorSettings | Settings specific to socket communicators. |