Package ml.dmlc.xgboost4j.java
Interface IObjective
- All Superinterfaces:
Serializable
interface for customize Object function
-
Method Summary
Modifier and TypeMethodDescriptionList<float[]>
getGradient
(float[][] predicts, DMatrix dtrain) user define objective function, return gradient and second order gradient
-
Method Details
-
getGradient
user define objective function, return gradient and second order gradient- Parameters:
predicts
- untransformed margin predictsdtrain
- training data- Returns:
- List with two float array, correspond to first order grad and second order grad
-