Navigation
API > API/Plugins > API/Plugins/Learning
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningAction.h |
| Include | #include "LearningAction.h" |
Syntax
struct FSchema
Remarks
Action Schema
This object allows you to construct a description of the kind of actions you might want to be generated by 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 action elements that are created.
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSchemaElement | CreateAnd
(
const FSchemaAndParameters Parameters, |
||
| FSchemaElement | CreateArray
(
const FSchemaArrayParameters Parameters, |
||
| FSchemaElement | CreateContinuous
(
const FSchemaContinuousParameters Parameters, |
||
| FSchemaElement | CreateDiscreteExclusive
(
const FSchemaDiscreteExclusiveParameters Parameters, |
||
| FSchemaElement | CreateDiscreteInclusive
(
const FSchemaDiscreteInclusiveParameters Parameters, |
||
| FSchemaElement | CreateEncoding
(
const FSchemaEncodingParameters Parameters, |
||
| FSchemaElement | CreateNull
(
const FName Tag |
||
| FSchemaElement | CreateOrExclusive
(
const FSchemaOrExclusiveParameters Parameters, |
||
| FSchemaElement | CreateOrInclusive
(
const FSchemaOrInclusiveParameters Parameters, |
||
| void | Empty () |
Empty all internal buffers of elements. This invalidates all existing elements. | |
| int32 | GetActionDistributionVectorSize
(
const FSchemaElement Element |
Get the action distribution vector size of the given element. | |
| int32 | GetActionVectorSize
(
const FSchemaElement Element |
Get the action vector size of the given element. | |
| FSchemaAndParameters | GetAnd
(
const FSchemaElement Element |
||
| FSchemaArrayParameters | GetArray
(
const FSchemaElement Element |
||
| FSchemaContinuousParameters | GetContinuous
(
const FSchemaElement Element |
||
| FSchemaDiscreteExclusiveParameters | GetDiscreteExclusive
(
const FSchemaElement Element |
||
| FSchemaDiscreteInclusiveParameters | GetDiscreteInclusive
(
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. | ||
| FSchemaOrExclusiveParameters | GetOrExclusive
(
const FSchemaElement Element |
||
| FSchemaOrInclusiveParameters | GetOrInclusive
(
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 | 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. |