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.30.tar.gz
(2.6 MB
view details)
Built Distributions
File details
Details for the file BayesBoom-0.1.30.tar.gz
.
File metadata
- Download URL: BayesBoom-0.1.30.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b05d1eca2f6242e602a6249d612a8259bd3de7b734485942024533ab4042e0b5 |
|
MD5 | 682e4c687e6fc519f9aa80aa582e54ff |
|
BLAKE2b-256 | f6617ae3e7f86264b0bdb674a37614d8db89910f18518253d8f75e1008344c9b |
File details
Details for the file BayesBoom-0.1.30-cp312-cp312-macosx_14_0_arm64.whl
.
File metadata
- Download URL: BayesBoom-0.1.30-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 4.3 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d366d5dc3242ab73a44262b5da5f7ad8616723513f6777472c27fa98bb64b0 |
|
MD5 | aa3bd473528d30c2a95b0e8c24d5e891 |
|
BLAKE2b-256 | 6f85c4cd7437741d332ee476b5d69b27f2234680734478ab32afbd8b57b83301 |
File details
Details for the file BayesBoom-0.1.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: BayesBoom-0.1.30-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 120.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d5b2aea92e2bace1dbfe50667b539df026c0d89356dc17b6dd7803f48cebdf |
|
MD5 | 845adf8e01eaae503147a39cdba10021 |
|
BLAKE2b-256 | 2f366cd5f47932270aedb0114ad80d5c2afd6e8a888394fce75e3809dba327f4 |