Interface ILossFunction<Y>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double loss​(Y expected, Y actual)
      Computes and returns the loss for the given element with respect to the ground truth value.
    • Method Detail

      • loss

        double loss​(Y expected,
                    Y actual)
        Computes and returns the loss for the given element with respect to the ground truth value.
        Parameters:
        expected - The ground truth value to compare the given element to.
        actual - The element to compare to the expected value.
        Returns:
        The loss for the given element with respect to the ground truth value.