Test cases - Voting Methods - ballots and expected results
-
Do we have a list of GitHub links with Voting methods, test cases and expected results?
This is what I found so far:
-
This is something I am hoping to push forward within this group.
While github is fine, I was hoping to do stuff that ran over the web, concentrating on javascript since it runs in browser. Codepen is a good place to put these so that anyone in the community can use them, even if they have no clue how to fork a repo etc. (forking a Codepen is trivial, and you don't even need to do that if you just want to run it)And then we can have files with ballot data served from votingtheory.org, including javascript files wiuth ballot data that can very easily be pulled client side by Codepen or other web apps. I'm also exploring running widgets right inside our forum.
There are multiple things we want to be able to share: ballot data, code to parse ballots, code to tabulate various methods, and then things like results visualizers and the like. If we plan well, anyone who wants to work on just one of these won't have to bother dealing with all the rest, they will be ready to use.
Here is one that does a few methods (on sample ballot data, but you can paste in your own):
https://codepen.io/karmatics/full/ExKZVjMHere is something I posted a few days ago about a project to accumulate and make available ballot data, both from real and simulated elections:
https://www.votingtheory.org/forum/topic/263/project-to-make-ballot-data-available
https://codepen.io/karmatics/pen/MWVddBY
Here is something I was working on for visualizing results: https://codepen.io/karmatics/full/MWVEbWQ
-
hi Rob, can we connect on the phone / screen sharing (I have zoom account) - Adam Masiarek, +1-919-602-5424, masiarek@gmail.com Adam Masiarek, +1-919-602-5424, masiarek@gmail.com
-
Say I have this link: https://www.karmatics.com/voting/cardinalsample.txt
- is it multi-winner or single winner
- what is the expected result?
-
@masiarek It is intended to be single winner, and the results can be seen here under a few different systems https://codepen.io/karmatics/pen/ExKZVjM
(click on tabulate in bottom right)Notice that different systems show different results, and there is no Condorcet winner, that's on purpose.
You can also generate "blurred" ballots to make examples more realistic, that just generates additional random ballots but within the general range of the existing ballots.
Yeah we can talk soon, I can't at the moment though.