Navigation
API > API/Plugins > API/Plugins/Learning
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningRecorderObject.h |
| Include | #include "LearningRecorderObject.h" |
Syntax
struct FRecorderObject
Remarks
The RecorderObject_ can be used to record the values of certain arrays in an FArrayMap_. This can be useful for debugging since we can keep track of certain arrays over time and compute statistics or visualize them.
This object assumes the first dimension on all arrays corresponds to Instances_, as it works by only record updates and resets for certain Instances_ given by an [FIndexSet](API\Plugins\Learning\FIndexSet)_. This makes it easier to use in conjunction with the other objects that use FArrayMap such as `FRewardObject.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRecorderObject
(
const int32 InMaxInstanceNum, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
const FArrayMapKey Key |
Record an array from the provided SrcArrayMap_ in the LogArrayMap_ |
|
| TLearningArrayView< 1, const int32 > | GetStepNums () |
||
| void | Reset all recorded arrays | ||
| void | Update all recorded arrays (record their current value) |