Code Monkey home page Code Monkey logo

post_process_mcmcs's Introduction

This repository contains several plotting and other convenience scripts for post-processing MCMC runs from all samplers (MH, CH, NS, PC) currently used in MontePython.

IMPORTANT: You must have translated your MCMC run into a default MontePython chain via

python /path/to/montepython_public/montepython/MontePython.py info /path/to/your/MontePython/chain/{PC, NS, CH}

The main script is make_all.py and it will post-process any translated Monte Python chain fully automatically and will also plot 1D parameter histograms, 2D contours and 2D parameter triangle plots.

Call it like this:

python make_all.py /path/to/your/MontePython/chain/ model_name={'arbitrary string'} type_sampler={'MH', 'MN', 'NS', 'PC', 'CH'} chain_is={'2c', '2cosmo', '1c', '1cosmo'}

Various other plotting-related options can be set directly in the script. All other scripts work in stand-alone mode and you can find their call signature in the header of each script!

post_process_mcmcs's People

Contributors

fkoehlin avatar uendert avatar

Watchers

 avatar  avatar

Forkers

uendert

post_process_mcmcs's Issues

Is it possible to compare two chains?

Hi Fabian,

First of all, thanks for compiling such nice tools and make them available.

I did some plots using make_all.py, and now I wanted to compare two sets of chains. Similarly to what MontePython does like: python /path/to/montepython_public/montepython/MontePython.py info /path/to/your/MontePython/chain_kids-1000-MH/ /path/to/your/MontePython/chain_kids-1000-NS/

Is there a way to do that?

Thanks for your valuable time,
Uendert

ps: I fixed some python3 related bugs here: https://github.com/Uendert/post_process_mcmcs

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.