Code Monkey home page Code Monkey logo

pcat's Introduction

PCAT (Probabilistic Cataloger)

PCAT is a transdimensional, hierarchical, and Bayesian framework to sample from the posterior probability distribution of a metamodel (union of models with different dimensionality) given some Poisson-distributed data.

In addition to its previous use in the literature to sample from the point source catalog space consistent with the Fermi-LAT gamma-ray data, and the dark matter subhalo catalog space consistent with an Hubble Space Telescope (HST) optical image, it can also be used as a general-purpose Poisson mixture sampler.

During burn-in, it adaptively optimizes its within-model proposal scale to minimize the autocorrelation time. Furthermore, it achieves parallelism through bypassing Python's Global Interpreter Lock (GIL). It is implemented in python2.7 and its theoretical framework is introduced in Daylan, Portillo & Finkbeiner (2016). Refer to its webpage for an introduction.

In inference problems the desired object is the posterior probability distribution of fitted and derived parameters. Towards this purpose, tdpy.mcmc offers a parallized and easy-to-use Metropolis-Hastings MCMC sampler. Given a likelihood function and prior probability distribution in a parameter space of interest, it makes heavy-tailed multi-variate Gaussian proposals to construct a Markovian chain of states, whose stationary distribution is the target probability density. It then visualizes the marginal posterior. The sampler takes steps in a transformed parameter space where the prior is uniform. Therefore, the prior is accounted for by asymmetric proposals rather than explicitly evaluating the prior ratio between the proposed and current states. Parallelism is accomplished via multiprocessing by gathering chains indepedently and simulataneously-sampled chains.

Installation

You can install PCAT either by using pip

pip install pcat

or, by running its setup.py script.

python setup.py install

Note that PCAT depends on TDPY, a library of MCMC and numerical routines. The pip installation will install PCAT along with its dependencies.

Usage

PCAT user manual is on ReadTheDocs.

pcat's People

Contributors

tdaylan avatar

Stargazers

Bryce Wedig avatar Anowar Shajib avatar Drew Gibbs avatar Shichao Wu avatar Ayelet avatar

Watchers

James Cloos avatar Alperen Degirmenci avatar  avatar Kostas Georgiou avatar

pcat's Issues

generating mock data

I am trying to generate some mock data of fermi but i have no idea about the procedure of it. Also , I want to know if the tuto.py working or not because I face some error when run it. What kind of file do I need to prepare if I try to generating mock data? Would you please kindly show me the steps?

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.