예제 #1
0
def read():
    benchmark = simple.simple3way()
    dir_bench = definitions.DIR_DATA_BENCHMARKS
    dirname = os.path.join(dir_bench, benchmark.name)
    benchmark.read(dirname=dirname)
    return benchmark
예제 #2
0
import pandas as pd
import votesim
import os
# from votesim.benchmarks.simpleNd import SimpleThreeWay
from votesim.benchmarks import runtools, simple
print(os.getcwd())
import definitions

benchmark = simple.simple3way()

METHODS = votesim.votemethods.all_methods
METHODS = [
    'smith_minimax',
    'ranked_pairs',
    'irv',
    # 'irv_stv',
    'top_two',
    # 'rrv',
    # 'sequential_monroe',
    # 'score',
    # 'star',
    'maj_judge',
    'smith_score',
    'approval100',
    'approval75',
    'approval50',
    'score5',
    # 'score10',
    'star5',
    # 'star10',
    'plurality',