Thibaut Forest Claude Fable 5 commited on
Commit ·
826bd69
1
Parent(s): 401f171
cv: p_star hook in run_bgkf + 'ft2a10' candidate (the head/alpha-1.0 model) - one-liner CLI
Browse files
batteryswap_example/cv.py
CHANGED
|
@@ -176,7 +176,7 @@ VARIANTS = {'base': _base, 'ranks_add': _ranks_add, 'vrel': _vrel,
|
|
| 176 |
# --------------------------------------------------------------------------
|
| 177 |
|
| 178 |
def run_bgkf(dataset_path=Path('dataset'), kind=None, variant='base',
|
| 179 |
-
blend=None, n_folds=N_FOLDS, origins=range(48)):
|
| 180 |
"""THE SCORE. Per fold: one fit on the TRAIN buildings' full closed-pair
|
| 181 |
history (deployment-exact for a held-out fleet), then per scenario the
|
| 182 |
TEST buildings are planned as a standalone fleet under submit.py's
|
|
@@ -199,7 +199,7 @@ def run_bgkf(dataset_path=Path('dataset'), kind=None, variant='base',
|
|
| 199 |
# static path sets, everything else at models_cv module defaults
|
| 200 |
# (p_be=0, floor_day=0, p_conf=0.5 - deployment does not touch them)
|
| 201 |
p = mc.plan_tsroute
|
| 202 |
-
p.alpha = CHAMPION['p_star']
|
| 203 |
p.ec_margin, p.ec_pmax = CHAMPION['ec_margin'], CHAMPION['ec_pmax']
|
| 204 |
p.split_days = CHAMPION['split_days']
|
| 205 |
p.floor_scale, p.recent_deaths = CHAMPION['floor_scale'], 0.0
|
|
@@ -312,6 +312,9 @@ CANDIDATES = {
|
|
| 312 |
# this cv-side recipe is bit-identical to running the deployed class
|
| 313 |
# (parity check, phase 59): SCORE 1688.4, -71.8 +/- 23.5 vs baseline
|
| 314 |
'ft2': dict(variant='vm7', blend=('wiener', 0.20)),
|
|
|
|
|
|
|
|
|
|
| 315 |
}
|
| 316 |
|
| 317 |
|
|
|
|
| 176 |
# --------------------------------------------------------------------------
|
| 177 |
|
| 178 |
def run_bgkf(dataset_path=Path('dataset'), kind=None, variant='base',
|
| 179 |
+
blend=None, n_folds=N_FOLDS, origins=range(48), p_star=None):
|
| 180 |
"""THE SCORE. Per fold: one fit on the TRAIN buildings' full closed-pair
|
| 181 |
history (deployment-exact for a held-out fleet), then per scenario the
|
| 182 |
TEST buildings are planned as a standalone fleet under submit.py's
|
|
|
|
| 199 |
# static path sets, everything else at models_cv module defaults
|
| 200 |
# (p_be=0, floor_day=0, p_conf=0.5 - deployment does not touch them)
|
| 201 |
p = mc.plan_tsroute
|
| 202 |
+
p.alpha = CHAMPION['p_star'] if p_star is None else p_star
|
| 203 |
p.ec_margin, p.ec_pmax = CHAMPION['ec_margin'], CHAMPION['ec_pmax']
|
| 204 |
p.split_days = CHAMPION['split_days']
|
| 205 |
p.floor_scale, p.recent_deaths = CHAMPION['floor_scale'], 0.0
|
|
|
|
| 312 |
# this cv-side recipe is bit-identical to running the deployed class
|
| 313 |
# (parity check, phase 59): SCORE 1688.4, -71.8 +/- 23.5 vs baseline
|
| 314 |
'ft2': dict(variant='vm7', blend=('wiener', 0.20)),
|
| 315 |
+
# the alpha-1.0 A/B (head 401f171): ft2 with planner appetite 1.0.
|
| 316 |
+
# Count-coupled vs ft2 (17W/24L on the increment) - public arbitrates.
|
| 317 |
+
'ft2a10': dict(variant='vm7', blend=('wiener', 0.20), p_star=1.0),
|
| 318 |
}
|
| 319 |
|
| 320 |
|