Models for nessai
Project description
nessai-models
Models for use with the nested sampling package nessai
.
Included models
- n-dimensional unit Gaussian
- n-dimensional HalfGaussian
- n-dimensional Rosenbrock
- n-dimensional mixture of Gaussians
- Gaussian mixture using data to based on this example from
cpnest
- n-dimensional Egg Box based on the version in Feroz et al. 2008
- n-dimensional Pyramid-like model
Requirements
nessai_models
requires:
numpy
scipy
nessai>=0.6.0
Installation
We recommend following the installation instructions for
nessai
and then installingnessai_models
since it shares all of its dependencies withnessai
.
nessai_models
can be install from PyPI using
pip install nessai-models
Example usage
Below is an example of using nessai_models
so configure a 4-dimensional Gaussian and then sample it using nessai
.
from nessai import FlowSampler
from nessai_models import Gaussian
model = Gaussian(4)
fs = FlowSampler(model, output='example/')
fs.run()
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
nessai_models-0.1.0.tar.gz
(13.9 kB
view hashes)
Built Distribution
Close
Hashes for nessai_models-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8894d21ed6ac696d05f89a069d9559ed01b07ae1a2742bff4d00ce79fffd7903 |
|
MD5 | 217d4f9667bff01dcb05df1473cc7b1a |
|
BLAKE2b-256 | 89b05eebfc354cc4be206641a287782ffb831c854566d5338da89e31b47931c1 |