Skip to content

Instantly share code, notes, and snippets.

@micahmelling
Created March 6, 2018 04:13
Show Gist options
  • Save micahmelling/bf1e0d75b114bdcfc8a45741d2021074 to your computer and use it in GitHub Desktop.
Save micahmelling/bf1e0d75b114bdcfc8a45741d2021074 to your computer and use it in GitHub Desktop.
at_bat_results = pd.DataFrame()
at_bat_results = run_pitch_simulation(count='0-0',
count_swing_prob=zero_zero_swing_prob,
pitch_probs=zero_zero_pitch_probs,
count_surrender_prob=zero_zero_hit_surrender_prob,
fastball_surrender_prob=fastball_surrender_prob,
count_hit_prob=zero_zero_hit_prob,
fastball_hit_prob=fastball_hit_prob,
curve_surrender_prob=curve_surrender_prob,
curve_hit_prob=curve_hit_prob,
change_surrender_prob=change_surrender_prob,
change_hit_prob=change_hit_prob,
df=at_bat_results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment