Thibaut Forest Claude Fable 5 commited on
Commit
4c93883
·
1 Parent(s): 274f134

HEAD: wiener weight .30 in the 3-way order (.50/.30/.20) - CV 1545.4

Browse files

s_503020 from the simplex sweep: -23.2 +/- 12.3 (1.9sigma, count-flat,
bowl mapped on all sides) - qualifies under the 1.5-sigma tier for weight
tweaks in validated mechanisms. Deployment parity bit-exact after fixing a
float knife-edge (1-.30-.20 = 0.4999...94 flipped one exact rank tie and
moved a cell by 539; primary weight now rounded - and noted: single-config
SCOREs carry ~+/-11 tie sensitivity on this instrument). Rehearsal clean
(47s, recall .538, swaps 9.6/scen). Wave-S remainder all dead: HGB
evolutions worse (monotone constraints break the gap features), plateau
wiener inert, alpha bowl still at 1.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. batteryswap_example/submit.py +6 -3
batteryswap_example/submit.py CHANGED
@@ -211,7 +211,7 @@ class FrontierRUL:
211
  # softly: missing wnr_* columns drop the wiener source (pure vm7 logbag),
212
  # any fit error falls back to the legacy champion via _fit_model.
213
  FT2 = os.environ.get('BATTERYSWAP_FT2', '1') != '0'
214
- FT2_W = float(os.environ.get('BATTERYSWAP_FT2_W', '0.25'))
215
  # Scale hardening (phase 62 synthetic scaling study): vmin7_rank as a
216
  # FIXED-reference percentile (train ECDF of v_min_7) instead of the scored
217
  # fleet's live rank. Live-rank ft2's edge decays with fleet size and
@@ -309,12 +309,15 @@ class Ft2RUL:
309
  pred = self.primary.predict(rows)
310
  rk = pred['p42'].rank(pct=True)
311
  w3 = FT2_GAPW if g is not None else 0.0
 
 
 
 
312
  if self.wiener is not None and 'wnr_n' in rows.columns:
313
  # inside the swap: the wiener's DayQuantiles was fit under
314
  # the same swapped feature list (exactly the CV's global set)
315
  p2 = self.wiener.predict(rows)
316
- rk = ((1 - FT2_W - w3) * rk
317
- + FT2_W * p2['p42'].rank(pct=True))
318
  elif w3 > 0:
319
  rk = (1 - w3) * rk
320
  if w3 > 0:
 
211
  # softly: missing wnr_* columns drop the wiener source (pure vm7 logbag),
212
  # any fit error falls back to the legacy champion via _fit_model.
213
  FT2 = os.environ.get('BATTERYSWAP_FT2', '1') != '0'
214
+ FT2_W = float(os.environ.get('BATTERYSWAP_FT2_W', '0.30'))
215
  # Scale hardening (phase 62 synthetic scaling study): vmin7_rank as a
216
  # FIXED-reference percentile (train ECDF of v_min_7) instead of the scored
217
  # fleet's live rank. Live-rank ft2's edge decays with fleet size and
 
309
  pred = self.primary.predict(rows)
310
  rk = pred['p42'].rank(pct=True)
311
  w3 = FT2_GAPW if g is not None else 0.0
312
+ # round the derived primary weight: 1-0.30-0.20 is 0.4999...94 in
313
+ # floating point, and a 1e-17 weight difference can flip an exact
314
+ # rank tie (measured: one flipped tie moved a cell by 539)
315
+ w1 = round(1.0 - FT2_W - w3, 12)
316
  if self.wiener is not None and 'wnr_n' in rows.columns:
317
  # inside the swap: the wiener's DayQuantiles was fit under
318
  # the same swapped feature list (exactly the CV's global set)
319
  p2 = self.wiener.predict(rows)
320
+ rk = w1 * rk + FT2_W * p2['p42'].rank(pct=True)
 
321
  elif w3 > 0:
322
  rk = (1 - w3) * rk
323
  if w3 > 0: