Spaces:
Sleeping
Sleeping
Commit History
-
Accuracy overhaul: pitcher resolution logging, baseline recalibration, vig fix, XGBoost blend
Phase 1: Unified pitcher name normalization (normalize_pitcher_name), added pitcher_resolution_log table with logging from mlb_starters, live feed, and statcast lookup. Color-coded debug page section for resolution audit. Phase 2: Baseline HR probability 0.045 → 0.036 (empirical MLB 2024 per-PA rate). Phase 3: HR edge now uses single-sided vig removal (p / 1.055) instead of circular two-way normalization. Added kelly_pct to recommendation output. Phase 4: Removed double-counted temperature/wind adjustments from context_adjustment.py — environment_model.py owns all weather signals. Phase 5: BET threshold 6%/78 → 3.5%/72; WATCH 2.5%/62 → 1.5%/58. Phase 6: XGBoost HR delta blended at 20% weight when xgb_blend_eligible. Added validate_xgb_batch() for batch-level sanity checks. Phase 7: Hit-type distribution corrected — singles 0.76→0.62, doubles 0.20→0.33 (empirical MLB 2024 non-HR hit mix). Phase 9: edge.py converted to re-exports from no_vig_props.py (single source of truth for al…21151ce
-
Phase A-I audit: park factors, platoon adj, pitch sequencing, simulation overhaul
- features/park_factors.py: expanded to 30 MLB venues, added venue_hr_factor() - models/batter_baseline.py: batter_stand extraction, LHB baseline bonus - models/live_fair_simulator_v3.py: n_sims 10k, park factor integration, platoon adj, logging - models/pitch_sequence_model.py: count-state table, player usage rates, handedness support - models/pitcher_adjustment.py: p_throws extraction, logging, velocity bands - simulation/monte_carlo.py: fresh seed, hierarchical sampling, batter hit distribution - simulation/pa_outcome_sampler.py: movement_magnitude parameter - simulation/pitch_simulator.py: n_sims 10k default, pfx movement threading Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>01d9b69
-
Update simulation/pitch_simulator.py
Verified signatureeb08ec1
-
Update simulation/pitch_simulator.py
Verified signature167c2b7 -
Update simulation/pa_outcome_sampler.py
Verified signature0ac1b64 -
Rename simulation/pitch_simulator.txt to simulation/pitch_simulator.py
Verified signatureb138f17 -
Rename simulation/pa_out_sampler.py to simulation/pa_outcome_sampler.py
Verified signature01fde37 -
Create pa_out_sampler.py
Verified signaturee457943
-
Rename simulation/win_probability.txt to simulation/win_probability.py
Verified signature164ade2 -
Rename simulation/monte_carlo.txt to simulation/monte_carlo.py
Verified signatureac67002 -
Upload 31 files
Verified signature5c10d18