Navigation
API > API/Plugins > API/Plugins/Learning
Neural-network based critic object. Stores various settings and intermediate storage required to evaluate the given network for the provided number of instances.
| Name | FNeuralNetworkCritic |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/Learning/Public/LearningCritic.h |
| Include Path | #include "LearningCritic.h" |
Syntax
struct FNeuralNetworkCritic
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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. | LearningCritic.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Input | TLearningArray< 2, float > | LearningCritic.h | ||
| MemoryStateNum | int32 | LearningCritic.h | ||
| NeuralNetworkFunction | TSharedPtr< FNeuralNetworkFunction > | LearningCritic.h | ||
| ObservationEncodedNum | int32 | LearningCritic.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Evaluate
(
TLearningArrayView< 1, float > OutputReturns, |
Evaluate the Critic | LearningCritic.h | |
const TSharedPtr< FNeuralNetwork > & GetNeuralNetwork() |
Gets the NeuralNetwork associated with this Critic | LearningCritic.h | |
void UpdateNeuralNetwork
(
const TSharedPtr< FNeuralNetwork >& NewNeuralNetwork |
Sets the NeuralNetwork and re-creates the NeuralNetworkInference object | LearningCritic.h |