Skip to content

Commit

Permalink
added quantile probability plot as a method for hssm
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Dec 12, 2023
1 parent b7d51e8 commit da6f333
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/hssm/hssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,20 @@ def plot_posterior_predictive(self, **kwargs) -> mpl.axes.Axes | sns.FacetGrid:
"""
return plotting.plot_posterior_predictive(self, **kwargs)

def plot_quantile_probability(self, **kwargs) -> mpl.axes.Axes | sns.FacetGrid:
"""Produce a quantile probability plot.
Equivalent to calling `hssm.plotting.plot_quantile_probability()` with the
model. Please see that function for
[full documentation][hssm.plotting.plot_quantile_probability].
Returns
-------
mpl.axes.Axes | sns.FacetGrid
The matplotlib axis or seaborn FacetGrid object containing the plot.
"""
return plotting.plot_quantile_probability(self, **kwargs)

def sample_prior_predictive(
self,
draws: int = 500,
Expand Down

0 comments on commit da6f333

Please sign in to comment.