Interface IObjective

All Superinterfaces:
Serializable

public interface IObjective extends Serializable
interface for customize Object function
  • Method Summary

    Modifier and Type
    Method
    Description
    List<float[]>
    getGradient(float[][] predicts, DMatrix dtrain)
    user define objective function, return gradient and second order gradient
  • Method Details

    • getGradient

      List<float[]> getGradient(float[][] predicts, DMatrix dtrain)
      user define objective function, return gradient and second order gradient
      Parameters:
      predicts - untransformed margin predicts
      dtrain - training data
      Returns:
      List with two float array, correspond to first order grad and second order grad