René's URL Explorer Experiment


Title: Sample a posterior with BlackJAX NUTS - FlatPPL for Python

direct link

Domain: flatppl.org

IPv4 address: 185.199.109.153

color-schemelight dark

Links:

Skip to contenthttps://flatppl.org/flatppl-python/examples/nuts.html#furo-main-content
FlatPPL for Pythonhttps://flatppl.org/flatppl-python/index.html
FlatPPL for Python https://flatppl.org/flatppl-python/index.html
Installationhttps://flatppl.org/flatppl-python/installation.html
Compile your first functionhttps://flatppl.org/flatppl-python/quickstart.html
Worked tutorialshttps://flatppl.org/flatppl-python/examples/index.html
Sample a posterior with BlackJAX NUTShttps://flatppl.org/flatppl-python/examples/nuts.html
Sample and approximate a posterior with BlackJAXhttps://flatppl.org/flatppl-python/examples/blackjax_nuts_vi.html
Sample a posterior with NumPyro’s NUTShttps://flatppl.org/flatppl-python/examples/numpyro_nuts.html
Fit maximum a posteriori and maximum likelihood points with Optaxhttps://flatppl.org/flatppl-python/examples/optax_fit.html
Diagnose draws with ArviZhttps://flatppl.org/flatppl-python/examples/arviz_diagnostics.html
Sample a posterior with nutpiehttps://flatppl.org/flatppl-python/examples/nutpie_nuts.html
Fit with optimistix BFGS and Levenberg-Marquardthttps://flatppl.org/flatppl-python/examples/optimistix_fit.html
Fit with iminuit and read Hesse and Minos errorshttps://flatppl.org/flatppl-python/examples/iminuit_errors.html
Fit a mixed model with automatic coordinate transformshttps://flatppl.org/flatppl-python/examples/formula.html
From a model file and a dataframe to checked posterior drawshttps://flatppl.org/flatppl-python/examples/regression_workflow.html
A published Belle II likelihood: pyhf to FlatPPL to JAXhttps://flatppl.org/flatppl-python/examples/belle2.html
Fit a three-pion decay with Monte Carlo normalizationhttps://flatppl.org/flatppl-python/examples/amplitude_fit.html
Fit a Gaussian regression with runtime datahttps://flatppl.org/flatppl-python/examples/regression.html
Save a regression, reload it, and fit MAPhttps://flatppl.org/flatppl-python/examples/zip_map.html
Read histograms from ROOT files with uproot and histhttps://flatppl.org/flatppl-python/examples/uproot_hist.html
A discovery fit from ROOT histograms with cabinetryhttps://flatppl.org/flatppl-python/examples/cabinetry_discovery.html
Export a compiled density with jax.exporthttps://flatppl.org/flatppl-python/examples/jax_export.html
Evaluate batched toys on CPU and GPUhttps://flatppl.org/flatppl-python/examples/gpu_toys.html
Query any binding of a modelhttps://flatppl.org/flatppl-python/examples/query.html
Inspect a model’s graphhttps://flatppl.org/flatppl-python/examples/inspection.html
Check a model from the example corpushttps://flatppl.org/flatppl-python/examples/corpus.html
Import a pyhf modelhttps://flatppl.org/flatppl-python/pyhf.html
Coordinate transforms for inferencehttps://flatppl.org/flatppl-python/transforms.html
Incremental query executionhttps://flatppl.org/flatppl-python/incremental.html
Log densities for inference packageshttps://flatppl.org/flatppl-python/inference.html
Modules and contextshttps://flatppl.org/flatppl-python/modules.html
Python values and signatureshttps://flatppl.org/flatppl-python/values.html
Regression formulashttps://flatppl.org/flatppl-python/formula.html
JAX and differentiationhttps://flatppl.org/flatppl-python/jax.html
Numerical integrationhttps://flatppl.org/flatppl-python/integration.html
API referencehttps://flatppl.org/flatppl-python/api.html
Example corpus qualificationhttps://flatppl.org/flatppl-python/corpus.html
Development and documentationhttps://flatppl.org/flatppl-python/development.html
Changeloghttps://flatppl.org/flatppl-python/changelog.html
Back to top https://flatppl.org/flatppl-python/examples/nuts.html
Go to the endhttps://flatppl.org/flatppl-python/examples/nuts.html#sphx-glr-download-examples-nuts-py
https://flatppl.org/flatppl-python/examples/nuts.html#sample-a-posterior-with-blackjax-nuts
Installationhttps://flatppl.org/flatppl-python/installation.html
Fit a mixed model with automatic coordinate transformshttps://flatppl.org/flatppl-python/examples/formula.html
Anyhttps://docs.python.org/3/library/typing.html#typing.Any
flatpplhttps://flatppl.org/flatppl-python/api.html#flatppl.flatppl
Contexthttps://flatppl.org/flatppl-python/api.html#flatppl.Context
flatpplhttps://flatppl.org/flatppl-python/api.html#flatppl.flatppl
https://flatppl.org/flatppl-python/examples/nuts.html#write-the-model-and-its-query
Contexthttps://flatppl.org/flatppl-python/api.html#flatppl.Context
flatpplhttps://flatppl.org/flatppl-python/api.html#flatppl.flatppl
flatpplhttps://flatppl.org/flatppl-python/api.html#flatppl.flatppl
https://flatppl.org/flatppl-python/examples/nuts.html#adapt-and-sample
jax.Arrayhttps://docs.jax.dev/en/latest/_autosummary/jax.Array.html#jax.Array
jax.Arrayhttps://docs.jax.dev/en/latest/_autosummary/jax.Array.html#jax.Array
jax.random.splithttps://docs.jax.dev/en/latest/_autosummary/jax.random.split.html#jax.random.split
jax.random.keyhttps://docs.jax.dev/en/latest/_autosummary/jax.random.key.html#jax.random.key
jnp.float32https://docs.jax.dev/en/latest/_autosummary/jax.numpy.float32.html#jax.numpy.float32
jax.Arrayhttps://docs.jax.dev/en/latest/_autosummary/jax.Array.html#jax.Array
Anyhttps://docs.python.org/3/library/typing.html#typing.Any
jax.Arrayhttps://docs.jax.dev/en/latest/_autosummary/jax.Array.html#jax.Array
jax.Arrayhttps://docs.jax.dev/en/latest/_autosummary/jax.Array.html#jax.Array
Anyhttps://docs.python.org/3/library/typing.html#typing.Any
jax.Arrayhttps://docs.jax.dev/en/latest/_autosummary/jax.Array.html#jax.Array
Anyhttps://docs.python.org/3/library/typing.html#typing.Any
Anyhttps://docs.python.org/3/library/typing.html#typing.Any
jax.lax.scanhttps://docs.jax.dev/en/latest/_autosummary/jax.lax.scan.html#jax.lax.scan
jax.random.splithttps://docs.jax.dev/en/latest/_autosummary/jax.random.split.html#jax.random.split
https://flatppl.org/flatppl-python/examples/nuts.html#compare-with-the-known-posterior
__name__https://docs.python.org/3/builtins/stdtypes.html#str
jnp.meanhttps://docs.jax.dev/en/latest/_autosummary/jax.numpy.mean.html#jax.numpy.mean
jnp.varhttps://docs.jax.dev/en/latest/_autosummary/jax.numpy.var.html#jax.numpy.var
jnp.sumhttps://docs.jax.dev/en/latest/_autosummary/jax.numpy.sum.html#jax.numpy.sum
Fit a Gaussian regression with runtime datahttps://flatppl.org/flatppl-python/examples/regression.html
Fit a mixed model with automatic coordinate transformshttps://flatppl.org/flatppl-python/examples/formula.html
Download Jupyter notebook: nuts.ipynbhttps://flatppl.org/flatppl-python/_downloads/1c0e2d4a6c25c7480066a22fae890f99/nuts.ipynb
Download Python source code: nuts.pyhttps://flatppl.org/flatppl-python/_downloads/5525bf3b14e08d8f796663a3e8465727/nuts.py
Download zipped: nuts.ziphttps://flatppl.org/flatppl-python/_downloads/9a09157b2794f78d73ae1b614cd74877/nuts.zip
Gallery generated by Sphinx-Galleryhttps://sphinx-gallery.github.io
Next Sample and approximate a posterior with BlackJAX https://flatppl.org/flatppl-python/examples/blackjax_nuts_vi.html
Previous Worked tutorials https://flatppl.org/flatppl-python/examples/index.html
Sphinxhttps://www.sphinx-doc.org/
@pradyunsghttps://pradyunsg.me
Furohttps://github.com/pradyunsg/furo
Sample a posterior with BlackJAX NUTShttps://flatppl.org/flatppl-python/examples/nuts.html
Write the model and its queryhttps://flatppl.org/flatppl-python/examples/nuts.html#write-the-model-and-its-query
Adapt and samplehttps://flatppl.org/flatppl-python/examples/nuts.html#adapt-and-sample
Compare with the known posteriorhttps://flatppl.org/flatppl-python/examples/nuts.html#compare-with-the-known-posterior

Response headers:
ServerGitHub.com
Content-Typetext/html; charset=utf-8
Via1.1 varnish
Cache-Controlmax-age=600
Last-ModifiedFri, 20 Nov 2026 16:47:24 GMT

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.