jsat.lossfunctions
Interface LossR
-
- All Superinterfaces:
- LossFunc, java.io.Serializable
- All Known Implementing Classes:
- AbsoluteLoss, EpsilonInsensitiveLoss, HuberLoss, SquaredLoss
public interface LossR extends LossFunc
Specifies a getLoss function for regression problems.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description LossRclone()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 regression problem.doublegetRegression(double score)Given the score value of a data point, this returns the correct numeric result.-
Methods inherited from interface jsat.lossfunctions.LossFunc
getConjugate, getDeriv2Max, lipschitz
-
-
-
-
Method Detail
-
getLoss
double getLoss(double pred, double y)Computes the getLoss for a regression 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.
-
getRegression
double getRegression(double score)
Given the score value of a data point, this returns the correct numeric result. For most regression problems this simply returns the score value.- Parameters:
score- the score for a data point- Returns:
- the correct numeric regression value for this loss function
-
-
DataMelt 3.0 © DataMelt by jWork.ORG