Skip to content

Adding Additional Data Points for CLV #638

Answered by ColtAllen
acuson asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @acuson,

ParetoNBDModel currently supports time invariant covariates, and other models will support this in the future.

You would parametrize the model as shown:

ParetoNBDModel(data, model_config = {
    "purchase_covariate_cols": ['covariate_col_name1', 'covariate_col_name2', ...],
    "dropout_covariate_cols": ['covariate_col_name1', 'covariate_col_name2', ...]
    }
)

I'm working on a notebook with a covariate example in fact, and will be posting opening that PR within the next few days.

Many of the covariate examples you mentioned are categorical. One-hot encoding would make for more interpretable results, but watch out for the dummy variable trap:

Encoding Categorical Variables: …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ColtAllen
Comment options

Answer selected by wd60622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants