Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p1 = pickle.load(open('Strategies/3_player_strat.pickle', 'rb'))
- p1_artist = 0
- x = np.arange(0, 1, 0.05)
- for p2_artist in range(5):
- para_0 = p1[25 * 0 + 4 * p1_artist + p2_artist]
- para_1 = p1[25 * 1 + 4 * p1_artist + p2_artist]
- para_2 = p1[25 * 2 + 4 * p1_artist + p2_artist]
- para_3 = p1[25 * 3 + 4 * p1_artist + p2_artist]
- y = [para_3*(ratio**3) + para_2*(ratio**2) + para_1*ratio + para_0 for ratio in np.arange(0, 1, 0.05)]
- plt.xlabel("P1 Money / (P1 Money + P2 Money)")
- plt.ylabel("Bet Fraction")
- plt.plot(x, y, label=p2_artist)
- plt.legend()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement