Metric
minnt.Metric
Bases: Protocol
An abstract metric interface.
Note
Metrics are expected to be instances of torch.nn.Module and are stored in a torch.nn.ModuleDict.
update
Update the internal state of the metric with new predictions and gold targets.
Parameters:
Returns:
-
Any–anything; Minnt metrics return
Self, but any return value is allowed in the generic interface (torchmetricsmetrics returnNone, for example).