{"id":32175908,"url":"https://github.com/lucasmaystre/choix","last_synced_at":"2025-10-21T19:51:27.004Z","repository":{"id":55633915,"uuid":"46724966","full_name":"lucasmaystre/choix","owner":"lucasmaystre","description":"Inference algorithms for models based on Luce's choice axiom","archived":false,"fork":false,"pushed_at":"2025-09-05T08:28:42.000Z","size":444,"stargazers_count":178,"open_issues_count":4,"forks_count":30,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-27T11:17:47.737Z","etag":null,"topics":["machine-learning","python","ranking"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/lucasmaystre.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-11-23T14:16:33.000Z","updated_at":"2025-09-11T16:10:35.000Z","dependencies_parsed_at":"2025-08-10T21:07:13.843Z","dependency_job_id":"077c4b49-d30a-471a-bc77-35ffea9941e0","html_url":"https://github.com/lucasmaystre/choix","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/lucasmaystre/choix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmaystre%2Fchoix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmaystre%2Fchoix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmaystre%2Fchoix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmaystre%2Fchoix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasmaystre","download_url":"https://codeload.github.com/lucasmaystre/choix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmaystre%2Fchoix/sbom","scorecard":{"id":602078,"data":{"date":"2025-08-11","repo":{"name":"github.com/lucasmaystre/choix","commit":"7494ad31fde2f688196dc190d55673d930456366"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Code-Review","score":1,"reason":"Found 3/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":8,"reason":"9 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/publish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/lucasmaystre/choix/publish.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:8"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T00:42:21.984Z","repository_id":55633915,"created_at":"2025-08-21T00:42:21.984Z","updated_at":"2025-08-21T00:42:21.984Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280325299,"owners_count":26311419,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","python","ranking"],"created_at":"2025-10-21T19:51:24.896Z","updated_at":"2025-10-21T19:51:26.999Z","avatar_url":"https://github.com/lucasmaystre.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# choix\n\n[![Build package](https://github.com/lucasmaystre/choix/actions/workflows/build.yml/badge.svg)](https://github.com/lucasmaystre/choix/actions/workflows/build.yml)\n[![code coverage](https://codecov.io/gh/lucasmaystre/choix/branch/master/graph/badge.svg)](https://codecov.io/gh/lucasmaystre/choix)\n[![documentation status](https://readthedocs.org/projects/choix/badge/?version=latest)](http://choix.lum.li/en/latest/?badge=latest)\n\n`choix` is a Python library that provides inference algorithms for models based on Luce\\'s choice axiom. These probabilistic models can be used to explain and predict outcomes of comparisons between items.\n\n- **Pairwise comparisons**: when the data consists of comparisons between two items, the model variant is usually referred to as the *Bradley-Terry* model. It is closely related to the Elo rating system used to rank chess players.\n- **Partial rankings**: when the data consists of rankings over (a subset of) the items, the model variant is usually referred to as the *Plackett-Luce* model.\n- **Top-1 lists**: another variation of the model arises when the data consists of discrete choices, i.e., we observe the selection of one item out of a subset of items.\n- **Choices in a network**: when the data consists of counts of the number of visits to each node in a network, the model is known as the *Network Choice Model*.\n\n`choix` makes it easy to infer model parameters from these different types of data, using a variety of algorithms:\n\n- Luce Spectral Ranking\n- Minorization-Maximization\n- Rank Centrality\n- Approximate Bayesian inference with expectation propagation\n\n## Getting started\n\nTo install the latest release directly from PyPI, simply type:\n\n    pip install choix\n\nTo get started, you might want to explore one of these notebooks:\n\n- [Introduction using pairwise-comparison data](https://github.com/lucasmaystre/choix/blob/master/notebooks/intro-pairwise.ipynb)\n- [Case study: analyzing the GIFGIF dataset](https://github.com/lucasmaystre/choix/blob/master/notebooks/gifgif-dataset.ipynb)\n- [Using ChoiceRank to understand traffic on a network](https://github.com/lucasmaystre/choix/blob/master/notebooks/choicerank-tutorial.ipynb)\n- [Approximate Bayesian inference using EP](https://github.com/lucasmaystre/choix/blob/master/notebooks/ep-example.ipynb)\n\nYou can also find more information on the [official documentation](http://choix.lum.li/en/latest/). In particular, the [API reference](http://choix.lum.li/en/latest/api.html) contains a good summary of the library's features.\n\n## References\n\n- Hossein Azari Soufiani, William Z. Chen, David C. Parkes, and Lirong Xia, [Generalized Method-of-Moments for Rank Aggregation](https://papers.nips.cc/paper/4997-generalized-method-of-moments-for-rank-aggregation.pdf), NIPS 2013\n- François Caron and Arnaud Doucet. [Efficient Bayesian Inference for Generalized Bradley-Terry models](https://hal.inria.fr/inria-00533638/document). Journal of Computational and Graphical Statistics, 21(1):174-196, 2012.\n- Wei Chu and Zoubin Ghahramani, [Extensions of Gaussian processes for ranking: semi-supervised and active learning](http://www.gatsby.ucl.ac.uk/~chuwei/paper/gprl.pdf), NIPS 2005 Workshop on Learning to Rank.\n- David R. Hunter. [MM algorithms for generalized Bradley-Terry models](http://sites.stat.psu.edu/~dhunter/papers/bt.pdf), The Annals of Statistics 32(1):384-406, 2004.\n- Ravi Kumar, Andrew Tomkins, Sergei Vassilvitskii and Erik Vee,\n  [Inverting a Steady-State](http://theory.stanford.edu/~sergei/papers/wsdm15-cset.pdf), WSDM 2015.\n- Lucas Maystre and Matthias Grossglauser, [Fast and Accurate Inference of Plackett-Luce Models](https://infoscience.epfl.ch/record/213486/files/fastinference.pdf), NIPS, 2015.\n- Lucas Maystre and M. Grossglauser, [ChoiceRank: Identifying Preferences from Node Traffic in Networks](https://infoscience.epfl.ch/record/229164/files/choicerank.pdf), ICML 2017.\n- Sahand Negahban, Sewoong Oh, and Devavrat Shah, [Iterative Ranking from Pair-wise Comparison](https://papers.nips.cc/paper/4701-iterative-ranking-from-pair-wise-comparisons.pdf), NIPS 2012.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmaystre%2Fchoix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasmaystre%2Fchoix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmaystre%2Fchoix/lists"}