From 70687f4bf140d655b95a836250cbf967066bd4e9 Mon Sep 17 00:00:00 2001 From: hmo Date: Sat, 15 Aug 2026 08:13:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20strategy=5Frouter=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E5=B7=B2=E8=AF=81=E4=BC=AA=E7=AD=96=E7=95=A5(v=5Fmr/v=5Fmr=5Fs?= =?UTF-8?q?el/v=5Fcombo)=E2=80=94=E2=80=94=E8=AF=81=E4=BC=AA=E7=9A=84?= =?UTF-8?q?=E7=AD=96=E7=95=A5=E7=BB=9D=E4=B8=8D=E6=BF=80=E6=B4=BB,?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E5=89=8D=E7=AB=AFDEPRECATED?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/strategy_router.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/profile-scripts/strategy_router.py b/deploy/profile-scripts/strategy_router.py index 12fa6d6f..a826ddd9 100644 --- a/deploy/profile-scripts/strategy_router.py +++ b/deploy/profile-scripts/strategy_router.py @@ -26,6 +26,9 @@ sys.path.insert(0, "/home/hmo/MoFin") OUT = Path("/home/hmo/MoFin/data/strategy_weights.json") DEFAULT_FAMILY = "mr" +# 已证伪策略(2026-08-15 对齐前端 DEPRECATED——证伪的策略绝不激活) +DEPRECATED = {"v_mr", "v_mr_sel", "v_combo"} + FAMILY_MAP = { "v_weak": "mr", "v_oversold": "mr", "v_mr": "mr", "v_mr2": "mr", "v_mr3": "mr", "v_mr4": "mr", "v_mr_sel": "mr", "v_lurk_v1": "mr", "v_lurk_v2": "mr", "v_lurk_v3": "mr", @@ -114,6 +117,8 @@ def route(regime, temp, perf): for name, regs in perf.items(): if not regs: continue + if name in DEPRECATED: # 已证伪策略绝不激活(2026-08-15) + continue cur = regs.get(current_regime) best = max(regs.items(), key=lambda x: x[1].get("win_rate", 0)) best_wr = best[1].get("win_rate", 0)