Loss Description Arguments
LossQuadratic Quadratic differences between prediction and response. This loss corresponds to the Gaussian distribution.
offset
Custom offset for initializing the model
LossAbsolute Absolute differences between prediction and response. This loss corresponds to the Laplace distribution.
offset
Custom offset for initializing the model
LossBinomial Binary classification loss that corresponds to the binomial distribution with logit link. Labels are coded as -1 and 1.
offset
Custom offset for initializing the model
LossCustom Custom loss by using custom C++ functions.
loss
R function to calculates the loss (vectorized)
R function to calculate the gradient
R function to compute the optimal constant initialization
LossCustomCpp Custom loss by using custom C++ functions.
C++ pointer to a function that defines the loss
C++ pointer to a function to calculate the gradient
C++ pointer to a function to compute the optimal constant initialization