jsat.lossfunctions
Interface LossC
-
- All Superinterfaces:
- LossFunc, java.io.Serializable
- All Known Subinterfaces:
- LossMC
- All Known Implementing Classes:
- HingeLoss, LogisticLoss, SoftmaxLoss
public interface LossC extends LossFunc
Specifies a loss function for binary classification problems.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description LossCclone()CategoricalResultsgetClassification(double score)Given the score value of a data point, this returns the classification results.doublegetDeriv(double pred, double y)Computes the first derivative of the getLoss function.doublegetDeriv2(double pred, double y)Computes the second derivative of the getLoss function.doublegetLoss(double pred, double y)Computes the getLoss for a classification problem.-
Methods inherited from interface jsat.lossfunctions.LossFunc
getConjugate, getDeriv2Max, lipschitz
-
-
-
-
Method Detail
-
getLoss
double getLoss(double pred, double y)Computes the getLoss for a classification problem.
-
getDeriv
double getDeriv(double pred, double y)Computes the first derivative of the getLoss function.
-
getDeriv2
double getDeriv2(double pred, double y)Computes 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