Divided Preferences: Anti-Plurality (C.5)
[1]:
from matplotlib import pyplot as plt
from poisson_approval import *
[2]:
SCALE = 25
SAMPLES_PER_POINT = 1000
N_MAX_EPISODES = 1000
[3]:
divided_majority_apl = SimplexToProfile(
ProfileHistogram,
right_type=('cab', (1, )),
top_type=('abc', (1, )),
left_type=('bac', (1, )),
d_type_fixed_share={('cba', (1, )): 0.2},
voting_rule=ANTI_PLURALITY
)
[ ]:
ternary_plot_winning_frequencies(
divided_majority_apl,
scale=SCALE,
init='random_tau',
samples_per_point=SAMPLES_PER_POINT,
n_max_episodes=N_MAX_EPISODES,
title='',
legend_title='Winners',
file_save_data='sav/DM_APL.sav',
)
plt.savefig('img/fDM_APL.png', dpi=600, bbox_inches="tight")
[15]: