]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(weights): tighten label-weight pipeline contract
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 May 2026 11:42:38 +0000 (13:42 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 25 May 2026 11:42:38 +0000 (13:42 +0200)
commit64bbd71f52754d7a75f5ce28d8d25512406576a6
tree73ec38fa27e3a1c3274d6b16e353f37bbec2ae19
parentcc5f842fc7f03e2a1d4fb5833c42800c3fb8da06
refactor(weights): tighten label-weight pipeline contract

- compute_label_weights raises on strategy='none'; callers must skip
- _scatter_weights default_weight is required (no implicit baseline)
- gate weight-column writes on is_weighting_active (strategy AND pivots)
- demote 'label weight column absent' log to debug (legitimate path)
- remove DEFAULT_LABEL_WEIGHT (conflated three unrelated 1.0 semantics)
- harden sanitize_and_renormalize fallback when drop_mask covers all rows
- add Final[str] / Final[re.Pattern[str]] for type coherence
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/QuickAdapterV3.py
quickadapter/user_data/strategies/Utils.py