CADETProcess.metric_space.Objective

CADETProcess.metric_space.Objective#

class CADETProcess.metric_space.Objective(metric: Metric, minimize: bool = True)[source]#

Bases: object

Direction annotation on a metric.

Parameters:
metricMetric

The annotated metric.

minimizebool

Optimization direction; True minimizes, False maximizes.

property labels: list[str]#

Labels of the annotated metric, one per scalar entry.

property n_metrics: int#

Number of scalar entries of the annotated metric.

property name: str#

Name of the annotated metric.