Class Loss

    • Constructor Summary

      Constructors 
      Constructor Description
      Loss()  
    • Constructor Detail

      • Loss

        public Loss()
    • Method Detail

      • getMetric

        public double getMetric​(java.util.ArrayList<Matrix> output,
                                java.util.ArrayList<Matrix> expected)
        Description copied from class: Metric
        Get the value of the metric.
        Specified by:
        getMetric in class Metric
        Parameters:
        output - output of network
        expected - expected output
        Returns:
        the metric value
      • getFormatString

        public java.lang.String getFormatString()
        Description copied from class: Metric
        Get the string to format the metric.

        Return a string that can be used with printf in conjunction with the metric.
        Example: "M: %.2f"

        Specified by:
        getFormatString in class Metric
        Returns:
        the string
      • getLoss

        public abstract double getLoss​(java.util.ArrayList<Matrix> out,
                                       java.util.ArrayList<Matrix> y)
        Get the loss.
        Parameters:
        out - output of network
        y - correct output
        Returns:
        the loss
      • getLoss

        public double getLoss​(Matrix out,
                              Matrix y)
        Get the loss.
        Parameters:
        out - output of network
        y - correct output
        Returns:
        the loss