public interface Loss
extends scala.Serializable
| Modifier and Type | Method and Description |
|---|---|
double |
computeError(TreeEnsembleModel model,
RDD<LabeledPoint> data)
Method to calculate error of the base learner for the gradient boosting calculation.
|
double |
gradient(TreeEnsembleModel model,
LabeledPoint point)
Method to calculate the gradients for the gradient boosting calculation.
|
double gradient(TreeEnsembleModel model, LabeledPoint point)
model - Model of the weak learner.point - Instance of the training dataset.double computeError(TreeEnsembleModel model, RDD<LabeledPoint> data)
model - Model of the weak learner.data - Training dataset: RDD of LabeledPoint.