{ "info": { "author": "Danny Cunningham", "author_email": "djcunningham0@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering" ], "description": "rankaggretation\n===============\n\nThis package implements some rank aggregation methods in Python. Currently, the\nfollowing methods are supported:\n\n* Instant Runoff Voting\n* Borda count\n* Dowdall system (variant of Borda count)\n* \"Average rank\" -- just take the average rank of each item across all lists. I\n don't know if there is a real name for this method.\n\nI plan on adding additional methods in the future (such as the Markov chain\nmethods described in `this paper \n`_.\n\nAll methods currently implemented are designed to work with partial lists (i.e.,\neach base ranker does not necessarily rank every item).\n\nInstallation\n------------\n\nInstall from PyPI:\n\n``pip install rankaggregation``\n\n\nExample usage\n-------------\n\nThe key object in the package is the ``RankAggregator`` class. Each method takes\n``rank_list`` as a parameter. Each list in ``rank_list`` is the ranking preference\nof a single base ranker.\n\n>>> import rankaggregation as ra\n>>> agg = ra.RankAggregator()\n>>> rank_list = [['A', 'B', 'C'], ['B', 'A', 'C'], ['C', 'D', 'A']]\n>>> agg.instant_runoff(rank_list)\n['A', 'B', 'C', 'D']\n>>> agg.borda(rank_list)\n[('A', 9), ('B', 8.0), ('C', 8), ('D', 5.0)]\n>>> agg.dowdall(rank_list)\n[('A', 1.8333333333333333), ('C', 1.6666666666666665), ('B', 1.5), ('D', 0.5)]\n>>> agg.average_rank(rank_list)\n[('B', 1.5), ('A', 2.0), ('D', 2.0), ('C', 2.3333333333333335)]", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/djcunningham0/rankaggregation", "keywords": "rank aggregation ranked lists instant runoff irv borda count", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "rankaggregation", "package_url": "https://pypi.org/project/rankaggregation/", "platform": "", "project_url": "https://pypi.org/project/rankaggregation/", "project_urls": { "Homepage": "https://github.com/djcunningham0/rankaggregation" }, "release_url": "https://pypi.org/project/rankaggregation/0.1.2/", "requires_dist": null, "requires_python": ">=3", "summary": "Python implementations of rank aggregation methods for ranked lists.", "version": "0.1.2" }, "last_serial": 5778545, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "070a7f88461f63bc1d52800bc95b089c", "sha256": "4b5bf11c1094108fba872d4084a1026521a680d94d0058ecc93c775718bdb7af" }, "downloads": -1, "filename": "rankaggregation-0.1.tar.gz", "has_sig": false, "md5_digest": "070a7f88461f63bc1d52800bc95b089c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3410, "upload_time": "2019-09-02T20:34:39", "url": "https://files.pythonhosted.org/packages/2c/e8/1a6bc985dfdfd9e711be5983cf16ee117f7fb4f18ff8503e5a4462367011/rankaggregation-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4877c58290967938378da663b093d609", "sha256": "9448543625a736aad714b6b84ef2ad99ebd333e0ae2e3882a1c584d1bd5ab888" }, "downloads": -1, "filename": "rankaggregation-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4877c58290967938378da663b093d609", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3551, "upload_time": "2019-09-03T05:04:37", "url": "https://files.pythonhosted.org/packages/6b/60/7b9627e9e77239ffcf44c5a980efb635de6e0999bde84da123dc7f8ecd75/rankaggregation-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0f72f5e7f52ef98803ac86bfaad04ed9", "sha256": "24f5e7592830d73fd72b22ce1b585695376ffbe968f23bfee7c9efb4cfd16f2a" }, "downloads": -1, "filename": "rankaggregation-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0f72f5e7f52ef98803ac86bfaad04ed9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3543, "upload_time": "2019-09-03T23:50:28", "url": "https://files.pythonhosted.org/packages/20/44/9916e7988c23e59e514289482a563861d5cbe4a38612cf4a90df61ba0346/rankaggregation-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0f72f5e7f52ef98803ac86bfaad04ed9", "sha256": "24f5e7592830d73fd72b22ce1b585695376ffbe968f23bfee7c9efb4cfd16f2a" }, "downloads": -1, "filename": "rankaggregation-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0f72f5e7f52ef98803ac86bfaad04ed9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3543, "upload_time": "2019-09-03T23:50:28", "url": "https://files.pythonhosted.org/packages/20/44/9916e7988c23e59e514289482a563861d5cbe4a38612cf4a90df61ba0346/rankaggregation-0.1.2.tar.gz" } ] }