11 struct LossCInfo :
public GraphNodeCInfo
41 SMARTENGINE_DECLARE_CLASS(
ILoss)
44 virtual float GetLoss() = 0;
58 SMARTENGINE_EXPORT ObjPtr Loss_CreateInstance(
const LossCInfo& cinfo);
59 SMARTENGINE_EXPORT
float Loss_GetLoss(ObjPtr
object);
SMARTENGINE_EXPORT ObjectPtr< ILoss > CreateLoss(const LossCInfo &cinfo)
Creates an instance of ILoss.
A logical node in the AI graph. Some nodes, like NeuralNetwork, are composed of other nodes (neuron l...
Definition: GraphNode.h:34
const char * name
The name of this node.
Definition: GraphNode.h:21
IGraphNode * networkOutput
The output of the network. This is the actual value in the loss calculation. Usually a NeuralNetwork ...
Definition: Loss.h:22
LossCInfo()
Definition: Loss.h:16
Smart pointer to an IObject. Automatic ref counting.
Definition: ObjectPtr.h:16
Definition: A2CTrainer.h:10
Data used to construct an ILoss instance
Definition: Loss.h:15
The loss of a NeuralNetwork is computed using the formula (Expected Ouput - Actual Output)^2 The mean...
Definition: Loss.h:39
IGraphNode * targetValues
The output to compare against. This is the expected value in the loss calculation....
Definition: Loss.h:28