Navigation
API > API/Plugins > API/Plugins/Learning
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.
| Name | FSchema |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningAction.h |
| Include Path | #include "LearningAction.h" |
Syntax
struct FSchema
Inheritance Hierarchy
- FSchema
- FSchemaBase → FSchema
Structs
| Name | Remarks |
|---|---|
| FAndData | |
| FArrayData | |
| FContinuousData | |
| FDiscreteExclusiveData | |
| FDiscreteInclusiveData | |
| FEncodingData | |
| FNamedDiscreteExclusiveData | |
| FNamedDiscreteInclusiveData | |
| FOrExclusiveData | |
| FOrInclusiveData |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActionDistributionVectorSizes | TArray< int32 > | LearningAction.h | ||
| ActionModifierVectorSizes | TArray< int32 > | LearningAction.h | ||
| ActionVectorSizes | TArray< int32 > | LearningAction.h | ||
| AndData | TArray< FAndData > | LearningAction.h | ||
| ArrayData | TArray< FArrayData > | LearningAction.h | ||
| ContinuousData | TArray< FContinuousData > | These are indexed based on the type and the index found in TypeDataIndices | LearningAction.h | |
| DiscreteExclusiveData | TArray< FDiscreteExclusiveData > | LearningAction.h | ||
| DiscreteInclusiveData | TArray< FDiscreteInclusiveData > | LearningAction.h | ||
| EncodedVectorSizes | TArray< int32 > | LearningAction.h | ||
| EncodingData | TArray< FEncodingData > | LearningAction.h | ||
| Generation | uint32 | LearningAction.h | ||
| NamedDiscreteExclusiveData | TArray< FNamedDiscreteExclusiveData > | LearningAction.h | ||
| NamedDiscreteInclusiveData | TArray< FNamedDiscreteInclusiveData > | LearningAction.h | ||
| OrExclusiveData | TArray< FOrExclusiveData > | LearningAction.h | ||
| OrInclusiveData | TArray< FOrInclusiveData > | LearningAction.h | ||
| PriorProbabilities | TArray< float > | This is an array of all the prior probabilities, referenced by other elements. | LearningAction.h | |
| SubElementNames | TArray< FName > | This is an array of all the SubElements and their names, referenced by other elements | LearningAction.h | |
| SubElementObjects | TArray< FSchemaElement > | LearningAction.h | ||
| Tags | TArray< FName > | LearningAction.h | ||
| TypeDataIndices | TArray< int32 > | LearningAction.h | ||
| Types | TArray< EType > | These have entries for each Schema Element | LearningAction.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSchemaElement CreateAnd
(
const FSchemaAndParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateArray
(
const FSchemaArrayParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateContinuous
(
const FSchemaContinuousParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateDiscreteExclusive
(
const FSchemaDiscreteExclusiveParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateDiscreteInclusive
(
const FSchemaDiscreteInclusiveParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateEncoding
(
const FSchemaEncodingParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateNamedDiscreteExclusive
(
const FSchemaNamedDiscreteExclusiveParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateNamedDiscreteInclusive
(
const FSchemaNamedDiscreteInclusiveParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateNull
(
const FName Tag |
LearningAction.h | ||
FSchemaElement CreateOrExclusive
(
const FSchemaOrExclusiveParameters Parameters, |
LearningAction.h | ||
FSchemaElement CreateOrInclusive
(
const FSchemaOrInclusiveParameters Parameters, |
LearningAction.h | ||
void Empty() |
Empty all internal buffers of elements. This invalidates all existing elements. | LearningAction.h | |
int32 GetActionDistributionVectorSize
(
const FSchemaElement Element |
Get the action distribution vector size of the given element. | LearningAction.h | |
int32 GetActionModifierVectorSize
(
const FSchemaElement Element |
Get the action modifier vector size of the given element. | LearningAction.h | |
int32 GetActionVectorSize
(
const FSchemaElement Element |
Get the action vector size of the given element. | LearningAction.h | |
FSchemaAndParameters GetAnd
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaArrayParameters GetArray
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaContinuousParameters GetContinuous
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaDiscreteExclusiveParameters GetDiscreteExclusive
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaDiscreteInclusiveParameters GetDiscreteInclusive
(
const FSchemaElement Element |
LearningAction.h | ||
int32 GetEncodedVectorSize
(
const FSchemaElement Element |
Get the encoded vector size of the given element. | LearningAction.h | |
FSchemaEncodingParameters GetEncoding
(
const FSchemaElement Element |
LearningAction.h | ||
uint32 GetGeneration() |
Get the current generation. | LearningAction.h | |
FSchemaNamedDiscreteExclusiveParameters GetNamedDiscreteExclusive
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaNamedDiscreteInclusiveParameters GetNamedDiscreteInclusive
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaOrExclusiveParameters GetOrExclusive
(
const FSchemaElement Element |
LearningAction.h | ||
FSchemaOrInclusiveParameters GetOrInclusive
(
const FSchemaElement Element |
LearningAction.h | ||
FName GetTag
(
const FSchemaElement Element |
Gets the tag of the given element. | LearningAction.h | |
EType GetType
(
const FSchemaElement Element |
Gets the type of the given element. | LearningAction.h | |
bool IsEmpty() |
Checks if the given schema is empty of elements. | LearningAction.h | |
bool IsValid
(
const FSchemaElement Element |
Checks if the given element is valid. | LearningAction.h | |
void Reset() |
Reset all internal buffers (without freeing memory). This invalidates all existing elements. | LearningAction.h |