ColtAllen / btyd

Buy Till You Die and Customer Lifetime Value statistical models in Python.
https://btyd.readthedocs.io/
Apache License 2.0
114 stars 9 forks source link

Why monetary_val and monetary_holdout is missing? #68

Closed SSMK-wq closed 2 years ago

SSMK-wq commented 2 years ago

@ColtAllen - Why is that we don't see monetary_val for calibration and holdout when we use "calibration_and_holdout_data" utility function. You can see that when I use the above btyd or lifetimes function (both tried), it results in below table (monetary value is missing). Can help me understand what is wrong here? If it is not there by design, then how do we compare the monetary values for actual and holdout datasets (using gamma gamma distributions)?

For ex: Currently, am able to compare the frequency between actual holdout and predicted expected purchase as shown below

image

But how can we do the same for monetary value (using Gamma gamma model) when we don't have monetary column value in the calibration_and_holdout_data? currently the table looks like below. I should do it locally?

image

one side question - I see that the duration in holdout dataset is 365 days. So, just to ensure proper comparison between actual and predicted values, I should set the time horizon in the model predict function also as 365 days. Am I right? I know based on business requirement, we can set different time horizons but to compare them correctly, we need to set as 365 days. Am I right?

ColtAllen commented 2 years ago

I see that the duration in holdout dataset is 365 days. So, just to ensure proper comparison between actual and predicted values, I should set the time horizon in the model predict function also as 365 days. Am I right?

Yes

ColtAllen commented 2 years ago

Hey @SSMK-wq, I don't see a monetary value column being passed into calibration_and_holdout_data in your screenshots. It's an optional parameter and easy to overlook; have you tried that?

SSMK-wq commented 2 years ago

@ColtAllen - My sincere apologies. My bad. yes, it works