latte.metrics.base

Module Contents

Classes

LatteMetric

Helper class that provides a standard way to create an ABC using

MetricBundle

class latte.metrics.base.LatteMetric

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

add_state(self, name: str, default: Union[list, numpy.ndarray])
abstract update_state(self)
reset_state(self)
abstract compute(self)
class latte.metrics.base.MetricBundle(metrics: Union[List[LatteMetric], Dict[str, LatteMetric]])
update_state(self, **kwargs)
reset_state(self)
compute(self) Dict[str, float]