Tools for Bayesian modeling.
Project description
Boom stands for 'Bayesian object oriented modeling'.
It is also the sound your computer makes when it crashes.
The main part of the Boom library is formulated in terms of abstractions
for Model, Data, Params, and PosteriorSampler. A Model is primarily an
environment where parameters can be learned from data. The primary
learning method is Markov chain Monte Carlo, with custom samplers defined
for specific models.
The archetypal Boom program looks something like this:
import BayesBoom as Boom
some_data = 3 * np.random.randn(100) + 7
model = Boom.GaussianModel()
model.set_data(some_data)
precision_prior = Boom.GammaModel(0.5, 1.5)
mean_prior = Boom.GaussianModel(0, 10**2)
poseterior_sampler = Boom.GaussianSemiconjugateSampler(
model, mean_prior, precision_prior)
model.set_method(poseterior_sampler)
niter = 100
mean_draws = np.zeros(niter)
sd_draws = np.zeros(niter)
for i in range(100):
model.sample_posterior()
mean_draws[i] = model.mu()
sd_draws[i] = model.sigma()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
BayesBoom-0.1.18.tar.gz
(2.6 MB
view hashes)
Built Distributions
Close
Hashes for BayesBoom-0.1.18-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f782aa9b3452e1638b9c12be792539ed0eeafbfc3c67369c5307ba5251c37e |
|
MD5 | d3c22ef295080fb4cf36767374b46bdc |
|
BLAKE2b-256 | 0a5a8c37d68b53161a7fbd913cf07f88eda26bb9a8f67d950bd4efc9a155f922 |
Close
Hashes for BayesBoom-0.1.18-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfae1600a0389af00e01bd48e457bbef2d5b98a339c9a71ea8d18bbfc5e6da77 |
|
MD5 | f6b8d9890a00d97bdae47ca1c1f2b384 |
|
BLAKE2b-256 | 2dcff1ef797ce56fbd0cab242b0c474d68bfb703e70ddb5498175e96a9b795b4 |