Skip to content

Instantly share code, notes, and snippets.

@xjing76
Created March 8, 2022 22:05
Show Gist options
  • Save xjing76/3c99a09930faf57ca2562cf9b2b1ae7a to your computer and use it in GitHub Desktop.
Save xjing76/3c99a09930faf57ca2562cf9b2b1ae7a to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brandonwillard
Copy link

brandonwillard commented Mar 8, 2022

The following will produce trace plots for each dimension in beta and superimpose the corresponding true values:

az.plot_trace(
    trace1,
    compact=False,
    lines=[
        ("beta", {"beta_dim_0": dim}, [true_val])
        for dim, true_val in enumerate(beta_true)
    ],
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment