def six_arm_plot(): pvec = sp.array([.04, .02, .03, .035, .045, .05]) priors, weights, champ_ind, days = simulate_convergence(pvec) weights = sp.array(weights) / 50. plt.figure() plt.plot(weights) plt.plot([0, days], [.95, .95], '--k') plt.plot([0, days], [.05, .05], '--k') plt.savefig('weights2.pdf')
def six_arm_plot(): pvec = np.array([.04, .02, .03, .035, .045, .05]) priors, weights, champ_ind, days = simulate_convergence(pvec) weights = np.array(weights)/50. plt.plot(weights) plt.plot([0, days], [.95, .95], '--k') plt.plot([0, days], [.05, .05], '--k') plt.savefig('weights2.pdf') plt.clf()
def two_arm_plot(): pvec = np.array([.04, .05]) priors, weights, champ_ind, days = simulate_convergence(pvec) weights = np.array(weights) / 50. plt.plot(weights) plt.plot([0, days], [.95, .95], '--k') plt.plot([0, days], [.05, .05], '--k') plt.savefig('weights1.pdf') plt.clf()
def two_arm_plot(): pvec = sp.array([.04, .05]) priors, weights, champ_ind, days = simulate_convergence(pvec) weights = sp.array(weights)/50. plt.figure() plt.plot(weights) plt.plot([0, days], [.95, .95], '--k') plt.plot([0, days], [.05, .05], '--k') plt.savefig('weights1.pdf')