Navigation
API > API/Plugins > API/Plugins/LearningAgents > API/Plugins/LearningAgents/ULearningAgentsCritic
Description
Gets an estimate of the average discounted return expected by an agent according to the critic. I.E. the total sum of future rewards, scaled by the discount factor that was used during training. This value can be useful if you want to make some decision based on how well the agent thinks they are doing at achieving their task. This should be called only after EvaluateCritic.
| Name | GetEstimatedDiscountedReturn |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsCritic.h |
| Include Path | #include "LearningAgentsCritic.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Private/LearningAgentsCritic.cpp |
UFUNCTION (BlueprintPure, Category="LearningAgents", Meta=(AgentId=1))
float GetEstimatedDiscountedReturn
(
const int32 AgentId
) const
The estimated average discounted return according to the critic
Parameters
| Name | Remarks |
|---|---|
| AgentId | The AgentId to look-up the estimated discounted return for |