Skip to main content

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 BoomBayes 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


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.0.2.tar.gz (808.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

BayesBoom-0.0.2-cp38-cp38-macosx_10_15_x86_64.whl (3.9 MB view details)

Uploaded CPython 3.8macOS 10.15+ x86-64

File details

Details for the file BayesBoom-0.0.2.tar.gz.

File metadata

  • Download URL: BayesBoom-0.0.2.tar.gz
  • Upload date:
  • Size: 808.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for BayesBoom-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0b89ff9f73eb6bf9e8cc784f5475fc12641b6df27afffdcda79acf360d803b4c
MD5 204eb7416eeb287f32e210e12e50b5ca
BLAKE2b-256 0c0adbba6b45502d02b35cfcbb2b93f8709a4ea3c1749083b5b9322ed8e8289f

See more details on using hashes here.

File details

Details for the file BayesBoom-0.0.2-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: BayesBoom-0.0.2-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for BayesBoom-0.0.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6977a772ccac2ebc6cb1613effd65c63a9ac25b8f3b50be8da4341e9c6c4dd0d
MD5 91fa24994203242c90c9c743252f28b0
BLAKE2b-256 d28ec9e1e56f34215aaa5567e8ea6ecd0bb25ac8123a3811b728a9ea5b73c045

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page