Пример #1
0
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')
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
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')