Skip to main content
dirichlet
=========

[![image](https://img.shields.io/travis/tdhopper/dirichlet.svg)](https://travis-ci.org/tdhopper/dirichlet)

[![image](https://img.shields.io/pypi/v/dirichlet.svg)](https://pypi.python.org/pypi/dirichlet)

Construct a [Dirichlet Process](https://github.com/tdhopper/notes-on-dirichlet-processes) from any random sampler.

```
In [1]: from dp import DirichletProcess

In [2]: from random import normalvariate

In [3]: from collections import Counter

In [4]: dp = DirichletProcess(lambda: normalvariate(0, 1), alpha=1)

In [7]: Counter(dp() for _ in range(1000))
Out[7]: Counter({-0.029073686274754998: 679, 0.7332646430104509: 301, 0.23296111210571477: 12, -0.7042044460111074: 4, -2.2504937687943922: 4})
```

Install with `pip install dirichletprocess` or `conda install -c tdhopper dirichletprocess`.

History
=======

0.2.0 (2015-08-13)
==================

- Basic functionality added.

Metadata

Release files for dirichletprocess 0.2.0

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

Source distribution (sdist)

Source distribution for dirichletprocess 0.2.0
File Size Uploaded Provenance
dirichletprocess-0.2.0.tar.gz 12.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dirichletprocess 0.2.0
File Interpreter ABI Platform
dirichletprocess-0.2.0-py2-none-any.whl Python 2 none any Details

Total release size: 16.4 kB

Release files / dirichletprocess-0.2.0.tar.gz

Download URL dirichletprocess-0.2.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3b23976d9743d3373beab8dcb12690437f38b3ff97febf8dddbb073011afe5a8
BLAKE2b-256 checksum
How to use checksums
5b1c015c2a6e624c408631828a3506d4ce44e9db099e30ba899da32045cb9de7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dirichletprocess-0.2.0-py2-none-any.whl

Download URL dirichletprocess-0.2.0-py2-none-any.whl
Size 4.0 kB
Tags Python 2
SHA-256 checksum
How to use checksums
39c2017b8b8a0d00bf640490ab70b32576f8bad036aa50fb23f4eea946f15dfb
BLAKE2b-256 checksum
How to use checksums
2db87a69567a7a3bd7fc2814dd72b30858da63e8359711033cfcabcb9d4e4af3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dirichletprocess 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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