Skip to main content

Inference algorithms for models based on Luce's choice axiom.

Project description

# choix

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.

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

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

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

choix makes it easy to infer model parameters from these different types of data, using a variety of algorithms:

  • Luce Spectral Ranking

  • Minorization-Maximization

  • Rank Centrality

  • GMM using rank breaking

  • Approximate bayesian inference with expectation propagation

## Installation

Simply type

pip install choix

The library is under active development, use at your own risk.

## References

  • Lucas Maystre and Matthias Grossglauser, [Fast and Accurate Inference of Plackett-Luce Models][1], NIPS, 2015

  • David R. Hunter. [MM algorithms for generalized Bradley-Terry models][2], The Annals of Statistics 32(1):384-406, 2004.

  • François Caron and Arnaud Doucet. [Efficient Bayesian Inference for Generalized Bradley-Terry models][3]. Journal of Computational and Graphical Statistics, 21(1):174-196, 2012.

  • Sahand Negahban, Sewoong Oh, and Devavrat Shah, [Iterative Ranking from Pair-wise Comparison][4], NIPS 2012

  • Hossein Azari Soufiani, William Z. Chen, David C. Parkes, and Lirong Xia, [Generalized Method-of-Moments for Rank Aggregation][5], NIPS 2013

  • Wei Chu and Zoubin Ghahramani, [Extensions of Gaussian processes for ranking: semi-supervised and active learning][6], NIPS 2005 Workshop on Learning to Rank.

[1]: https://infoscience.epfl.ch/record/213486/files/fastinference.pdf [2]: http://sites.stat.psu.edu/~dhunter/papers/bt.pdf [3]: https://hal.inria.fr/inria-00533638/document [4]: https://papers.nips.cc/paper/4701-iterative-ranking-from-pair-wise-comparisons.pdf [5]: https://papers.nips.cc/paper/4997-generalized-method-of-moments-for-rank-aggregation.pdf [6]: http://www.gatsby.ucl.ac.uk/~chuwei/paper/gprl.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

choix-0.1.0.dev3.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

choix-0.1.0.dev3-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file choix-0.1.0.dev3.tar.gz.

File metadata

  • Download URL: choix-0.1.0.dev3.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for choix-0.1.0.dev3.tar.gz
Algorithm Hash digest
SHA256 0c721dcaf7ea3cc007b8a69218f70d2f9f49f634d936d5fa7d3c5c7d5f29c9b0
MD5 0a33568cfd135f6118f988ee69cfc629
BLAKE2b-256 4b65a82c1a4020887ed0bc450b85b72b9fd61a9a3384e9a6c007b0404700386e

See more details on using hashes here.

File details

Details for the file choix-0.1.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for choix-0.1.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 31b26fe64016acc17f1e9dccc4c94143463c7f744ed9e214ad4236d7d03e6b17
MD5 8e5c4f902e6b41414d13abc26299b407
BLAKE2b-256 2bab4c6c007e6db15340a4007a4a339a94d09619891b7e296cfb999cf3a53d9d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page