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