-
Notifications
You must be signed in to change notification settings - Fork 197
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
#1063 Pareto_nbd distribution enhancements #1067
#1063 Pareto_nbd distribution enhancements #1067
Conversation
…new_customer_frequency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to do this again as not updated the branch!
Thanks @Ishaanjolly ! We need to fix one test that is failing tests/clv/models/test_pareto_nbd.py::TestParetoNBDModel::test_posterior_distributions[map] - assert (1, 1, 2357, 2) == (1, 1000, 2357, 2) Let me know if you need help this that :) |
I had set n_samples = 1 in the |
Have you checked the Pareto/NBD notebook to make sure no changes need to be made? |
The notebooks are running on the CI so everything looks good :) |
@@ -1052,6 +1056,8 @@ def distribution_new_customer_recency_frequency( | |||
Not required if `data` Dataframe contains a `T` column. | |||
random_seed : ~numpy.random.RandomState, optional | |||
Random state to use for sampling. | |||
n_samples : int, optional | |||
Number of samples to generate. Defaults to 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaults to 1_000 right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1000, yeah sorry missed it. will correct it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
…ith n_samples = 1000 default
Thanks @Ishaanjolly ! |
* feat: test.txt added for commit check * feat: replaced plot_curve with plot_samples within ./mmm/plot.py * feat: n_samples added to distributions_new_customers * feat: added n_samples to distributions_new_customer and distribution_new_customer_frequency * remove test.txt * redo commit before samples from sample in ./mmm/plot.py * feat(pareto_nbd.py): changed n_samples = 1000 from 1 * fix (pareto_nbd.py): corrected the doc string for dis_new_cust_freq with n_samples = 1000 default
Description
I added
n_samples: int = 1000
to_distribution_new_customers
and modified this line within:Additionally:
I added
n_samples: int = 1
todistribution_new_customer_recency_frequency
and modified this:Related Issue
Checklist
Modules affected
Type of change
📚 Documentation preview 📚: https://pymc-marketing--1067.org.readthedocs.build/en/1067/