Giter Club home page Giter Club logo

margarine's Introduction

margarine: Posterior Sampling and Marginal Bayesian Statistics

Introduction

margarine:Marginal Bayesian Statistics
Authors:Harry T.J. Bevins
Version:0.3.0
Homepage:https://github.com/htjb/margarine
Documentation:https://margarine.readthedocs.io/
Documentation Status

Installation

The software should be installed via the git repository using the following commands in the terminal

git clone https://github.com/htjb/margarine.git # or the equivalent using ssh keys
cd margarine
python setup.py install --user

or via a pip install with

pip install margarine

Note that the pip install is not always the most up to date version of the code.

Details/Examples

margarine is designed to make the calculation of marginal bayesian statistics feasible given a set of samples from an MCMC or nested sampling run.

An example of how to use the code can be found on the github in the jupyter notebook notebook/Tutorial.ipynb, alternatively in the compiled documentation or at here.

Documentation

The documentation is available at: https://margarine.readthedocs.io/

To compile it locally you can run

cd docs
sphinx-build source html-build

after cloning the repo and installing the relevant packages.

Licence and Citation

The software is available on the MIT licence.

If you use the code for academic purposes we request that you cite the following paper and the MaxEnt22 proceedings for which you can use the following bibtex

@ARTICLE{2022arXiv220512841B,
     author = {{Bevins}, Harry T.~J. and {Handley}, William J. and {Lemos}, Pablo and {Sims}, Peter H. and {de Lera Acedo}, Eloy and {Fialkov}, Anastasia and {Alsing}, Justin},
      title = "{Removing the fat from your posterior samples with margarine}",
    journal = {arXiv e-prints},
   keywords = {Astrophysics - Instrumentation and Methods for Astrophysics, Astrophysics - Cosmology and Nongalactic Astrophysics, Computer Science - Machine Learning},
       year = 2022,
      month = may,
        eid = {arXiv:2205.12841},
      pages = {arXiv:2205.12841},
archivePrefix = {arXiv},
     eprint = {2205.12841},
primaryClass = {astro-ph.IM},
     adsurl = {https://ui.adsabs.harvard.edu/abs/2022arXiv220512841B},
    adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

and

@ARTICLE{2022arXiv220711457B,
     author = {{Bevins}, Harry and {Handley}, Will and {Lemos}, Pablo and {Sims}, Peter and {de Lera Acedo}, Eloy and {Fialkov}, Anastasia},
      title = "{Marginal Bayesian Statistics Using Masked Autoregressive Flows and Kernel Density Estimators with Examples in Cosmology}",
    journal = {arXiv e-prints},
   keywords = {Astrophysics - Cosmology and Nongalactic Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
       year = 2022,
      month = jul,
        eid = {arXiv:2207.11457},
      pages = {arXiv:2207.11457},
archivePrefix = {arXiv},
     eprint = {2207.11457},
primaryClass = {astro-ph.CO},
     adsurl = {https://ui.adsabs.harvard.edu/abs/2022arXiv220711457B},
    adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Requirements

The code requires the following packages to run:

To compile the documentation locally you will need:

To run the test suit you will need:

Contributing

Contributions and suggestions for areas of development are welcome and can be made by opening a issue to report a bug or propose a new feature for discussion.

margarine's People

Contributors

htjb avatar williamjameshandley avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.