Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1057 - Expanded plotting options of plot_posterior_predictive #1058

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jsnyde0
Copy link

@jsnyde0 jsnyde0 commented Sep 20, 2024

Description

The `plot_posterior_predictive' function has gotten new plotting options. Depending on the parameters, it can also show:

  • HDI (Highest Density Intervals) at 94% and 50% levels (as before)
  • Mean prediction line (new)
  • Gradient representation of the full posterior distribution (new)

The new function argument related to this are:

  • add_hdi : bool, optional - If True, add highest density intervals to the plot. Default is True.
  • add_mean : bool, optional - If True, add the mean prediction to the plot. Default is True.
  • add_gradient : bool, optional - If True, add a gradient representation of the full posterior distribution. Default is False.

A new example notebook is added to demonstrate: mmm_plotting_options.ipynb

Related Issue

Checklist

Modules affected

  • MMM
  • CLV

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc-marketing--1058.org.readthedocs.build/en/1058/

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request MMM plots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expanding plotting options of plot_posterior_predictive
2 participants