LocScalePTM.plot_trafo()

LocScalePTM.plot_trafo()#

LocScalePTM.plot_trafo(samples, grid=None, ci_quantiles=(0.05, 0.95), hdi_prob=None, show_n_samples=50, seed=1)[source]#

Plot the posterior mean and credible bands of the transformation h(r).

Parameters:
  • samples (dict[str, Any]) – Posterior samples dict used to build the distribution.

  • grid (Any | None) – Points at which to evaluate h(r); if None, uses a grid over responses. (default: None)

  • ci_quantiles (tuple[float, float] | None) – Credible interval quantiles to display as ribbon. (default: (0.05, 0.95))

  • hdi_prob (float | None) – Optional highest-density-interval probability to annotate. (default: None)

  • show_n_samples (int | None) – Number of sampled trajectories to overlay. (default: 50)

  • seed (int | Any) – RNG seed for subsampling trajectories. (default: 1)

Return type:

ggplot

Returns:

ggplot – A ggplot object of the transformation with credible bands.