Skip to content
Inference algorithms for models based on Luce's choice axiom
Branch: master
Clone or download
lucasmaystre Add unit tests for the `rmse` function.
This function was introduced in a recent commit but was not covered by
unit tests. This diff fixes that.
Latest commit 05a57a1 Aug 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
choix Compute RMSE between two parameter vectors. Aug 8, 2018
docs Compute RMSE between two parameter vectors. Aug 8, 2018
notebooks
tests
.gitignore I-LSR for top-1 data and tests for the `lsr` module. Jul 3, 2017
.travis.yml Set up Travis CI to deploy to PyPI automatically. Jan 15, 2018
LICENSE
MANIFEST.in Change references to README. Jan 15, 2018
README.rst Rewrite README in reStructuredText. Jan 15, 2018
setup.cfg
setup.py Compute RMSE between two parameter vectors. Aug 8, 2018

README.rst

choix

build status code coverage documentation status

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

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
  • Approximate Bayesian inference with expectation propagation

Getting started

To install the latest release directly from PyPI, simply type:

pip install choix

To get started, you might want to explore one of these notebooks:

You can also find more information on the official documentation. In particular, the API reference contains a good summary of the library's features.

References

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.