Skip to content

Add a Theano Polya-Gamma random variable type #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

brandonwillard
Copy link
Contributor

@brandonwillard brandonwillard commented Apr 27, 2020

This is a very minimal implementation, and the sampler doesn't appear to interface, scale, or install well.

At some point, it would be worthwhile to write a basic PG sampler that conforms to at least some SciPy standards (e.g. use Numpy/SciPy RNG objects, better use of ndarray objects from Cython/C++, low-level handling of broadcasting and flattening, etc.) and doesn't require an external package mostly comprised of unused features.

@brandonwillard brandonwillard added the enhancement New feature or request label Apr 27, 2020
@brandonwillard brandonwillard self-assigned this Apr 27, 2020
@brandonwillard brandonwillard force-pushed the add-polya-gamma-rv branch 2 times, most recently from 7cdbbe1 to 861d7a0 Compare April 27, 2020 03:44
@brandonwillard brandonwillard merged commit 13fee0e into pymc-devs:master Apr 27, 2020
@brandonwillard brandonwillard deleted the add-polya-gamma-rv branch April 27, 2020 04:45
@zoj613
Copy link

zoj613 commented Jan 8, 2021

Hi @brandonwillard , For what its worth, there is oon-going work on a PG sampler that is compatible with SciPy/NumPy and uses NumPy's generator interface for RNGs. Maybe the code there could be of help: https://github.com/zoj613/polya-gamma

@brandonwillard
Copy link
Contributor Author

That does sound much better. By the way, Theano-PyMC is where such a change would take place, since we've moved the RandomVariables there. Feel free to open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants