]> Piment Noir Git Repositories - freqai-strategies.git/commit
refactor(quickadapter): unify validation helpers with ValidationMode support
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 Jan 2026 14:21:16 +0000 (15:21 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 2 Jan 2026 14:21:16 +0000 (15:21 +0100)
commite8e00652a371ff080b54c59746f84bd6785f3ac4
tree083c5cf805f70abb9b9fa276a113c483bb9acf52
parent9b1d0679fdeab119c97d24191416eeeab2e8d10a
refactor(quickadapter): unify validation helpers with ValidationMode support

- Add ValidationMode type for "warn", "raise", "none" behavior
- Rename _UNSUPPORTED_CLUSTER_METRICS to _UNSUPPORTED_WEIGHTS_METRICS
- Refactor _validate_minkowski_p, _validate_quantile_q with mode support
- Add _validate_power_mean_p, _validate_metric_weights_support, _validate_label_weights
- Add _validate_enum_value for generic enum validation
- Add _prepare_knn_kwargs for sklearn-specific weight handling
- Remove deprecated _normalize_weights function
- Update all call sites to use new unified API
quickadapter/user_data/freqaimodels/QuickAdapterRegressorV3.py