Documentation of 'jsat.lossfunctions.LossC' Java class
LossC
jsat.lossfunctions

Interface LossC

    • Method Detail

      • getLoss

        double getLoss(double pred,
                       double y)
        Computes the getLoss for a classification problem.
        Specified by:
        getLoss in interface LossFunc
        Parameters:
        pred - the predicted score in (-Infinity, Infinity)
        y - the true class label in {-1, 1}
        Returns:
        the getLoss in [0, Inf)
      • getDeriv

        double getDeriv(double pred,
                        double y)
        Computes the first derivative of the getLoss function.
        Specified by:
        getDeriv in interface LossFunc
        Parameters:
        pred - the predicted score in (-Infinity, Infinity)
        y - the true class label in {-1, 1}
        Returns:
        the first derivative of the getLoss
      • getDeriv2

        double getDeriv2(double pred,
                         double y)
        Computes the second derivative of the getLoss function.
        Specified by:
        getDeriv2 in interface LossFunc
        Parameters:
        pred - the predicted score in (-Infinity, Infinity)
        y - the true class label in {-1, 1}
        Returns:
        the second derivative of the getLoss function
      • getClassification

        CategoricalResults getClassification(double score)
        Given the score value of a data point, this returns the classification results.
        Parameters:
        score - the score for a data point
        Returns:
        the categorical results with the correct probability values for this loss function.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.