Skip to main content

An interactive visualizer to help explore high-dimensional likelihoods and their observables.

Project description

BSAVI

BSAVI (Bayesian Sample Visualizer) is a tool to aid likelihood analysis of model parameters where samples from a distribution in the parameter space are used as inputs to calculate a given observable. For example, selecting a range of samples will allow you to easily see how the observables change as you traverse the sample distribution. At the core of BSAVI is the Observable object, which contains the data for a given observable and instructions for plotting it. It is modular, so you can write your own function that takes the parameter values as inputs, and BSAVI will use it to compute observables on the fly. It also accepts tabular data, so if you have pre-computed observables, simply import them alongside the dataset containing the sample distribution to start visualizing!

Installation

Dependencies

  • Python versions $\geq$ 3.8 and $<$ 3.11 are supported.
  • Holoviews $\geq$ 1.15.4 (this package and its dependencies will be installed automatically)
  • Bokeh 2.4.3

BSAVI can be installed with pip:

python -m pip install bsavi

Or, if you want to test the latest changes, you can clone the repository with

git clone https://github.com/wen-jams/bsavi
cd bsavi
python setup.py install

Getting Started

Test Installation

To verify that bsavi and all the dependencies have been installed correctly, try running:

import bsavi as bsv

If no errors appear, all the dependencies were installed correctly and we're ready to start visualizing!

Example

Download and run the live_data_example notebook in the tutorials folder to see an example of how bsavi can be used.

Here's BSAVI being used in an astrophysics context! The parameters come from a cosmological model of dark matter, and the observables are the matter and CMB power spectra.

example output

Contributing

Make feature requests and bug reports using the issue tracker: https://github.com/wen-jams/bsavi/issues

License

MIT License

Contact

jimmywen74@gmail.com

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

bsavi-0.4.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

bsavi-0.4.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file bsavi-0.4.0.tar.gz.

File metadata

  • Download URL: bsavi-0.4.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for bsavi-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b7313517fd068e45e577583fcb4296a4492be96b53d47a42e0b3810f21d57306
MD5 081de5087b995caa2ff045d4724bff6a
BLAKE2b-256 6e2f701d4c986b95000fc7e08bc2bbbefd0cecf10c5fa5fac0487df321f0e35d

See more details on using hashes here.

File details

Details for the file bsavi-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: bsavi-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for bsavi-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 197cd5cf197960cc92f9c7da44863d18781b22117d388e2aa9b6d7ae9108cbfe
MD5 159de5bd942f80e132a1f117011edf89
BLAKE2b-256 e9777818404c2b3d7d7e54c5d9547c0815082fd1dab63808c37c4c5717d623d3

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