[docs]classMetrics(Protocol):"""Protocol for Metrics. Notes ----- The main reason of this protocol is proper duck typing (PEP-544) [1]_ when using metrics such as ``RegressionMetrics`` or ``ClassificationMetrics`` in pipelines. References ---------- .. [1] https://peps.python.org/pep-0544/ """