{"id":15064027,"url":"https://github.com/tpeterw/probabilistic-majority-voting","last_synced_at":"2026-01-31T01:13:22.140Z","repository":{"id":57439303,"uuid":"74913139","full_name":"TPeterW/Probabilistic-Majority-Voting","owner":"TPeterW","description":"Generic Majority Voting procedure for probabilities of categories in ML classification algorithms (Available on PyPI)","archived":false,"fork":false,"pushed_at":"2017-04-06T06:41:35.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T20:47:24.580Z","etag":null,"topics":["machine-learning","majority-judgement-voting","pypi","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/majorityvoting/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TPeterW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-27T20:44:04.000Z","updated_at":"2018-09-24T17:06:10.000Z","dependencies_parsed_at":"2022-09-26T17:20:27.673Z","dependency_job_id":null,"html_url":"https://github.com/TPeterW/Probabilistic-Majority-Voting","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TPeterW%2FProbabilistic-Majority-Voting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TPeterW%2FProbabilistic-Majority-Voting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TPeterW%2FProbabilistic-Majority-Voting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TPeterW%2FProbabilistic-Majority-Voting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TPeterW","download_url":"https://codeload.github.com/TPeterW/Probabilistic-Majority-Voting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243786228,"owners_count":20347603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","majority-judgement-voting","pypi","python","python3"],"created_at":"2024-09-25T00:10:32.599Z","updated_at":"2026-01-31T01:13:22.078Z","avatar_url":"https://github.com/TPeterW.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probabilistic Majority Voting\nGeneric Majority Judgement Voting procedure for probabilities of categories in machine learning\n\n\u003cbr\u003e\n\n## Usage\nTo install through PyPI in command line\n\n    pip install majorityvoting\n\nAnd to use majority judgement voting in your code\n\n    from majorityvoting import MajorityVoting\n\n    voter = MajorityVoting.Voter(probabilities, categories)\n    indices, names = voter.vote(windows=5)\n\nThe initializer takes in 2 arguments\n* probabilities - a `numpy.ndarray` of lists (2d array) with equal length, each embedded list contains the probability of categories predicted by some machine learning algorithm, exactly the same you will get from [scikit-learn](http://scikit-learn.org/stable/)'s [`predict_proba()`](http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression.predict_proba) function\n* categories - a list of names of categories, each category must match the index of it's probability in each and every embedded list in `probabilities`\n\n## TODOs\n1. It's a pain to manually check the size of the lists and embedded ones, will require input argument to be `pandas.DataFrame` type in the next version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpeterw%2Fprobabilistic-majority-voting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpeterw%2Fprobabilistic-majority-voting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpeterw%2Fprobabilistic-majority-voting/lists"}