nos.metrics package¶
Submodules¶
nos.metrics.error_metrics module¶
nos.metrics.metric module¶
- class nos.metrics.metric.Metric(name: str)¶
Bases:
ABC
Base class for all metrics.
- abstract __call__(operator: Operator, dataset: OperatorDataset) Dict ¶
Evaluates the metric.
- Parameters:
operator – operator for which the metric is evaluated.
dataset – dataset on which the metric is evaluated.
- Returns:
dict containing the results of the metric (keys “value” and “unit” should be in the dict).
nos.metrics.operator_metrics module¶
Module contents¶
- class nos.metrics.Metric(name: str)¶
Bases:
ABC
Base class for all metrics.
- abstract __call__(operator: Operator, dataset: OperatorDataset) Dict ¶
Evaluates the metric.
- Parameters:
operator – operator for which the metric is evaluated.
dataset – dataset on which the metric is evaluated.
- Returns:
dict containing the results of the metric (keys “value” and “unit” should be in the dict).