Skip to main content

Fit and compare complex models quickly. Laplace Approximation, Variational Bayes, Importance Sampling.

Project description

snowline

Fit and compare models very quickly. MCMC-free.

https://img.shields.io/pypi/v/snowline.svg https://github.com/JohannesBuchner/snowline/actions/workflows/tests.yml/badge.svg Documentation Status

About

Posterior distributions and corner plots without MCMC? No dealing with convergence criteria?

Yes!

Tailored for low-dimensional (d<10) problems with a single mode, this package automatically finds the best fit and uses the local covariance matrix as a Laplace Approximation. Then Importance Sampling and Variational Bayes come in to improve from a single-gaussian approximation to more complex shapes. This allows sampling efficiently in some problems, and provides a estimate for the marginal likelihood.

This package is built on top the excellent (i)minuit and pypmc packages.

You can help by testing snowline and reporting issues. Code contributions are welcome. See the Contributing page.

Features

  • Pythonic. pip installable.

  • Easy to program for: Sanity checks with meaningful errors

  • Fast

  • MPI support

Usage

Read the full documentation at:

https://johannesbuchner.github.io/snowline/

Licence

GPLv3 (see LICENCE file). If you require another license, please contact me.

Icon made by Vecteezy.

Other projects

See also:

Release Notes

0.4.0 (2020-03-07)

  • Improve robustness to poor Laplace approximations

0.3.0 (2020-05-07)

  • Numerical robustness

0.2.0 (2020-04-21)

  • Robustness improvements

  • Packaging and testing improvements

0.1.0 (2020-03-07)

  • First version

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

snowline-0.6.3.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file snowline-0.6.3.tar.gz.

File metadata

  • Download URL: snowline-0.6.3.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for snowline-0.6.3.tar.gz
Algorithm Hash digest
SHA256 dd1eeb23300b68a9c9171851e4daef98b676d02f90f5d304c06d1ccc53f5471a
MD5 4e7c73ef3b11af2b8408d65a85689661
BLAKE2b-256 1e7d545a1bad0362af5199517bdf00f6144edea6086beed8a59b351c44233c3f

See more details on using hashes here.

Supported by

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