Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsTrainer
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsTrainer.h |
| Include | #include "LearningAgentsTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsTrainer.cpp |
UFUNCTION&40;BlueprintPure, Category&61;"LearningAgents", Meta&61;&40;AgentId&61;"&45;1"&41;&41;
float GetReward
&40;
const int32 AgentId
&41; const
Remarks
Gets the current reward for an agent according to the critic. Should be called only after EvaluateRewards. The reward
Parameters
| Name | Description |
|---|---|
| AgentId | The AgentId to look-up the reward for |