Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsManagerListener
- ULearningAgentsCritic
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsCritic.h |
| Include | #include "LearningAgentsCritic.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, Meta=(BlueprintSpawnableComponent))
class ULearningAgentsCritic : public ULearningAgentsManagerListener
Remarks
A critic used for training the policy. Can be used at inference time to estimate the discounted returns.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| These constructors/destructors are needed to make forward declarations happy. | |||
ULearningAgentsCritic
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | -- Blueprint public interface -- | ||
| ULearningAgentsNeuralNetwork * | Gets the current Network Asset being used | ||
| UE::Learning::FNeuralNetworkCritic & | -- Non-blueprint public interface -- | ||
| float | GetEstimatedDiscountedReturn
(
const int32 AgentId |
Gets an estimate of the average discounted return expected by an agent according to the critic. | |
| ULearningAgentsCritic * | MakeCritic
(
ULearningAgentsManager*& InManager, |
Constructs a Critic to be used with the given agent interactor and critic settings. | |
| void | OnAgentsAdded_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | OnAgentsRemoved_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | OnAgentsReset_Implementation
(
const TArray< int32 >& AgentIds |
||
| void | SetupCritic
(
ULearningAgentsManager*& InManager, |
Initializes a critic to be used with the given agent interactor and critic settings. |