Navigation
API > API/Plugins > API/Plugins/Learning
References
| Module | Learning |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningPolicy.h |
| Include | #include "LearningPolicy.h" |
Syntax
struct FNeuralNetworkPolicy
Remarks
Neural-network based policy object. Stores various settings and intermediate storage required to evaluate the given network for the provided number of instances.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNeuralNetworkPolicy
(
const int32 InMaxInstanceNum, |
Create a new Policy Object which takes the encoded observation state, and the memory state, and outputs the encoded action state. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Evaluate
(
TLearningArrayView< 2, float > OutputActionVectorsEncoded, |
Evaluate the Policy | |
| const TSharedPtr< FNeuralNetwork > & | Gets the NeuralNetwork associated with this Policy | ||
| void | UpdateNeuralNetwork
(
const TSharedPtr< FNeuralNetwork >& NewNeuralNetwork |
Sets the NeuralNetwork and re-creates the NeuralNetworkInference object |