Navigation

    Voting Theory Forum

    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Test cases - Voting Methods - ballots and expected results

    Tech development
    2
    5
    295
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • masiarek
      masiarek last edited by

      Do we have a list of GitHub links with Voting methods, test cases and expected results?

      This is what I found so far:

      • https://github.com/endolith/elsim/tree/master/elsim/methods
      1 Reply Last reply Reply Quote 1
      • rob
        rob Banned last edited by rob

        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/ExKZVjM

        Here 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

        1 Reply Last reply Reply Quote 0
        • masiarek
          masiarek last edited by

          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

          1 Reply Last reply Reply Quote 0
          • masiarek
            masiarek last edited by

            Say I have this link: https://www.karmatics.com/voting/cardinalsample.txt

            • is it multi-winner or single winner
            • what is the expected result?
            rob 1 Reply Last reply Reply Quote 0
            • rob
              rob Banned @masiarek last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post