public abstract class AbstractMetrics<M extends MetricValues> extends Object implements Metric<Double>
Modifier and Type | Field and Description |
---|---|
protected Function<M,Double> |
metric
The main metric to get individual score.
|
Constructor and Description |
---|
AbstractMetrics() |
Modifier and Type | Method and Description |
---|---|
double |
score(Iterator<LabelPair<Double>> iter)
Calculates score.
|
abstract M |
scoreAll(Iterator<LabelPair<Double>> iter)
Calculates metrics values.
|
AbstractMetrics |
withMetric(Function<M,Double> metric) |
protected Function<M extends MetricValues,Double> metric
public abstract M scoreAll(Iterator<LabelPair<Double>> iter)
iter
- Iterator that supplies pairs of truth values and predicated.public AbstractMetrics withMetric(Function<M,Double> metric)
GridGain In-Memory Computing Platform : ver. 8.9.19 Release Date : April 10 2025