isoexp/main_attack_one_user.py [180:194]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print('Target arm =', target_arm)

print('draws = ', np.mean(np.cumsum(draws == target_arm, axis=1),axis=0))
for i, (alg_name, val) in enumerate(results):
    mean_regret = np.mean(val.regret.cumsum(axis=1), axis=0)
    t = np.linspace(0, T, T, dtype='int')

    low_quantile = np.quantile(val.regret.cumsum(axis=1), 0.1, axis=0)
    high_quantile = np.quantile(val.regret.cumsum(axis=1), 0.9, axis=0)

    plt.figure(0)
    plt.title('Regret Attacked context')
    plt.plot(mean_regret, label=alg_name)
    plt.fill_between(t, low_quantile, high_quantile, alpha=0.15)
    plt.legend()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



isoexp/main_attacked_context.py [96:110]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print('Target arm =', target_arm)

print('draws = ', np.mean(np.cumsum(draws == target_arm, axis=1),axis=0))
for i, (alg_name, val) in enumerate(results):
    mean_regret = np.mean(val.regret.cumsum(axis=1), axis=0)
    t = np.linspace(0, T, T, dtype='int')

    low_quantile = np.quantile(val.regret.cumsum(axis=1), 0.1, axis=0)
    high_quantile = np.quantile(val.regret.cumsum(axis=1), 0.9, axis=0)

    plt.figure(0)
    plt.title('Regret Attacked context')
    plt.plot(mean_regret, label=alg_name)
    plt.fill_between(t, low_quantile, high_quantile, alpha=0.15)
    plt.legend()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



