Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- ULearningAgentsReward
- UConditionalReward
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsRewards.h |
| Include | #include "LearningAgentsRewards.h" |
Syntax
UCLASS&40;&41;
class UConditionalReward : public ULearningAgentsReward
Remarks
A simple conditional reward that gives some constant reward value when a condition is true.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< UE::Learning::FConditionalConstantReward > | RewardObject |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UConditionalReward * | AddConditionalReward
(
ULearningAgentsTrainer* InAgentTrainer, |
Adds a new conditional reward to the given trainer. | |
| void | SetConditionalReward
(
const int32 AgentId, |
Sets if the agent should receive a reward. |
Overridden from ULearningAgentsReward
| Type | Name | Description | |
|---|---|---|---|
| void | VisualLog
(
const UE::Learning::FIndexSet Instances |
Describes this reward to the visual logger for debugging purposes. |