Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsCommunicatorLibra-
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCommunicator.h |
| Include | #include "LearningAgentsCommunicator.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsCommunicator.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(AutoCreateRefTerm="TrainerProcessSettings,SocketSettings"))
static FLearningAgentsTrainerProcess SpawnSocketTrainingProcess
(
const FLearningAgentsTrainerProcessSettings & TrainerProcessSettings,
const FLearningAgentsSocketCommunicatorSettings & SocketSettings
)
Remarks
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!
Parameters
| Name | Description |
|---|---|
| TrainerProcessSettings | Settings universal to all trainer processes. |
| FLearningAgentsSocketCommunicatorSettings | Settings specific to socket communicators. |