CADETProcess.metric_space.Constraint#
- class CADETProcess.metric_space.Constraint(metric: Metric, bound: float | ArrayLike = 0.0, comparison_operator: Literal['le', 'ge'] = 'le')[source]#
Bases:
objectOperator/bound annotation on a metric; canonical form is
g <= 0.- Parameters:
- metricMetric
The annotated metric.
- boundfloat or array-like
Constraint bound. A scalar applies to every entry; an array must match the metric’s
n_metrics.- comparison_operator{“le”, “ge”}
Direction of the comparison:
value <= boundorvalue >= bound.