QoL and metric value inverter

This commit is contained in:
2026-03-04 11:10:45 -06:00
parent 8dfe3607b1
commit f57ac7d6dc
30 changed files with 556 additions and 118 deletions

View File

@@ -11,9 +11,10 @@ class MetricBound:
metric_name: str
weight: float # 0.01.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