-
Notifications
You must be signed in to change notification settings - Fork 244
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.74% 92.65% -0.10%
==========================================
Files 52 52
Lines 6120 6140 +20
==========================================
+ Hits 5676 5689 +13
- Misses 444 451 +7 ☔ 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 |
@ColtAllen Feel free to have a look at this PR whenever you have some spare time. It is ready for review from my side. |
Is there documentation available for these datasets? I wasn't able to find anything in the R library.
Is it possible to consolidate this into the existing BG/NBD notebook? |
Link to apparelTrans and apparelStaticCov
Do you propose to add this new dataset, or use the synthetic covariates that we are using in the ParetoNBD notebook? |
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/