Method to calculate loss when the predictions are already known.
Method to calculate loss when the predictions are already known.
Predicted label.
True label.
Measure of model error on datapoint.
This method is used in the method evaluateEachIteration to avoid recomputing the predicted values from previously fit trees.
Method to calculate the gradients for the gradient boosting calculation.
Method to calculate the gradients for the gradient boosting calculation.
Predicted feature
True label.
Loss gradient.