Created
March 6, 2018 04:20
-
-
Save micahmelling/01b1138ed1bf3c0cbffaaabb4ce6820e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simulation_runs = 100 | |
counter = 0 | |
while counter < simulation_runs: | |
temp_df = run_match_up_simulation(fastball_surrender_prob, curve_surrender_prob, change_surrender_prob, | |
fastball_hit_prob, curve_hit_prob, change_hit_prob, zero_zero_pitch_probs, | |
zero_zero_hit_surrender_prob, zero_zero_hit_prob, one_zero_pitch_probs, | |
one_zero_hit_surrender_prob, one_zero_hit_prob, zero_one_pitch_probs, | |
zero_one_hit_surrender_prob, zero_one_hit_prob, one_one_pitch_probs, | |
one_one_hit_surrender_prob, one_one_hit_prob, two_zero_pitch_probs, | |
two_zero_hit_surrender_prob, two_zero_hit_prob, zero_two_pitch_probs, | |
zero_two_hit_surrender_prob, zero_two_hit_prob, one_two_pitch_probs, | |
one_two_hit_surrender_prob, one_two_hit_prob, two_one_pitch_probs, | |
two_one_hit_surrender_prob, two_one_hit_prob, three_zero_pitch_probs, | |
three_zero_hit_surrender_prob, three_zero_hit_prob, two_two_pitch_probs, | |
two_two_hit_surrender_prob, two_two_hit_prob, three_one_pitch_probs, | |
three_one_hit_surrender_prob, three_one_hit_prob, three_two_pitch_probs, | |
three_two_hit_surrender_prob, three_two_hit_prob, zero_zero_swing_prob, | |
one_zero_swing_prob, zero_one_swing_prob, one_one_swing_prob, | |
two_zero_swing_prob, zero_two_swing_prob, one_two_swing_prob, | |
two_one_swing_prob, three_zero_swing_prob, two_two_swing_prob, | |
three_one_swing_prob, three_two_swing_prob, swing_produces_out) | |
at_bat_results = at_bat_results.append(temp_df) | |
counter += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment