123456789101112131415161718 |
- <?xml version="1.0" encoding="utf-8"?>
- <ScriptCanvas Include="Nodes/ComputeCost.h" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <Class Name="ComputeCost"
- QualifiedName="MachineLearning::ComputeCost"
- PreferredClassName="Compute cost gradient"
- Category="MachineLearning"
- Description="Calculates the cost of a machine learning model against a set of activations and a set of expected outputs.">
- <Input Name="In" DisplayGroup="In" Description="Parameters controlling cost calculation">
- <Parameter Name="Model" Type="MachineLearning::INeuralNetworkPtr" Description="The model to compute the cost of."/>
- <Parameter Name="CostFunction" Type="MachineLearning::LossFunctions" Description="The loss function to use to compute the cost."/>
- <Parameter Name="Activations" Type="AZ::VectorN" Description="The set of activation values to apply to the model (must match the models input count)."/>
- <Parameter Name="ExpectedOutput" Type="AZ::VectorN" Description="The expected outputs given the provided inputs (must match the models output count)."/>
- <Return Name="Cost" Type="float" Shared="true"/>
- </Input>
- </Class>
- </ScriptCanvas>
|