ComputeCost.ScriptCanvasNodeable.xml 1.2 KB

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