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 Mapping is returned,

it will be (shallow) flattened into engine.state.metrics when completed() is called.

Raises:

NotComputableError: raised when the metric cannot be computed.

workflow.ignite.metrics.MatthewsCorrelationCoefficient(output_transform)[source]