CustomMetric#

class CustomMetric[source]#

Abstract class for defining custom metrics.

The class defines the interface for custom metrics.

__init__(*args, **kwargs)#
__new__(*args, **kwargs)#

Methods

CustomMetric.compute()

Compute the metric.

CustomMetric.reset()

Reset the metric.

CustomMetric.update(output)

Update the metric with the output of the model.