]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(quickadapter): consolidate custom distance metrics in Pareto front selection
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 Jan 2026 15:16:18 +0000 (16:16 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 Jan 2026 15:16:18 +0000 (16:16 +0100)
commit15b57a32a9cdf100c0b6712745e1b4b35efad57a
tree8293049e68ec46caab19eeb6c34cc849720050ec
parente8e00652a371ff080b54c59746f84bd6785f3ac4
refactor(quickadapter): consolidate custom distance metrics in Pareto front selection

Extract shared distance metric logic from _compromise_programming_scores and
_topsis_scores into reusable static methods:

- Add _POWER_MEAN_MAP class constant as single source of truth for power values
- Add _power_mean_metrics_set() cached method for metric name lookup
- Add _hellinger_distance() for Hellinger/Shellinger computation
- Add _power_mean_distance() for generalized mean computation with validation
- Add _weighted_sum_distance() for weighted sum computation

Harmonize with existing validation API using ValidationMode and proper contexts.
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py
quickadapter/user_data/strategies/QuickAdapterV3.py