pymc-labs / pymc-marketing

Bayesian marketing toolbox in PyMC. Media Mix (MMM), customer lifetime value (CLV), buy-till-you-die (BTYD) models and more.
https://www.pymc-marketing.io/
Apache License 2.0
705 stars 198 forks source link

#1057 - Expanded plotting options of plot_posterior_predictive #1058

Closed jsnyde0 closed 1 month ago

jsnyde0 commented 1 month ago

Description

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

The new function argument related to this are:

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

Related Issue

Checklist

Modules affected

Type of change


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

review-notebook-app[bot] commented 1 month ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

juanitorduz commented 1 month ago

Thanks @jsnyde0 . Can you please add additional tests in https://github.com/pymc-labs/pymc-marketing/blob/1a1703c5f34045548f43754179982cd98128beb0/tests/mmm/test_plotting.py#L137-L164

:)

jsnyde0 commented 1 month ago

@juanitorduz done!

Also, I messed up the commit history so I made a new branch & PR: https://github.com/pymc-labs/pymc-marketing/pull/1066

wd60622 commented 1 month ago

@juanitorduz done!

Also, I messed up the commit history so I made a new branch & PR: https://github.com/pymc-labs/pymc-marketing/pull/1066

Feel free to close the pr that is now stale