Navigation
API > API/Plugins > API/Plugins/Learning
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningObservation.h |
| Include | #include "LearningObservation.h" |
Syntax
struct FSchema
Remarks
Observation Schema
This object allows you to construct a description of the kind of observations you might want to provide as input to a policy. Internally this object contains a pool of individual elements. This allows them to be constructed performantly and in a cache efficient way. This object is therefore required to access any data about the individual observation elements that are created.
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSchemaElement | CreateAnd
(
const FSchemaAndParameters Parameters, |
||
| FSchemaElement | CreateArray
(
const FSchemaArrayParameters Parameters, |
||
| FSchemaElement | CreateContinuous
(
const FSchemaContinuousParameters Parameters, |
||
| FSchemaElement | CreateEncoding
(
const FSchemaEncodingParameters Parameters, |
||
| FSchemaElement | CreateNull
(
const FName Tag |
||
| FSchemaElement | CreateOrExclusive
(
const FSchemaOrExclusiveParameters Parameters, |
||
| FSchemaElement | CreateOrInclusive
(
const FSchemaOrInclusiveParameters Parameters, |
||
| FSchemaElement | CreateSet
(
const FSchemaSetParameters Parameters, |
||
| void | Empty () |
Empty all internal buffers of elements. This invalidates all existing elements. | |
| FSchemaAndParameters | GetAnd
(
const FSchemaElement Element |
||
| FSchemaArrayParameters | GetArray
(
const FSchemaElement Element |
||
| FSchemaContinuousParameters | GetContinuous
(
const FSchemaElement Element |
||
| int32 | GetEncodedVectorSize
(
const FSchemaElement Element |
Get the encoded vector size of the given element. | |
| FSchemaEncodingParameters | GetEncoding
(
const FSchemaElement Element |
||
| uint32 | Get the current generation. | ||
| int32 | GetObservationVectorSize
(
const FSchemaElement Element |
Get the observation vector size of the given element. | |
| FSchemaOrExclusiveParameters | GetOrExclusive
(
const FSchemaElement Element |
||
| FSchemaOrInclusiveParameters | GetOrInclusive
(
const FSchemaElement Element |
||
| FSchemaSetParameters | GetSet
(
const FSchemaElement Element |
||
| FName | GetTag
(
const FSchemaElement Element |
Gets the tag of the given element. | |
| EType | GetType
(
const FSchemaElement Element |
Gets the type of the given element. | |
| bool | IsEmpty () |
Checks if the given schema is empty of elements. | |
| bool | IsValid
(
const FSchemaElement Element |
Checks if the given element is valid. | |
| void | Reset () |
Reset all internal buffers (without freeing memory). This invalidates all existing elements. |