workflow.ignite.metrics package¶
-
class
workflow.ignite.metrics.ReduceMetricsLambda(reduce_fn, f, *args, **kwargs)[source]¶ -
compute()[source]¶ Computes the metric based on it’s accumulated state.
By default, this is called at the end of each epoch.
- Returns:
- Any: | the actual quantity of interest. However, if a
Mappingis returned, it will be (shallow) flattened into engine.state.metrics when
completed()is called.
- Any: | the actual quantity of interest. However, if a
- Raises:
NotComputableError: raised when the metric cannot be computed.
-