Interface Metric
public interface Metric
The class metrics keeps track of metric states, which enables them to
be able to calculate values through accumulations and synchronizations
across multiple processes.
-
Method Summary
Modifier and TypeMethodDescriptiondoublecompute()Computes the metric value from the metric state, which are updated by previous update() calls.name()Returns the name of metric.voidreset()Resets the metric state variables to their default value.voidUpdates the metric states with input data.
-
Method Details
-
name
-
update
-
compute
double compute()Computes the metric value from the metric state, which are updated by previous update() calls. The compute frequency can be less than the update frequency.- Returns:
- the metric value.
-
reset
void reset()Resets the metric state variables to their default value. Usually this is called at the end of every epoch to clean up metric states.
-