class svvamp.ExperimentsCompiler(prefix_tikz_file, tikz_directory='tikz', results_directory='out', figsize=(16, 8))[source]

Compile the results of several experiments.

Each experiment should be analyzed with ExperimentAnalyzer. Then ExperimentsCompiler compiles the analyses.

Parameters:
  • prefix_tikz_file (str) – Prefix for the names of the tikz files.

  • tikz_directory (str or Path) – Directory where to save the tikz files.

  • results_directory (str or Path) – Directory where to fetch the results obtained with ExperimentAnalyzer.

  • figsize (tuple) – Size of the figures.

cm_complexity_index_bar_plot(tikz_file='cm_complexity_index_bar_plot.tex')[source]

Bar plot: CM complexity index.

cm_power_index_bar_plot(tikz_file='cm_power_index_bar_plot.tex')[source]

Bar plot: CM power index.

cm_rate_bar_plot(tikz_file='cm_rate_bar_plot.tex')[source]

Bar plot: CM rate.

cm_tm_um_rate_bar_plot(tikz_file='cm_tm_um_rate_bar_plot.tex')[source]

Bar plot: CM, TM and UM rates.

condorcet_consistency_bar_plot(tikz_file='condorcet_consistency_bar_plot.tex')[source]

Bar plot: Condorcet consistency.

df_computation_time()[source]

Dataframe: Computation time.

df_computation_time_cumulative()[source]

Dataframe: Cumulative computation time.

loss_social_welfare_bar_plot(tikz_file='loss_social_welfare_bar_plot.tex')[source]

Bar plot: loss of social welfare.

my_tikzplotlib_save(tikz_file, x_ticks_labels=None, axis_width='\\axisWidth', axis_height='\\axisHeight')[source]

Save a figure in tikz.

nb_candidates_cm_bar_plot(tikz_file='nb_candidates_cm_bar_plot.tex')[source]

Bar plot: Number of CM winners.

nb_candidates_cm_line_plot(rules=None, tikz_file='nb_candidates_cm_line_plot.tex')[source]

Line plot: Number of CM winners.

profile_features_bar_plot(tikz_file='profile_features_bar_plot.tex')[source]

Bar plot: Features of the profiles (existence of Condorcet winner, etc).

profiles_scatter_plot(tikz_file='profiles_scatter_plot.tex')[source]

Scatter plot: Number of voters and candidates of the profiles.

rate_bar_plot(criterion, ylabel, tikz_file, draw_rcw_line=False)[source]

Bar plot: Rate of some criterion (auxiliary function).

replace_rule_names(x_ticks_labels)[source]

Replace the x-labels with relevant abbreviations (auxiliary function).

resistant_condorcet_line()[source]

Draw the ‘Resistant Condorcet’ line (upper bound of CM rate for Condorcet rules).

tm_rate_bar_plot(tikz_file='tm_rate_bar_plot.tex')[source]

Bar plot: TM rate.

um_rate_bar_plot(tikz_file='um_rate_bar_plot.tex')[source]

Bar plot: UM rate.