polyagamma


Namepolyagamma JSON
Version 1.3.6 PyPI version JSON
download
home_page
SummaryEfficiently generate samples from the Polya-Gamma distribution using a NumPy/SciPy compatible interface.
upload_time2023-10-08 06:01:08
maintainer
docs_urlNone
author
requires_python>=3.9
licenseBSD 3-Clause License
keywords polya-gamma distribution polya-gamma random sampling
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Polya-Gamma
[![PyPI - Wheel][4]](https://pypi.org/project/polyagamma/#files)
[![CI][7]](https://github.com/zoj613/polyagamma/actions/workflows/build-and-test.yml)
[![Codecov][8]](https://codecov.io/gh/zoj613/polyagamma/)
[![PyPI - License][6]](https://github.com/zoj613/polyagamma/blob/main/LICENSE)
[![PyPI][5]](https://pypi.org/project/polyagamma/#history)
[![Conda][11]](https://anaconda.org/conda-forge/polyagamma)


Efficiently generate samples from the Polya-Gamma distribution using a NumPy/SciPy compatible interface.

## Why?

If you are reading this, you probably have already used the [pypolyagamma][9] package before. It is
a great package that I have also used in the past, however I encountered several issues:
- Generating an array of samples is awkward because it requires using a list comprehension
  if parameter values are scalars or have pre-allocated arrays of a known size to pass for both
  the parameters and the output array. Moreover, broadcasting of input is not supported and thus
  requiring the user to write another layer to support it.
- It requires extra effort to be used in multiprocessing because pickling of the
  sampler is not supported.
- There is no parameter validation supported meaning it is easy to get the wrong samples if
  you do not check the inputs manually.
- The sampling API is very different from the ones used by popular packages like numpy/scipy,
  making it harder to just "plug-n-play" in existing code bases.
- It does not allow passing in an instance of a `np.random.RandomState` or `np.random.Generator`
  for seeding, requiring extra effort when changing the seed if used in a larger code base.
- The C++ code wrapped by the package is GPLv3 licensed, making it difficult to
  use the source code in a project that prefers licenses like MIT/Apache/BSD.

The above issues are the reason why this package exists. And the aim of `polyagamma` is to "fix" them.


## Features
- Input parameters can be scalars, arrays or both; allowing for easy generation
of multi-dimensional samples without specifying the size.
- Input validation is done internally with clear error messages upon failure.
- It is flexible and allows the user to sample using one of 4 available algorithms.
- Implements functions to compute the CDF and density of the distribution as well
  as their logarithms.
- Random number generation is thread safe.
- The functional API resembles that of common numpy/scipy functions, therefore making it easy to plugin to
existing libraries.
- `polyagamma` is optimized for performance and tests show that it is faster
  than other implementations.
- Pre-built wheels are provided for easy installation on Linux, MacOS and Windows.


## Examples

### Python

```python
import array
import numpy as np
from polyagamma import random_polyagamma

# generate a PG(1, 0) sample
o = random_polyagamma()

# Get a 5 by 1 array of PG(1, 2) variates.
o = random_polyagamma(z=2, size=5)

# We can pass sequences as input. Numpy's broadcasting rules apply here.
# Get a 10 by 2 array where column 1 is PG(2, -10) and column 2 is PG(1, 10)
o = random_polyagamma([2, 1], [-10, 10], size=(10, 2))
z = [[1.5, 2, -0.75, 4, 5],
     [9.5, -8, 7, 6, -0.9]]
o = random_polyagamma(1, z)

# We can pass an output array using the `out` parameter. It does not have to be
# a numpy array. it can be any object that implements the array or buffer protocols.
# As long as its type is 64bit float, contiguous in memory and aligned (e.g. Python's array object).
numpy_out = np.empty(5)
array_out = array.array('d', [0] * 5)
random_polyagamma(out=numpy_out)
print(numpy_out)
random_polyagamma(out=array_out)
print(array_out)

# one can choose a sampling method from {devroye, alternate, gamma, saddle}.
# If not given, the default behaviour is a hybrid sampler that picks the most
# efficient method based on the input values.
o = random_polyagamma(method="saddle")

# one can also use an existing instance of `numpy.random.Generator` as a parameter.
# This is useful to reproduce samples generated via a given seed.
rng = np.random.default_rng(12345)
o = random_polyagamma(random_state=rng)

# If one is using a `numpy.random.RandomState` instance instead of the `Generator`
# class, the object's underlying bitgenerator can be passed as the value of random_state
bit_gen = np.random.RandomState(12345)._bit_generator
o = random_polyagamma(random_state=bit_gen)

# When passing a large input array for the shape parameter `h`, parameter value
# validation checks can be disabled if the values are guaranteed to be positive
# to avoid some overhead, which may boost performance.
large_h = np.ones(1000000)
o = random_polyagamma(large_h, disable_checks=True)
```
Functions to compute the density and CDF are available. Broadcasting of input is supported.
```python
from polyagamma import polyagamma_pdf, polyagamma_cdf

>>> polyagamma_pdf(0.1)
# 3.613955566329298
>>> polyagamma_cdf([1, 2], h=2, z=1)
# array([0.95637847, 0.99963397])
>>> polyagamma_pdf([2, 0.1], h=[[1, 2], [3, 4]], return_log=True)
# array([[   -8.03172733,  -489.17101125]
#        [   -3.82023942, -1987.09156971]])
>>> polyagamma_cdf(4, z=[-100, 0, 2], return_log=True)
# array([ 3.72007598e-44, -3.40628215e-09, -1.25463528e-12])
```

### Cython
The package also provides low-level functions that can be imported in cython modules. They are:
- `random_polyagamma`
- `random_polyagamma_fill`
- `random_polyagamma_fill2`

Refer to the [pgm_random.h](./include/pgm_random.h) header file for more info about the
function signatures. Below is an example of how these functions can be used.

```cython
from cpython.pycapsule cimport PyCapsule_GetPointer
from polyagamma cimport random_polyagamma_fill, DEVROYE
from numpy.random cimport bitgen_t
import numpy as np

# assuming there exists an instance of the Generator class called `rng`.
bitgenerator = rng._bit_generator
# get pointer to the underlying bitgenerator struct
cdef bitgen_t* bitgen = <bitgen_t*>PyCapsule_GetPointer(bitgenerator.capsule, "BitGenerator")
# set distribution parameters
cdef double h = 1, z = 0
# get a memory view of the array to store samples in
cdef double[:] out = np.empty(300)
with bitgenerator.lock, nogil:
    random_polyagamma_fill(bitgen, h, z, DEVROYE, <size_t>out.shape[0], &out[0])
print(out.base)
...
```

### PyMC
As of `pymc>=4.0.0b1`, this distribution can be accessed as a PyMC distribution object. See the
pymc documentation for more details.

### C
For an example of how to use `polyagamma` in a C program, see [here][1].


## Dependencies
- Numpy >= 1.19.0


## Installation
To get the latest version of the package, one can install it by downloading the wheel/source distribution 
from the [releases][3] page, or using `pip` with the following shell command:
```shell
$ pip install --pre -U polyagamma
```
or using `conda` with the following command:
```shell
$ conda install -c conda-forge polyagamma
```
Alternatively, once can install from source with the following shell commands:
```shell
$ git clone https://github.com/zoj613/polyagamma.git
$ cd polyagamma/
$ pip install .
```


## Benchmarks

Below are runtime plots of 20000 samples generated for various values of `h` 
and `z`, using each method. We restrict `h` to integer values to accomodate the 
`devroye` method, which cannot be used for non-integer `h`. The version of the
package used to generate them is `v1.3.1`.

|![](./scripts/img/perf_methods_0.0.svg) | ![](./scripts/img/perf_methods_2.5.svg)|
| --- | --- |

|![](./scripts/img/perf_methods_5.0.svg) | ![](./scripts/img/perf_methods_10.0.svg)|
| --- | --- |

Generally:
- The `gamma` method is slowest and should be avoided in cases where speed is paramount.
- For `h >= 8`, the `saddle` method is the fastest for any value of `z`.
- For `0 <= z <= 1` and integer `h <= 4`, the `devroye` method should be preferred.
- For `z > 1` and `1 < h < 8`, the `alternate` method is the most efficient.
- For `h > 50` (or any value large enough), the normal approximation to the distribution is 
fastest (not reported in the above plot but it is around 10 times faster than the `saddle` 
method and also equally accurate).

Therefore, we devise a "hybrid/default" sampler that picks a sampler based on the above guidelines.

We also benchmark the hybrid sampler runtime with the sampler found in the `pypolyagamma` 
package (version `1.2.3`). The version of NumPy we use is `1.19.0`. We compare our
sampler to the `pgdrawv` functions provided by the package. Below are runtime plots of 20000
samples for each value of `h` and `z`. Values of `h` range from 0.1 to 50, while `z` is set
to 0, 2.5, 5, and 10.

|![](./scripts/img/perf_samplers_0.0.svg) | ![](./scripts/img/perf_samplers_2.5.svg)|
| --- | --- |

|![](./scripts/img/perf_samplers_5.0.svg) | ![](./scripts/img/perf_samplers_10.0.svg)|
| --- | --- |

It can be seen that when generating many samples at once for any given combination of 
parameters, `polyagamma` outperforms the `pypolyagamma` package by a large margin.
The exception is when the scale parameter is very small (e.g `h < 1`). It is also worth
noting that the `pypolygamma` package is on average faster than ours at generating exactly 1
sample value from the distribution. This is mainly due to the overhead introduced by creating
the bitgenerator + acquiring/releasing the thread lock + doing parameter validation checks at
every call to the function. This overhead can somewhat be mitigated by passing in a random
generator instance at every call to the `polyagamma` function. To eliminate this overhead,
it is best to use the Cython functions directly. Below is a timing example to demonstrate
the benefit of passing a generator explicitly:
```shell
In [3]: rng = np.random.SFC64(1)

In [4]: %timeit random_polyagamma()
90 µs ± 1.65 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)

In [5]: %timeit random_polyagamma(random_state=rng)
1.69 µs ± 6.96 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
```

To generate the above plots locally, run
```shell
$ pip install -r scripts/requirements.txt
$ python scripts/benchmark.py --size=<some size> --z=<z value>
```
Note that the runtimes may differ  than the ones reported here, depending on the machine this script 
is ran on.


## Distribution Plots
Below is a visualization of the Cumulative distribution and density functions for
various values of the parameters.
|![](./scripts/img/pdf.svg) | ![](./scripts/img/cdf.svg)|
| --- | --- |

We can compare these plots to the Kernel density estimate and empirical CDF plots
generated from 20000 random samples using each of the available methods.
|![](./scripts/img/kde.svg) | ![](./scripts/img/ecdf.svg)|
| --- | --- |


## Contributing
All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.

To submit a PR, follow the steps below:
1) Fork the repo.
2) Install and setup the dev environment with `pip install -r requirements-dev.txt` or `make dev`.
3) Start writing your changes, including unittests.
4) Run tests to make sure they all pass with `make test`.
5) Once finished, you can submit a PR for review.


## References
- Luc Devroye. "On exact simulation algorithms for some distributions related to Jacobi theta functions." Statistics & Probability Letters, Volume 79, Issue 21, (2009): 2251-2259.
- Polson, Nicholas G., James G. Scott, and Jesse Windle. "Bayesian inference for logistic models using Pólya–Gamma latent variables." Journal of the American statistical Association 108.504 (2013): 1339-1349.
- J. Windle, N. G. Polson, and J. G. Scott. "Improved Polya-gamma sampling". Technical Report, University of Texas at Austin, 2013b.
- Windle, Jesse, Nicholas G. Polson, and James G. Scott. "Sampling Polya-Gamma random variates: alternate and approximate techniques." arXiv preprint arXiv:1405.0506 (2014)
- Windle, J. (2013). Forecasting high-dimensional, time-varying variance-covariance matrices with high-frequency data and sampling Pólya-Gamma random variates for posterior distributions derived from logistic likelihoods.(PhD thesis). Retrieved from http://hdl.handle.net/2152/21842 .


[1]: ./examples/c_polyagamma.c
[3]: https://github.com/zoj613/polyagamma/releases
[4]: https://img.shields.io/pypi/wheel/polyagamma?style=flat-square
[5]: https://img.shields.io/github/v/release/zoj613/polyagamma?include_prereleases&label=pypi&style=flat-square
[6]: https://img.shields.io/pypi/l/polyagamma?style=flat-square
[7]: https://img.shields.io/github/workflow/status/zoj613/polyagamma/CI/main?style=flat-square
[8]: https://img.shields.io/codecov/c/github/zoj613/polyagamma?style=flat-square
[9]: https://github.com/slinderman/pypolyagamma
[10]: https://github.com/python-poetry/poetry
[11]: https://img.shields.io/conda/vn/conda-forge/polyagamma?style=flat-square

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "polyagamma",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "polya-gamma distribution,polya-gamma random sampling",
    "author": "",
    "author_email": "Zolisa Bleki <zolisa.bleki@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/1e/8c/55f90cb1c19f7a5ddecec62c3d0cd27e8114c0739938caa947d6a4ecb664/polyagamma-1.3.6.tar.gz",
    "platform": null,
    "description": "# Polya-Gamma\n[![PyPI - Wheel][4]](https://pypi.org/project/polyagamma/#files)\n[![CI][7]](https://github.com/zoj613/polyagamma/actions/workflows/build-and-test.yml)\n[![Codecov][8]](https://codecov.io/gh/zoj613/polyagamma/)\n[![PyPI - License][6]](https://github.com/zoj613/polyagamma/blob/main/LICENSE)\n[![PyPI][5]](https://pypi.org/project/polyagamma/#history)\n[![Conda][11]](https://anaconda.org/conda-forge/polyagamma)\n\n\nEfficiently generate samples from the Polya-Gamma distribution using a NumPy/SciPy compatible interface.\n\n## Why?\n\nIf you are reading this, you probably have already used the [pypolyagamma][9] package before. It is\na great package that I have also used in the past, however I encountered several issues:\n- Generating an array of samples is awkward because it requires using a list comprehension\n  if parameter values are scalars or have pre-allocated arrays of a known size to pass for both\n  the parameters and the output array. Moreover, broadcasting of input is not supported and thus\n  requiring the user to write another layer to support it.\n- It requires extra effort to be used in multiprocessing because pickling of the\n  sampler is not supported.\n- There is no parameter validation supported meaning it is easy to get the wrong samples if\n  you do not check the inputs manually.\n- The sampling API is very different from the ones used by popular packages like numpy/scipy,\n  making it harder to just \"plug-n-play\" in existing code bases.\n- It does not allow passing in an instance of a `np.random.RandomState` or `np.random.Generator`\n  for seeding, requiring extra effort when changing the seed if used in a larger code base.\n- The C++ code wrapped by the package is GPLv3 licensed, making it difficult to\n  use the source code in a project that prefers licenses like MIT/Apache/BSD.\n\nThe above issues are the reason why this package exists. And the aim of `polyagamma` is to \"fix\" them.\n\n\n## Features\n- Input parameters can be scalars, arrays or both; allowing for easy generation\nof multi-dimensional samples without specifying the size.\n- Input validation is done internally with clear error messages upon failure.\n- It is flexible and allows the user to sample using one of 4 available algorithms.\n- Implements functions to compute the CDF and density of the distribution as well\n  as their logarithms.\n- Random number generation is thread safe.\n- The functional API resembles that of common numpy/scipy functions, therefore making it easy to plugin to\nexisting libraries.\n- `polyagamma` is optimized for performance and tests show that it is faster\n  than other implementations.\n- Pre-built wheels are provided for easy installation on Linux, MacOS and Windows.\n\n\n## Examples\n\n### Python\n\n```python\nimport array\nimport numpy as np\nfrom polyagamma import random_polyagamma\n\n# generate a PG(1, 0) sample\no = random_polyagamma()\n\n# Get a 5 by 1 array of PG(1, 2) variates.\no = random_polyagamma(z=2, size=5)\n\n# We can pass sequences as input. Numpy's broadcasting rules apply here.\n# Get a 10 by 2 array where column 1 is PG(2, -10) and column 2 is PG(1, 10)\no = random_polyagamma([2, 1], [-10, 10], size=(10, 2))\nz = [[1.5, 2, -0.75, 4, 5],\n     [9.5, -8, 7, 6, -0.9]]\no = random_polyagamma(1, z)\n\n# We can pass an output array using the `out` parameter. It does not have to be\n# a numpy array. it can be any object that implements the array or buffer protocols.\n# As long as its type is 64bit float, contiguous in memory and aligned (e.g. Python's array object).\nnumpy_out = np.empty(5)\narray_out = array.array('d', [0] * 5)\nrandom_polyagamma(out=numpy_out)\nprint(numpy_out)\nrandom_polyagamma(out=array_out)\nprint(array_out)\n\n# one can choose a sampling method from {devroye, alternate, gamma, saddle}.\n# If not given, the default behaviour is a hybrid sampler that picks the most\n# efficient method based on the input values.\no = random_polyagamma(method=\"saddle\")\n\n# one can also use an existing instance of `numpy.random.Generator` as a parameter.\n# This is useful to reproduce samples generated via a given seed.\nrng = np.random.default_rng(12345)\no = random_polyagamma(random_state=rng)\n\n# If one is using a `numpy.random.RandomState` instance instead of the `Generator`\n# class, the object's underlying bitgenerator can be passed as the value of random_state\nbit_gen = np.random.RandomState(12345)._bit_generator\no = random_polyagamma(random_state=bit_gen)\n\n# When passing a large input array for the shape parameter `h`, parameter value\n# validation checks can be disabled if the values are guaranteed to be positive\n# to avoid some overhead, which may boost performance.\nlarge_h = np.ones(1000000)\no = random_polyagamma(large_h, disable_checks=True)\n```\nFunctions to compute the density and CDF are available. Broadcasting of input is supported.\n```python\nfrom polyagamma import polyagamma_pdf, polyagamma_cdf\n\n>>> polyagamma_pdf(0.1)\n# 3.613955566329298\n>>> polyagamma_cdf([1, 2], h=2, z=1)\n# array([0.95637847, 0.99963397])\n>>> polyagamma_pdf([2, 0.1], h=[[1, 2], [3, 4]], return_log=True)\n# array([[   -8.03172733,  -489.17101125]\n#        [   -3.82023942, -1987.09156971]])\n>>> polyagamma_cdf(4, z=[-100, 0, 2], return_log=True)\n# array([ 3.72007598e-44, -3.40628215e-09, -1.25463528e-12])\n```\n\n### Cython\nThe package also provides low-level functions that can be imported in cython modules. They are:\n- `random_polyagamma`\n- `random_polyagamma_fill`\n- `random_polyagamma_fill2`\n\nRefer to the [pgm_random.h](./include/pgm_random.h) header file for more info about the\nfunction signatures. Below is an example of how these functions can be used.\n\n```cython\nfrom cpython.pycapsule cimport PyCapsule_GetPointer\nfrom polyagamma cimport random_polyagamma_fill, DEVROYE\nfrom numpy.random cimport bitgen_t\nimport numpy as np\n\n# assuming there exists an instance of the Generator class called `rng`.\nbitgenerator = rng._bit_generator\n# get pointer to the underlying bitgenerator struct\ncdef bitgen_t* bitgen = <bitgen_t*>PyCapsule_GetPointer(bitgenerator.capsule, \"BitGenerator\")\n# set distribution parameters\ncdef double h = 1, z = 0\n# get a memory view of the array to store samples in\ncdef double[:] out = np.empty(300)\nwith bitgenerator.lock, nogil:\n    random_polyagamma_fill(bitgen, h, z, DEVROYE, <size_t>out.shape[0], &out[0])\nprint(out.base)\n...\n```\n\n### PyMC\nAs of `pymc>=4.0.0b1`, this distribution can be accessed as a PyMC distribution object. See the\npymc documentation for more details.\n\n### C\nFor an example of how to use `polyagamma` in a C program, see [here][1].\n\n\n## Dependencies\n- Numpy >= 1.19.0\n\n\n## Installation\nTo get the latest version of the package, one can install it by downloading the wheel/source distribution \nfrom the [releases][3] page, or using `pip` with the following shell command:\n```shell\n$ pip install --pre -U polyagamma\n```\nor using `conda` with the following command:\n```shell\n$ conda install -c conda-forge polyagamma\n```\nAlternatively, once can install from source with the following shell commands:\n```shell\n$ git clone https://github.com/zoj613/polyagamma.git\n$ cd polyagamma/\n$ pip install .\n```\n\n\n## Benchmarks\n\nBelow are runtime plots of 20000 samples generated for various values of `h` \nand `z`, using each method. We restrict `h` to integer values to accomodate the \n`devroye` method, which cannot be used for non-integer `h`. The version of the\npackage used to generate them is `v1.3.1`.\n\n|![](./scripts/img/perf_methods_0.0.svg) | ![](./scripts/img/perf_methods_2.5.svg)|\n| --- | --- |\n\n|![](./scripts/img/perf_methods_5.0.svg) | ![](./scripts/img/perf_methods_10.0.svg)|\n| --- | --- |\n\nGenerally:\n- The `gamma` method is slowest and should be avoided in cases where speed is paramount.\n- For `h >= 8`, the `saddle` method is the fastest for any value of `z`.\n- For `0 <= z <= 1` and integer `h <= 4`, the `devroye` method should be preferred.\n- For `z > 1` and `1 < h < 8`, the `alternate` method is the most efficient.\n- For `h > 50` (or any value large enough), the normal approximation to the distribution is \nfastest (not reported in the above plot but it is around 10 times faster than the `saddle` \nmethod and also equally accurate).\n\nTherefore, we devise a \"hybrid/default\" sampler that picks a sampler based on the above guidelines.\n\nWe also benchmark the hybrid sampler runtime with the sampler found in the `pypolyagamma` \npackage (version `1.2.3`). The version of NumPy we use is `1.19.0`. We compare our\nsampler to the `pgdrawv` functions provided by the package. Below are runtime plots of 20000\nsamples for each value of `h` and `z`. Values of `h` range from 0.1 to 50, while `z` is set\nto 0, 2.5, 5, and 10.\n\n|![](./scripts/img/perf_samplers_0.0.svg) | ![](./scripts/img/perf_samplers_2.5.svg)|\n| --- | --- |\n\n|![](./scripts/img/perf_samplers_5.0.svg) | ![](./scripts/img/perf_samplers_10.0.svg)|\n| --- | --- |\n\nIt can be seen that when generating many samples at once for any given combination of \nparameters, `polyagamma` outperforms the `pypolyagamma` package by a large margin.\nThe exception is when the scale parameter is very small (e.g `h < 1`). It is also worth\nnoting that the `pypolygamma` package is on average faster than ours at generating exactly 1\nsample value from the distribution. This is mainly due to the overhead introduced by creating\nthe bitgenerator + acquiring/releasing the thread lock + doing parameter validation checks at\nevery call to the function. This overhead can somewhat be mitigated by passing in a random\ngenerator instance at every call to the `polyagamma` function. To eliminate this overhead,\nit is best to use the Cython functions directly. Below is a timing example to demonstrate\nthe benefit of passing a generator explicitly:\n```shell\nIn [3]: rng = np.random.SFC64(1)\n\nIn [4]: %timeit random_polyagamma()\n90 \u00b5s \u00b1 1.65 \u00b5s per loop (mean \u00b1 std. dev. of 7 runs, 10000 loops each)\n\nIn [5]: %timeit random_polyagamma(random_state=rng)\n1.69 \u00b5s \u00b1 6.96 ns per loop (mean \u00b1 std. dev. of 7 runs, 1000000 loops each)\n```\n\nTo generate the above plots locally, run\n```shell\n$ pip install -r scripts/requirements.txt\n$ python scripts/benchmark.py --size=<some size> --z=<z value>\n```\nNote that the runtimes may differ  than the ones reported here, depending on the machine this script \nis ran on.\n\n\n## Distribution Plots\nBelow is a visualization of the Cumulative distribution and density functions for\nvarious values of the parameters.\n|![](./scripts/img/pdf.svg) | ![](./scripts/img/cdf.svg)|\n| --- | --- |\n\nWe can compare these plots to the Kernel density estimate and empirical CDF plots\ngenerated from 20000 random samples using each of the available methods.\n|![](./scripts/img/kde.svg) | ![](./scripts/img/ecdf.svg)|\n| --- | --- |\n\n\n## Contributing\nAll contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.\n\nTo submit a PR, follow the steps below:\n1) Fork the repo.\n2) Install and setup the dev environment with `pip install -r requirements-dev.txt` or `make dev`.\n3) Start writing your changes, including unittests.\n4) Run tests to make sure they all pass with `make test`.\n5) Once finished, you can submit a PR for review.\n\n\n## References\n- Luc Devroye. \"On exact simulation algorithms for some distributions related to Jacobi theta functions.\" Statistics & Probability Letters, Volume 79, Issue 21, (2009): 2251-2259.\n- Polson, Nicholas G., James G. Scott, and Jesse Windle. \"Bayesian inference for logistic models using P\u00f3lya\u2013Gamma latent variables.\" Journal of the American statistical Association 108.504 (2013): 1339-1349.\n- J. Windle, N. G. Polson, and J. G. Scott. \"Improved Polya-gamma sampling\". Technical Report, University of Texas at Austin, 2013b.\n- Windle, Jesse, Nicholas G. Polson, and James G. Scott. \"Sampling Polya-Gamma random variates: alternate and approximate techniques.\" arXiv preprint arXiv:1405.0506 (2014)\n- Windle, J. (2013). Forecasting high-dimensional, time-varying variance-covariance matrices with high-frequency data and sampling Po\u0301lya-Gamma random variates for posterior distributions derived from logistic likelihoods.(PhD thesis). Retrieved from http://hdl.handle.net/2152/21842 .\n\n\n[1]: ./examples/c_polyagamma.c\n[3]: https://github.com/zoj613/polyagamma/releases\n[4]: https://img.shields.io/pypi/wheel/polyagamma?style=flat-square\n[5]: https://img.shields.io/github/v/release/zoj613/polyagamma?include_prereleases&label=pypi&style=flat-square\n[6]: https://img.shields.io/pypi/l/polyagamma?style=flat-square\n[7]: https://img.shields.io/github/workflow/status/zoj613/polyagamma/CI/main?style=flat-square\n[8]: https://img.shields.io/codecov/c/github/zoj613/polyagamma?style=flat-square\n[9]: https://github.com/slinderman/pypolyagamma\n[10]: https://github.com/python-poetry/poetry\n[11]: https://img.shields.io/conda/vn/conda-forge/polyagamma?style=flat-square\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License",
    "summary": "Efficiently generate samples from the Polya-Gamma distribution using a NumPy/SciPy compatible interface.",
    "version": "1.3.6",
    "project_urls": {
        "source": "https://github.com/zoj613/polyagamma",
        "tracker": "https://github.com/zoj613/polyagamma/issues"
    },
    "split_keywords": [
        "polya-gamma distribution",
        "polya-gamma random sampling"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f7cf0e37cc1cf959e346dbabd4223c0400ebe37ce11e53fa5ad77d8bd22eb13",
                "md5": "ad01e2d91902bd6d7850186e479e0fcb",
                "sha256": "167bd98163b2d73bb5180f07967520142a5006c817249bc86374ac7e67c40c4b"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp310-cp310-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ad01e2d91902bd6d7850186e479e0fcb",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 145388,
            "upload_time": "2023-10-08T06:00:25",
            "upload_time_iso_8601": "2023-10-08T06:00:25.330131Z",
            "url": "https://files.pythonhosted.org/packages/4f/7c/f0e37cc1cf959e346dbabd4223c0400ebe37ce11e53fa5ad77d8bd22eb13/polyagamma-1.3.6-cp310-cp310-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab47525addeab78bca58f38f40a92181d3b9b7d679d5dfe7208582c7852fab4a",
                "md5": "5321d7a1dc0ea4c7174dc38759c63692",
                "sha256": "9871e29fe3652604c9fb03d55ba7954f5fbef97ab1d1ee06d499f88bec7a90ed"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp310-cp310-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "5321d7a1dc0ea4c7174dc38759c63692",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 138698,
            "upload_time": "2023-10-08T06:00:27",
            "upload_time_iso_8601": "2023-10-08T06:00:27.354938Z",
            "url": "https://files.pythonhosted.org/packages/ab/47/525addeab78bca58f38f40a92181d3b9b7d679d5dfe7208582c7852fab4a/polyagamma-1.3.6-cp310-cp310-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2fe8009fd18d7f8e0d273a9b92ed1e599c0392c859776735faa4a5c300315e3b",
                "md5": "5a2c4f889ec5f87474ed88cefddddf7e",
                "sha256": "8dae815fb22d6cc50146c03bb4183d96c9d0febfa242fa42a1afeac7e2438914"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "5a2c4f889ec5f87474ed88cefddddf7e",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 525471,
            "upload_time": "2023-10-08T06:00:28",
            "upload_time_iso_8601": "2023-10-08T06:00:28.762898Z",
            "url": "https://files.pythonhosted.org/packages/2f/e8/009fd18d7f8e0d273a9b92ed1e599c0392c859776735faa4a5c300315e3b/polyagamma-1.3.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2db7bcf3a94f568b51db330b6e05e16713ba8c41657a3ce335678c25b8225dbc",
                "md5": "61e45fd1f679b4168eaa7f663c271747",
                "sha256": "f475ed37daca61a65a507bd98831b8052b078f6b2fa9c68a26a0c68c389c56c9"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "61e45fd1f679b4168eaa7f663c271747",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 527839,
            "upload_time": "2023-10-08T06:00:30",
            "upload_time_iso_8601": "2023-10-08T06:00:30.830613Z",
            "url": "https://files.pythonhosted.org/packages/2d/b7/bcf3a94f568b51db330b6e05e16713ba8c41657a3ce335678c25b8225dbc/polyagamma-1.3.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2eba2f6ed20af5651e0f029be29bbeb64cd476fecad3fa07dcdc75dfab7ea3e6",
                "md5": "f9459c4f1a4d13300f87549871f8cb94",
                "sha256": "d2dbb5ea91b5a1e25ac75963a809fa83a2b157001664c9bf637bd6f5579494b7"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp310-cp310-musllinux_1_1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f9459c4f1a4d13300f87549871f8cb94",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 586470,
            "upload_time": "2023-10-08T06:00:32",
            "upload_time_iso_8601": "2023-10-08T06:00:32.698505Z",
            "url": "https://files.pythonhosted.org/packages/2e/ba/2f6ed20af5651e0f029be29bbeb64cd476fecad3fa07dcdc75dfab7ea3e6/polyagamma-1.3.6-cp310-cp310-musllinux_1_1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f72bea6dcbe704e984ba0fda7f5ce587b4e6b380039739d6e8d5ce81d93bf193",
                "md5": "bea1d4408a49bb38797d49b5491bafb0",
                "sha256": "de3d2a9626be11e2b89f039caac454467edeb9445523caf98af925ce39a0a2ec"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "bea1d4408a49bb38797d49b5491bafb0",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 129434,
            "upload_time": "2023-10-08T06:00:33",
            "upload_time_iso_8601": "2023-10-08T06:00:33.872524Z",
            "url": "https://files.pythonhosted.org/packages/f7/2b/ea6dcbe704e984ba0fda7f5ce587b4e6b380039739d6e8d5ce81d93bf193/polyagamma-1.3.6-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a0e335c3277c5d06ac73717434e01e16ed780791ff134cd13923cf5729839f96",
                "md5": "7b371c2e1da61ac157d82e0864e56ff2",
                "sha256": "a2131264b896ae85063656c12b3f738ea7791ddb47941c1d61dcbb3161f0faca"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp311-cp311-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "7b371c2e1da61ac157d82e0864e56ff2",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 143090,
            "upload_time": "2023-10-08T06:00:35",
            "upload_time_iso_8601": "2023-10-08T06:00:35.565717Z",
            "url": "https://files.pythonhosted.org/packages/a0/e3/35c3277c5d06ac73717434e01e16ed780791ff134cd13923cf5729839f96/polyagamma-1.3.6-cp311-cp311-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d956041e4196589de10843c56c673f4f8b42e703bec9580ce5fc241c15db15b",
                "md5": "bd9c2f08f3f0365740c0983d88d027a0",
                "sha256": "ebdc87767b698b5b28f407d1f9db34282204fb780671d9e2784d2e22d8b7d505"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp311-cp311-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "bd9c2f08f3f0365740c0983d88d027a0",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 99061,
            "upload_time": "2023-10-08T06:00:37",
            "upload_time_iso_8601": "2023-10-08T06:00:37.526450Z",
            "url": "https://files.pythonhosted.org/packages/8d/95/6041e4196589de10843c56c673f4f8b42e703bec9580ce5fc241c15db15b/polyagamma-1.3.6-cp311-cp311-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ec38b7a3e53e8cfd1678526bf9438c14fff234b30ec544a8fd90d41c9dd8ce89",
                "md5": "0585ea7cd92c36e2aa083b1940bd4884",
                "sha256": "7b6503402bb5be10079a1713c9fb9d5c24c21e5bf6fe1d5b0e9ae6f6efa414b5"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "0585ea7cd92c36e2aa083b1940bd4884",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 540133,
            "upload_time": "2023-10-08T06:00:39",
            "upload_time_iso_8601": "2023-10-08T06:00:39.201100Z",
            "url": "https://files.pythonhosted.org/packages/ec/38/b7a3e53e8cfd1678526bf9438c14fff234b30ec544a8fd90d41c9dd8ce89/polyagamma-1.3.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "abfd75e87d825ef27cd982e5efd1ac7ad6c0466499d3ed9f2d02fa5e75325dda",
                "md5": "c8138f1572ebc1c9676e5da1625ba318",
                "sha256": "574ae551fde9d372e96a78f42d6adba2e46ae623e996a578d1f88cc606f965a7"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c8138f1572ebc1c9676e5da1625ba318",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 542528,
            "upload_time": "2023-10-08T06:00:40",
            "upload_time_iso_8601": "2023-10-08T06:00:40.747474Z",
            "url": "https://files.pythonhosted.org/packages/ab/fd/75e87d825ef27cd982e5efd1ac7ad6c0466499d3ed9f2d02fa5e75325dda/polyagamma-1.3.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "876979124fba0f38c0f7a7fef68f3a57f591bf59c311526b6c136d2444435943",
                "md5": "d1b538fd8c665af8cc1b31f7485873ca",
                "sha256": "ec3aef31972ac9612d6c5dfbda19cc68e93fd96054bdabb0ca167e35f3074db9"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp311-cp311-musllinux_1_1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d1b538fd8c665af8cc1b31f7485873ca",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 597848,
            "upload_time": "2023-10-08T06:00:42",
            "upload_time_iso_8601": "2023-10-08T06:00:42.631742Z",
            "url": "https://files.pythonhosted.org/packages/87/69/79124fba0f38c0f7a7fef68f3a57f591bf59c311526b6c136d2444435943/polyagamma-1.3.6-cp311-cp311-musllinux_1_1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d61634add2405946cb6d234a650f41e8d4fb39aece34397b205b23470ec3d3c8",
                "md5": "cd2849dc4fe00dd08bfae35da17e930d",
                "sha256": "255b3155b1d0ffd93140a7371a7aee4ea70f57a4c3b1b9934360061860fc35b9"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "cd2849dc4fe00dd08bfae35da17e930d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 123384,
            "upload_time": "2023-10-08T06:00:44",
            "upload_time_iso_8601": "2023-10-08T06:00:44.435983Z",
            "url": "https://files.pythonhosted.org/packages/d6/16/34add2405946cb6d234a650f41e8d4fb39aece34397b205b23470ec3d3c8/polyagamma-1.3.6-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e1e3051db3bfe82d2a6fa95fedc9f0f9534d35ce02a90cebc15d41a995389a0",
                "md5": "8e37b07039acff4fbe4f2ee3fd9893e2",
                "sha256": "816db8b388e3727f9cb5d51adebff17998a1f38629f486c3c5c445e9190ba304"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp312-cp312-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8e37b07039acff4fbe4f2ee3fd9893e2",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 132968,
            "upload_time": "2023-10-08T06:00:46",
            "upload_time_iso_8601": "2023-10-08T06:00:46.149016Z",
            "url": "https://files.pythonhosted.org/packages/3e/1e/3051db3bfe82d2a6fa95fedc9f0f9534d35ce02a90cebc15d41a995389a0/polyagamma-1.3.6-cp312-cp312-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67bda929d8f4e3a280b593be9f700eeb46455547ffb9e79e0dcf0857853bbc72",
                "md5": "b0e89daddd72894dfa7f1e535cd708c4",
                "sha256": "741b9c230242776f0f082e98d025462df57dc6911c9ba29eaf1ff5c19ca012c6"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp312-cp312-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "b0e89daddd72894dfa7f1e535cd708c4",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 98763,
            "upload_time": "2023-10-08T06:00:47",
            "upload_time_iso_8601": "2023-10-08T06:00:47.191251Z",
            "url": "https://files.pythonhosted.org/packages/67/bd/a929d8f4e3a280b593be9f700eeb46455547ffb9e79e0dcf0857853bbc72/polyagamma-1.3.6-cp312-cp312-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1487526200cdccd474a88a4aef0bd989b533cf2048eb7986716ecde1c5fb7985",
                "md5": "9280433158b031cb2f1fe72484a2c7f2",
                "sha256": "c00be46911b641471c7d18458b3bc1a934c9d904980c8ba00b4f798a716c6fa4"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "9280433158b031cb2f1fe72484a2c7f2",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 502658,
            "upload_time": "2023-10-08T06:00:48",
            "upload_time_iso_8601": "2023-10-08T06:00:48.753996Z",
            "url": "https://files.pythonhosted.org/packages/14/87/526200cdccd474a88a4aef0bd989b533cf2048eb7986716ecde1c5fb7985/polyagamma-1.3.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "947be9311f39eb62ef51be9fd1eb4c6ef42bc6d28fc07237eaec8fc214b384b7",
                "md5": "d09f45ab715a5e70ece5ab562c86b471",
                "sha256": "1a9ed1d04a54caf11197176e5e0f70796cc3269df08be9cb1cfe7eba68685f31"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d09f45ab715a5e70ece5ab562c86b471",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 513869,
            "upload_time": "2023-10-08T06:00:50",
            "upload_time_iso_8601": "2023-10-08T06:00:50.038585Z",
            "url": "https://files.pythonhosted.org/packages/94/7b/e9311f39eb62ef51be9fd1eb4c6ef42bc6d28fc07237eaec8fc214b384b7/polyagamma-1.3.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cefeed4a34dc802014591486cc10bd8780c355770dbe28f07397d2543ed39e12",
                "md5": "23e7856752beff6167636b6cb3f8e3f5",
                "sha256": "01a9007880ef29a8ebd524253d84dc40ab07d1e27cbb1cbab176d17625aa0656"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp312-cp312-musllinux_1_1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "23e7856752beff6167636b6cb3f8e3f5",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 521151,
            "upload_time": "2023-10-08T06:00:51",
            "upload_time_iso_8601": "2023-10-08T06:00:51.648607Z",
            "url": "https://files.pythonhosted.org/packages/ce/fe/ed4a34dc802014591486cc10bd8780c355770dbe28f07397d2543ed39e12/polyagamma-1.3.6-cp312-cp312-musllinux_1_1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "14f3377c5edd5d1d3a234aff220c2d30f2e2976ef2cc3be3dbe357b98d64eeac",
                "md5": "801e83fb7ae10339c1926218172a7327",
                "sha256": "ab049cfe0c3b97b2ddb52efe4dbb1661fc7c87d1f604cd5ebb521d4651acf2dd"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "801e83fb7ae10339c1926218172a7327",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 124264,
            "upload_time": "2023-10-08T06:00:53",
            "upload_time_iso_8601": "2023-10-08T06:00:53.361363Z",
            "url": "https://files.pythonhosted.org/packages/14/f3/377c5edd5d1d3a234aff220c2d30f2e2976ef2cc3be3dbe357b98d64eeac/polyagamma-1.3.6-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2a53245953c2df5a9cad4874c29f8335957c8152283a5b5ed630fe062ae8688",
                "md5": "956e142823ec1c26c352ee02d3287c20",
                "sha256": "7ae309be75d861c0b3d870545bd38479f06887bb08cb23aeaa0165e0b2541708"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp39-cp39-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "956e142823ec1c26c352ee02d3287c20",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 135398,
            "upload_time": "2023-10-08T06:00:55",
            "upload_time_iso_8601": "2023-10-08T06:00:55.059027Z",
            "url": "https://files.pythonhosted.org/packages/c2/a5/3245953c2df5a9cad4874c29f8335957c8152283a5b5ed630fe062ae8688/polyagamma-1.3.6-cp39-cp39-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a2abadbd692fbc64981a9b1300d3cf476192df6ac7b2bc1e08fb2a814ab8af6",
                "md5": "484d7560c838c42a93e9b9630a951c1b",
                "sha256": "437caa1e24cd4b9db7e69f0323293d0f5b70d6f294dcc80731885090e188172f"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp39-cp39-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "484d7560c838c42a93e9b9630a951c1b",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 100634,
            "upload_time": "2023-10-08T06:00:56",
            "upload_time_iso_8601": "2023-10-08T06:00:56.759957Z",
            "url": "https://files.pythonhosted.org/packages/8a/2a/badbd692fbc64981a9b1300d3cf476192df6ac7b2bc1e08fb2a814ab8af6/polyagamma-1.3.6-cp39-cp39-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29804854df6a7d845cfc3fac90a4ab3c0435d2d22f5d8a973eca10296a6533d7",
                "md5": "e258ddc0f5e50376ea987ef39da3ec16",
                "sha256": "2f32b0f863c860adc1be6308cd20b0a0d07e1041f46623c9f16aef3da979f926"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "e258ddc0f5e50376ea987ef39da3ec16",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 502437,
            "upload_time": "2023-10-08T06:00:58",
            "upload_time_iso_8601": "2023-10-08T06:00:58.332519Z",
            "url": "https://files.pythonhosted.org/packages/29/80/4854df6a7d845cfc3fac90a4ab3c0435d2d22f5d8a973eca10296a6533d7/polyagamma-1.3.6-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67de317771b10b854ac70de64d65ce750721ed42d90e45e7a13505aaba83e25d",
                "md5": "036cd70526f7e1a77a7f17a5d25a0441",
                "sha256": "8d4de377d82eb38af39b810311c7d3fee3047b81ec5932380942ab64fd6ec129"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "036cd70526f7e1a77a7f17a5d25a0441",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 515034,
            "upload_time": "2023-10-08T06:00:59",
            "upload_time_iso_8601": "2023-10-08T06:00:59.721781Z",
            "url": "https://files.pythonhosted.org/packages/67/de/317771b10b854ac70de64d65ce750721ed42d90e45e7a13505aaba83e25d/polyagamma-1.3.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5877ba97ae0185f1f89720fe7d49b4beb72d303d0f16e2009173e9a724a4c9d8",
                "md5": "64c60e23ce136da476ecec0e3d07e234",
                "sha256": "e74fce6a9d035ceb1ad6e11ca59c37111b8b74f830a5640a8718e5b75e3f4d95"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp39-cp39-musllinux_1_1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "64c60e23ce136da476ecec0e3d07e234",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 555268,
            "upload_time": "2023-10-08T06:01:01",
            "upload_time_iso_8601": "2023-10-08T06:01:01.823725Z",
            "url": "https://files.pythonhosted.org/packages/58/77/ba97ae0185f1f89720fe7d49b4beb72d303d0f16e2009173e9a724a4c9d8/polyagamma-1.3.6-cp39-cp39-musllinux_1_1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a9b0c754fceaa22d01a460b7f67a11473a186860862982f446616ecee8822793",
                "md5": "b35e15c5c1d1ebf55fff998fbc55a598",
                "sha256": "5a220ea378cf9f999b5eba716a76b209cb4abdc9fa7cf8fafa07795fb46e5444"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "b35e15c5c1d1ebf55fff998fbc55a598",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 126371,
            "upload_time": "2023-10-08T06:01:03",
            "upload_time_iso_8601": "2023-10-08T06:01:03.140499Z",
            "url": "https://files.pythonhosted.org/packages/a9/b0/c754fceaa22d01a460b7f67a11473a186860862982f446616ecee8822793/polyagamma-1.3.6-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "26c965f48f0a1d05ea52bbb6f95d5032b3a2741aba83053a3eed0bc3567318de",
                "md5": "e45af0e7c0434d01b8a9a517e707948f",
                "sha256": "6d742351d9f51d09867adfe528244b7cf0c64c0f81726a8c394d820525c1f3ef"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-pp39-pypy39_pp73-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "e45af0e7c0434d01b8a9a517e707948f",
            "packagetype": "bdist_wheel",
            "python_version": "pp39",
            "requires_python": ">=3.9",
            "size": 118312,
            "upload_time": "2023-10-08T06:01:04",
            "upload_time_iso_8601": "2023-10-08T06:01:04.331512Z",
            "url": "https://files.pythonhosted.org/packages/26/c9/65f48f0a1d05ea52bbb6f95d5032b3a2741aba83053a3eed0bc3567318de/polyagamma-1.3.6-pp39-pypy39_pp73-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "231b7101a4fe154aca4b03adf681a7bcec93d50fba141069c5d975418ffd23a4",
                "md5": "33002b1f322df6bdd459c958b1523f82",
                "sha256": "9fdc724f1fe7fd920cda3ebc02d55910cea1e85cb7b6f264502fba7acd9176db"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "33002b1f322df6bdd459c958b1523f82",
            "packagetype": "bdist_wheel",
            "python_version": "pp39",
            "requires_python": ">=3.9",
            "size": 140292,
            "upload_time": "2023-10-08T06:01:06",
            "upload_time_iso_8601": "2023-10-08T06:01:06.013419Z",
            "url": "https://files.pythonhosted.org/packages/23/1b/7101a4fe154aca4b03adf681a7bcec93d50fba141069c5d975418ffd23a4/polyagamma-1.3.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b297f3c5c488c49b75f7f81543cf45a2a735f24180c21f88365106390f621a3",
                "md5": "4f9f5be66d2ff4c22138a655392e3429",
                "sha256": "9596f15188aa81392f84506c6faa0505aa3732ba4dc3243b872b377850a47b43"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6-pp39-pypy39_pp73-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "4f9f5be66d2ff4c22138a655392e3429",
            "packagetype": "bdist_wheel",
            "python_version": "pp39",
            "requires_python": ">=3.9",
            "size": 120610,
            "upload_time": "2023-10-08T06:01:07",
            "upload_time_iso_8601": "2023-10-08T06:01:07.350727Z",
            "url": "https://files.pythonhosted.org/packages/2b/29/7f3c5c488c49b75f7f81543cf45a2a735f24180c21f88365106390f621a3/polyagamma-1.3.6-pp39-pypy39_pp73-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1e8c55f90cb1c19f7a5ddecec62c3d0cd27e8114c0739938caa947d6a4ecb664",
                "md5": "c77dc5ded22a7547b26f9d6fc63eda79",
                "sha256": "0b823b4b386fc7ac5e1a1829b123eaefe881bce078240693c209a30b9da3d7b2"
            },
            "downloads": -1,
            "filename": "polyagamma-1.3.6.tar.gz",
            "has_sig": false,
            "md5_digest": "c77dc5ded22a7547b26f9d6fc63eda79",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 42301,
            "upload_time": "2023-10-08T06:01:08",
            "upload_time_iso_8601": "2023-10-08T06:01:08.451205Z",
            "url": "https://files.pythonhosted.org/packages/1e/8c/55f90cb1c19f7a5ddecec62c3d0cd27e8114c0739938caa947d6a4ecb664/polyagamma-1.3.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-08 06:01:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zoj613",
    "github_project": "polyagamma",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "polyagamma"
}
        
Elapsed time: 0.14308s