.. _inference_example_samplers: ------------------------------------------------------ Trying out different samplers ------------------------------------------------------ This page shows basic configurations for some of the samplers that PyCBC Inference supports. Note that these samplers often have many additional options which you can learn apart from their respective library documentation pages. There very likely are more optimal settings than the example ones here for your problem as these are configured to run quickly. We'll use a very simple analytic model to test each sampler. The following is the configuration to set up a unimodal gaussian likelihood. We'll have each sampler try to fit this. .. literalinclude:: ../../../examples/inference/samplers/simp.ini :language: ini Each sampler needs nees a slightly different configuration. Below are basic configurations which can analyze this simple problem. =================================================== `Emcee `_ =================================================== .. literalinclude:: ../../../examples/inference/samplers/emcee_stub.ini :language: ini ====================================================================== `Parallel-tempered Emcee `_ ====================================================================== .. literalinclude:: ../../../examples/inference/samplers/emcee_pt_stub.ini :language: ini =================================================== `PTEmcee `_ =================================================== .. literalinclude:: ../../../examples/inference/samplers/ptemcee_stub.ini :language: ini =============================================== `Dynesty `_ =============================================== .. literalinclude:: ../../../examples/inference/samplers/dynesty_stub.ini :language: ini ============================================================ `Ultranest `_ ============================================================ .. literalinclude:: ../../../examples/inference/samplers/ultranest_stub.ini :language: ini =============================================== `Epsie `_ =============================================== .. literalinclude:: ../../../examples/inference/samplers/epsie_stub.ini :language: ini The following are also supported, but require either python3 support only (cpnest) or an external package (multinest). ================================================ `cpnest `_ ================================================ .. literalinclude:: ../../../examples/inference/samplers/cpnest_stub.ini :language: ini ============================================================= `Multinest `_ ============================================================= .. literalinclude:: ../../../examples/inference/samplers/multinest_stub.ini :language: ini ============================================================ `Snowline `_ ============================================================ .. literalinclude:: ../../../examples/inference/samplers/snowline_stub.ini :language: ini ============================================================ `nessai `_ ============================================================ .. literalinclude:: ../../../examples/inference/samplers/nessai_stub.ini :language: ini If we run these samplers, we create the following plot: .. image:: ../../_include/sample.png :scale: 30 :align: center