pypolyagamma icon indicating copy to clipboard operation
pypolyagamma copied to clipboard

Fast C code for sampling Polya-gamma random variates. Builds on Jesse Windle's BayesLogit library.

Results 4 pypolyagamma issues
Sort by recently updated
recently updated
newest added

I get the following problem when trying to install: gamma.c deps/gsl/cdf/gamma.c(24): fatal error C1083: Cannot open include file: 'config.h': No such file or directory Any idea on how to solve...

Installing pypolyagamma in a fresh virtual environment on MacOS Catalina (10.15.7), I get the following errors from Apple's C++ compiler: ``` clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall...

For example: ``` from pypolyagamma import PyPolyaGamma pg = PyPolyaGamma() b,c = -2, -1 values=[pg.pgdraw(b, c) for i in range(10000)] assert all([x==0 for x in values]) ``` The sampler returns...

As @tansey pointed out, we could combine these interfaces and make them more familiar to numpy users by making `pgs` (i.e. the vector to be populated with samples upon output)...

enhancement