Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. p1 = pickle.load(open('Strategies/3_player_strat.pickle', 'rb'))
  2. p1_artist = 0
  3. x = np.arange(0, 1, 0.05)
  4. for p2_artist in range(5):
  5. para_0 = p1[25 * 0 + 4 * p1_artist + p2_artist]
  6. para_1 = p1[25 * 1 + 4 * p1_artist + p2_artist]
  7. para_2 = p1[25 * 2 + 4 * p1_artist + p2_artist]
  8. para_3 = p1[25 * 3 + 4 * p1_artist + p2_artist]
  9. y = [para_3*(ratio**3) + para_2*(ratio**2) + para_1*ratio + para_0 for ratio in np.arange(0, 1, 0.05)]
  10. plt.xlabel("P1 Money / (P1 Money + P2 Money)")
  11. plt.ylabel("Bet Fraction")
  12. plt.plot(x, y, label=p2_artist)
  13. plt.legend()
  14. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement