isoexp/main_attack_one_user.py [203:213]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    plt.legend()
    ### TODO: Change this plot to have the number of time the context has been presented in x axis

    if 'Attacked' in alg_name:
        plt.figure(2)
        plt.title('Cumulative attack norm attacked context')
        plt.plot(np.mean(np.cumsum(epsilon_norm, axis=1), axis=0), label=alg_name)
        low_quantile = np.quantile(np.cumsum(epsilon_norm, axis=1), 0.1, axis=0)
        high_quantile = np.quantile(np.cumsum(epsilon_norm, axis=1), 0.9, axis=0)
        plt.fill_between(t, low_quantile, high_quantile, alpha=0.15)
        plt.legend()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



isoexp/main_attacked_context.py [110:128]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    plt.legend()

    # mean_condition = np.mean(np.cumsum(val.target_draws == target_arm, axis=1), axis=0)
    # low_quantile = np.quantile(val.attack_cond, 0.1, axis=0)
    # high_quantile = np.quantile(val.attack_cond, 0.9, axis=0)
    # plt.figure(1)
    # plt.title('Draws target arm')
    # plt.plot(mean_condition, label=alg_name)
    # plt.fill_between(t, low_quantile, high_quantile, alpha=0.15)
    # plt.legend()

    if 'Attacked' in alg_name:
        plt.figure(2)
        plt.title('Cumulative attack norm attacked context')
        plt.plot(np.mean(np.cumsum(epsilon_norm, axis=1), axis=0), label=alg_name)
        low_quantile = np.quantile(np.cumsum(epsilon_norm, axis=1), 0.1, axis=0)
        high_quantile = np.quantile(np.cumsum(epsilon_norm, axis=1), 0.9, axis=0)
        plt.fill_between(t, low_quantile, high_quantile, alpha=0.15)
        plt.legend()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



