-
Notifications
You must be signed in to change notification settings - Fork 239
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
Allow covariates in plot_expected_purchases
#1430
base: main
Are you sure you want to change the base?
Allow covariates in plot_expected_purchases
#1430
Conversation
…taGeoModel. Add some tests
…thCovariates.test_extract_predictive_covariates
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1430 +/- ##
===========================================
- Coverage 92.58% 56.03% -36.56%
===========================================
Files 52 52
Lines 6043 6109 +66
===========================================
- Hits 5595 3423 -2172
- Misses 448 2686 +2238 ☔ View full report in Codecov by Sentry. |
I'll review this in detail later, but it looks like there may be merge conflicts with #1390 |
Description
Includes covariates when calculation the unconditional frequency expectation. Allows the estimation of future purchases for the "average customer" just after first order for models with covariates.
Additionally:
apparel_trans.csv
and accompanyingapparel_static_cov.csv
. These datasets are extracted from R's CLVTools package.bg_nbd_covariates.ipynb
shows an example of the new functionality using the new dataset.Related Issue
Checklist
pre-commit.ci autofix
to auto-fix.📚 Documentation preview 📚: https://pymc-marketing--1430.org.readthedocs.build/en/1430/