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

added plotting options to plot_posterior_predictive #1072

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

jsnyde0
Copy link
Contributor

@jsnyde0 jsnyde0 commented Sep 30, 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.

New options are shown in mmm_example.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--1072.org.readthedocs.build/en/1072/

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Collaborator

@juanitorduz juanitorduz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jsnyde0

@juanitorduz juanitorduz merged commit ec466b9 into pymc-labs:main Oct 1, 2024
12 checks passed
@juanitorduz juanitorduz added docs Improvements or additions to documentation MMM labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation MMM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expanding plotting options of plot_posterior_predictive
2 participants