MetricRegistry

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

class MetricRegistry[source]

Bases: ComponentRegistry[Type[Metric]]

Name-to-implementation registry for evaluation metrics.

The domain is metric (singular), holding the nine built-in metrics migrated from the v0.1 habit.core.machine_learning.evaluation registry under their original spellings.

domain: ClassVar[str] = 'metric'

Plugin domain name; snake_case of the protocol class, singular. The entry point group is f"habit.{domain}".

kind: str = 'metric'

Human-readable component kind, used only in error messages.