zero.metrics.Metric.calculate¶
-
Metric.
calculate
(*args, **kwargs)[source]¶ Calculate metric for a single input.
The method does the following:
resets the metric
updates the metric with
(*args, **kwargs)
computes the result
resets the metric
returns the result
- Parameters
*args – arguments for
Metric.update
arguments for Metric.update (**kwargs) –
- Returns
The result of
Metric.compute
.- Return type
Any