Aggregation Metrics
The d9d framework includes fundamental aggregation metrics designed to safely compute global statistics and reductions across distributed training environments.
d9d.metric.impl.aggregation.SumMetric
d9d.metric.impl.aggregation.WeightedMeanMetric
Computes the weighted mean of values.
Tracks the sum of weighted values and the sum of weights.
accumulated_weight
property
Returns the total weight accumulated so far.
Returns:
| Type | Description |
|---|---|
Tensor
|
Scalar tensor with total weight. |
__init__()
Constructs a WeightedMeanMetric object.