Package biz.k11i.xgboost.learner
Class ObjFunction.RegObjFunction
java.lang.Object
biz.k11i.xgboost.learner.ObjFunction
biz.k11i.xgboost.learner.ObjFunction.RegObjFunction
- All Implemented Interfaces:
Serializable
- Enclosing class:
ObjFunction
Regression.
-
Nested Class Summary
Nested classes/interfaces inherited from class biz.k11i.xgboost.learner.ObjFunction
ObjFunction.RegLossObjLogistic, ObjFunction.RegLossObjLogistic_Jafama, ObjFunction.RegObjFunction, ObjFunction.SoftmaxMultiClassObjClassify, ObjFunction.SoftmaxMultiClassObjProb, ObjFunction.SoftmaxMultiClassObjProb_Jafama -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatpredTransform(float pred) Transforms a prediction value.float[]predTransform(float[] preds) Transforms prediction values.floatprobToMargin(float prob) Methods inherited from class biz.k11i.xgboost.learner.ObjFunction
fromName, register, useFastMathExp
-
Constructor Details
-
RegObjFunction
RegObjFunction()
-
-
Method Details
-
predTransform
public float[] predTransform(float[] preds) Description copied from class:ObjFunctionTransforms prediction values.- Overrides:
predTransformin classObjFunction- Parameters:
preds- prediction- Returns:
- transformed values
-
predTransform
public float predTransform(float pred) Description copied from class:ObjFunctionTransforms a prediction value.- Overrides:
predTransformin classObjFunction- Parameters:
pred- prediction- Returns:
- transformed value
-
probToMargin
public float probToMargin(float prob) - Overrides:
probToMarginin classObjFunction
-