towhee.functional.mixins.metric.Collector

class towhee.functional.mixins.metric.Collector(metrics: Optional[list] = None, labels: Optional[dict] = None, scores: Optional[dict] = None)[source]

Bases: object

Collector class for metric

Methods

add_labels

add_scores

__init__(metrics: Optional[list] = None, labels: Optional[dict] = None, scores: Optional[dict] = None)[source]

Initialize self. See help(type(self)) for accurate signature.