paddlets.metrics.base
- class Metric(mode: str = 'normal', **kwargs)[source]
Bases:
ABCAbstract base class used to build new Metric.
- Parameters
mode (str) – Supported metric modes, only normal, prob and anomaly are valid values. Set to normal for non-probability use cases, set to prob for probability use cases, set to anomaly for anomaly dection.
kwargs – Keyword parameters of specific metric functions.