Syntrex Claude Sonnet 4.6 commited on
Commit
e85eb56
·
1 Parent(s): 3dab900

Batch 10 explainability: surface trajectory fields and reason_tags in output

Browse files

- Add deception_score, tunnel_score, release_consistency_score,
trajectory_sample_size to output row
- Add traj_hit_boost, traj_hr_boost, traj_tb2p_boost stubs (safe .get())
- Merge traj_adj reason_tags[:1] into simulator reason_tags (max 5 total)
- No logic, math, or weighting changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. models/live_fair_simulator_v3.py +9 -0
models/live_fair_simulator_v3.py CHANGED
@@ -460,6 +460,7 @@ def build_upcoming_simulated_rows(
460
  pitcher_adj["reason_tags"][:2]
461
  + context_adj["reason_tags"][:2]
462
  + bullpen_adj["reason_tags"][:2]
 
463
  )
464
 
465
  if batter_features.get("ev90") is not None:
@@ -521,6 +522,14 @@ def build_upcoming_simulated_rows(
521
  "rolling_pitch_extension_sample_size": pitcher_adj.get("rolling_pitch_extension_sample_size"),
522
  "rolling_pitch_pfx_x_sample_size": pitcher_adj.get("rolling_pitch_pfx_x_sample_size"),
523
  "rolling_pitch_pfx_z_sample_size": pitcher_adj.get("rolling_pitch_pfx_z_sample_size"),
 
 
 
 
 
 
 
 
524
  }
525
  )
526
 
 
460
  pitcher_adj["reason_tags"][:2]
461
  + context_adj["reason_tags"][:2]
462
  + bullpen_adj["reason_tags"][:2]
463
+ + traj_adj.get("reason_tags", [])[:1]
464
  )
465
 
466
  if batter_features.get("ev90") is not None:
 
522
  "rolling_pitch_extension_sample_size": pitcher_adj.get("rolling_pitch_extension_sample_size"),
523
  "rolling_pitch_pfx_x_sample_size": pitcher_adj.get("rolling_pitch_pfx_x_sample_size"),
524
  "rolling_pitch_pfx_z_sample_size": pitcher_adj.get("rolling_pitch_pfx_z_sample_size"),
525
+
526
+ "deception_score": trajectory_row.get("deception_score"),
527
+ "tunnel_score": trajectory_row.get("tunnel_score"),
528
+ "release_consistency_score": trajectory_row.get("release_consistency_score"),
529
+ "trajectory_sample_size": trajectory_row.get("trajectory_sample_size"),
530
+ "traj_hit_boost": traj_adj.get("traj_hit_boost"),
531
+ "traj_hr_boost": traj_adj.get("traj_hr_boost"),
532
+ "traj_tb2p_boost": traj_adj.get("traj_tb2p_boost"),
533
  }
534
  )
535