pref_voting 1.17.1__tar.gz → 1.17.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pref_voting-1.17.1 → pref_voting-1.17.2}/PKG-INFO +1 -1
- pref_voting-1.17.2/pref_voting/__init__.py +1 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/iterative_methods.py +6 -6
- pref_voting-1.17.2/pref_voting/proportional_methods.py +1575 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pyproject.toml +1 -1
- pref_voting-1.17.1/pref_voting/__init__.py +0 -1
- {pref_voting-1.17.1 → pref_voting-1.17.2}/LICENSE.txt +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/README.md +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/analysis.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/axiom.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/axiom_helpers.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/c1_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/combined_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/create_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Anti-Plurality.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Borda.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Bracket_Voting.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Bucklin.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Coombs.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Coombs_PUT.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Coombs_TB.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Dowdall.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Instant_Runoff.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Instant_Runoff_PUT.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Instant_Runoff_TB.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Iterated_Removal_Condorcet_Loser.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Pareto.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Plurality.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_PluralityWRunoff_PUT.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Positive-Negative_Voting.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Simplified_Bucklin.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Superior_Voting.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_Weighted_Bucklin.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Anti-Plurality.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Borda.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Bracket_Voting.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Bucklin.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Coombs.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Coombs_PUT.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Coombs_TB.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Dowdall.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Instant_Runoff.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Instant_Runoff_PUT.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Instant_Runoff_TB.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Plurality.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_PluralityWRunoff_PUT.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Positive-Negative_Voting.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Simplified_Bucklin.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/examples/condorcet_winner/minimal_resolute_Weighted_Bucklin.soc +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/voting_methods_properties.json +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/data/voting_methods_properties.json.lock +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/dominance_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/generate_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/generate_spatial_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/generate_utility_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/generate_weighted_majority_graphs.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/grade_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/grade_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/helper.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/invariance_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/io/__init__.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/io/readers.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/io/writers.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/maj_graph_ex1.png +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/mappings.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/margin_based_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/monotonicity_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/num_evaluation_method.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/other_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/other_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/pairwise_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/prob_voting_method.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/probabilistic_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/profiles_with_ties.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/rankings.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/scoring_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/social_welfare_function.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/social_welfare_functions.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/spatial_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/stochastic_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/strategic_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/swf_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/utility_functions.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/utility_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/utility_profiles.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/variable_candidate_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/variable_voter_axioms.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/voting_method.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/voting_method_properties.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/voting_methods.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/voting_methods_registry.py +0 -0
- {pref_voting-1.17.1 → pref_voting-1.17.2}/pref_voting/weighted_majority_graphs.py +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '1.17.2'
|
@@ -90,13 +90,13 @@ def _instant_runoff_for_truncated_linear_orders(profile, curr_cands = None, thre
|
|
90
90
|
from pref_voting.profiles_with_ties import ProfileWithTies
|
91
91
|
from pref_voting.iterative_methods import instant_runoff_for_truncated_linear_orders
|
92
92
|
|
93
|
-
prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}
|
94
|
-
prof.display()
|
93
|
+
prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}])
|
94
|
+
# prof.display()
|
95
95
|
|
96
96
|
tprof, report = prof.truncate_overvotes()
|
97
97
|
for r, new_r, count in report:
|
98
98
|
print(f"{r} --> {new_r}: {count}")
|
99
|
-
tprof.display()
|
99
|
+
# tprof.display()
|
100
100
|
instant_runoff_for_truncated_linear_orders.display(tprof)
|
101
101
|
|
102
102
|
|
@@ -514,13 +514,13 @@ def instant_runoff_for_truncated_linear_orders(profile, curr_cands = None, thres
|
|
514
514
|
from pref_voting.profiles_with_ties import ProfileWithTies
|
515
515
|
from pref_voting.iterative_methods import instant_runoff_for_truncated_linear_orders
|
516
516
|
|
517
|
-
prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}
|
518
|
-
prof.display()
|
517
|
+
prof = ProfileWithTies([{0:1, 1:1},{0:1, 1:2, 2:3, 3:4}, {0:1, 1:3, 2:3}, {3:2}, {0:1}, {0:1}])
|
518
|
+
# prof.display()
|
519
519
|
|
520
520
|
tprof, report = prof.truncate_overvotes()
|
521
521
|
for r, new_r, count in report:
|
522
522
|
print(f"{r} --> {new_r}: {count}")
|
523
|
-
tprof.display()
|
523
|
+
# tprof.display()
|
524
524
|
instant_runoff_for_truncated_linear_orders.display(tprof)
|
525
525
|
|
526
526
|
|