Skip to main content

DPPy is a Python library for exact and approximate sampling of Determinantal Point Processes.

Project description

Documentation Status Build Status Coverage Status

“Anything that can go wrong, will go wrong”Murphy’s Law

Introduction

Determinantal point processes (DPPs) are specific probability distributions over clouds of points that have been popular as models or computational tools across physics, probability, statistics, and more recently of booming interest in machine learning. Sampling from DPPs is a nontrivial matter, and many approaches have been proposed. DPPy is a Python library that puts together all exact and approximate sampling algorithms for DPPs.

Requirements

DPPy works with Python 3.4+.

Dependencies

Installation

DPPy is now available on PyPI

pip install dppy

However you may not work with the latest version, so

  1. If you have a GitHub account

    • Please consider forking DPPy

    • Use git to clone your copy of the repo

      cd <directory_of_your_choice>
      git clone https://github.com/<username>/DPPy.git
  2. If you only use git, clone this repository

    cd <directory_of_your_choice>
    git clone https://github.com/guilgautier/DPPy.git
  3. Otherwise simply dowload the project

  4. In any case, install the project with

    cd DPPy
    pip install .

Tutorials in Jupyter notebooks

You can read and work on these interactive tutorial Notebooks, directly from your web browser, without having to download or install Python or anything. Just click, wait a little bit, and play with the notebook!

Contribute to the documentation

The documentation is generated locally with Sphinx and then built online by ReadTheDocs.

If you wish to contribute to the documentation or just play with it locally, you can:

  • Install Sphinx

    pip install -U sphinx
  • Generate the docs locally

    cd DPPy/docs
    make html
  • Open the local HTML version of the documentation located at DPPy/docs/_build/html/index.html

    open _build/html/index.html

How to cite this work?

We wrote a companion paper to DPPy for latter submission to the MLOSS track of JMLR.

The companion paper is available on

If you use this package, please consider citing it with this piece of BibTeX:

@article{GPBV18,
  archivePrefix = {arXiv},
  arxivId = {1809.07258},
  author = {Gautier, Guillaume and Polito, Guillermo and Bardenet, R{\'{e}}mi and Valko, Michal},
  eprint = {1809.07258},
  journal = {ArXiv e-prints},
  title = {{DPPy: Sampling Determinantal Point Processes with Python}},
  keywords = {Computer Science - Machine Learning, Computer Science - Mathematical Software, Statistics - Machine Learning},
  url = {http://arxiv.org/abs/1809.07258},
  year = {2018},
  note = {Code at http://github.com/guilgautier/DPPy/ Documentation at http://dppy.readthedocs.io/}
}

Reproducibility

We would like to thank Guillermo Polito for leading our reproducible research workgroup, this project owes him a lot.

Take a look at the corresponding booklet to learn more on how to make your research reproducible!

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

dppy-0.2.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

dppy-0.2.0-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

Details for the file dppy-0.2.0.tar.gz.

File metadata

  • Download URL: dppy-0.2.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for dppy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 32c157441d9463e7c285d815f4083e3e0897c0f9259a17bc79eec3d6cd0ebad4
MD5 d1d272536e97b50aa8f128e7eb03f881
BLAKE2b-256 d66eeb2827f2993ca9563246d3cc4bae99c059641bb78c78615f9ebf076df3e4

See more details on using hashes here.

Provenance

File details

Details for the file dppy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dppy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 51.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for dppy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1175a0773e6402e9ad5d760cc080c4f65872504fd68f17a67bde52efd728e576
MD5 d7f97ceb649ecc477c23ccb9e8cfb127
BLAKE2b-256 0df065020537c7d21c96a54bfd270a31a52fd7db8c674a13d078423f5f33bd3d

See more details on using hashes here.

Provenance

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