Skip to main content
=====
pyDPP
=====

A python package for sampling from determinantal point processes. Below are instances of sampling from a bicluster and from a random set of points using pyDPP. Refer to examples and references for more information.


.. raw:: html

<img src="https://raw.githubusercontent.com/satwik77/pyDPP/master/example/dpp_selection_k12.png?token=AKhAbS05A3CBgKfXR9P7i4adhlM7Q-whks5b0bhYwA%3D%3D" height="220px">



Usage
-----

Usage example:

::

>>> from pydpp.dpp import DPP
>>> import numpy as np
>>> X = np.random.random((10,10))
>>> dpp = DPP(X)
>>> dpp.compute_kernel(kernel_type = 'rbf', sigma= 0.4) # use 'cos-sim' for cosine similarity
>>> samples = dpp.samples() # samples := [1,7,2,5]
>>> ksamlpes = dpp.sample_k(3) # ksamples := [5,8,0]

Installation
------------

To get the project's source code, clone the github repository:

::

$ git clone https://github.com/satwik77/pyDPP.git
$ cd pyDPP

Create a virtual environment and activate it. [optional]

::

$ [sudo] pip install virtualenv
$ virtualenv -p python3 venv
$ source venv/bin/activate
(venv)$

Next, install all the dependencies in the environment.

::

(venv)$ pip install -r requirements.txt


Install the package into the virtual environment.

::

(venv)$ python setup.py install

Requirements
^^^^^^^^^^^^
- Numpy
- Scipy

To run the example jupyter notebook you need install jupyter notebook, sklearn and matplotlib.

Compatibility
^^^^^^^^^^^^^
The package has been test with python 2.7 and python 3.5.2


Reference
^^^^^^^^^^

- Kulesza, A. and Taskar, B., 2011. k-DPPs: Fixed-size determinantal point processes. In Proceedings of the 28th International Conference on Machine Learning (ICML-11) (pp. 1193-1200). [`paper <https://homes.cs.washington.edu/~taskar/pubs/kdpps_icml11.pdf>`__]

- Kulesza, A. and Taskar, B., 2012. Determinantal point processes for machine learning. Foundations and Trends® in Machine Learning, 5(2–3), pp.123-286. [`paper <http://www.alexkulesza.com/pubs/dpps_fnt12.pdf>`__]




Metadata

Release files for pydpp 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydpp 0.2.1
File Size Uploaded Provenance Actions
pydpp-0.2.1.tar.gz 4.0 kB Without provenance Details for pydpp-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydpp 0.2.1
File Interpreter ABI Platform Actions
pydpp-0.2.1-py3-none-any.whl Python 3 none any Details for pydpp-0.2.1-py3-none-any.whl

Total release size: 8.7 kB

Release files / pydpp-0.2.1.tar.gz

Download URL pydpp-0.2.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
feddbba1f37a53f09c266d2189ddb9f6647ab55a7ff2f62d8c58f611d5a5e35f
BLAKE2b-256 checksum
How to use checksums
f61f8329281874b83456d4c8fc6a3f1db4d6094e18d99b6b8a192e1def73f03b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.2

Release files / pydpp-0.2.1-py3-none-any.whl

Download URL pydpp-0.2.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bad4991691fbb538fb1c3f494410eac399a99e214d5e47d96594e332ec5920a6
BLAKE2b-256 checksum
How to use checksums
ba1ddabe921b95b7067ccdca3c81e330b163d78792adf8799cefbf3dc8bf494e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.2

Security for pydpp 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page