weight_by_regime function

Regime-Based Adaptive Weighting