Datum
- The type of the instances added to the aggregator to update the loss and gradient.Agg
- Specialization of DifferentiableLossAggregator
. Classes that subclass this
type need to use this parameter to specify the concrete type of the aggregator.public interface DifferentiableLossAggregator<Datum,Agg extends DifferentiableLossAggregator<Datum,Agg>>
extends scala.Serializable
add
method.
Modifier and Type | Method and Description |
---|---|
Agg |
add(Datum instance)
Add a single data point to this aggregator.
|
int |
dim()
The dimension of the gradient array.
|
Vector |
gradient()
The current weighted averaged gradient.
|
double[] |
gradientSumArray()
Array of gradient values that are mutated when new instances are added to the aggregator.
|
double |
loss()
The current loss value of this aggregator.
|
double |
lossSum() |
Agg |
merge(Agg other)
Merge two aggregators.
|
double |
weight()
Weighted count of instances in this aggregator.
|
double |
weightSum() |
int dim()
Vector gradient()
double[] gradientSumArray()
double loss()
double lossSum()
Agg merge(Agg other)
double weight()
double weightSum()