QoL and metric value inverter
This commit is contained in:
@@ -11,9 +11,10 @@ class MetricBound:
|
||||
|
||||
metric_name: str
|
||||
weight: float # 0.0–1.0
|
||||
norm_min: float # Below this → score 0
|
||||
norm_max: float # Above this → score 1
|
||||
norm_min: float # Below this → score 0 (or 1 if lower_is_better)
|
||||
norm_max: float # Above this → score 1 (or 0 if lower_is_better)
|
||||
unit: str = ""
|
||||
lower_is_better: bool = False # Invert scale (e.g., cost: lower = better)
|
||||
metric_id: int | None = None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user