Skip to content

rfm_summary: frequency and monetary_value sum or avg #560

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

You must be logged in to vote

Hey @BeiYaaa,

I believe my response to #268 (comment) answers your first question. The short answer is time between transactions is a key component of this model, and we can't go more granular than the raw data. If the raw data were hourly timestamps and rfm_summary(time_unit='D', *args), it would be counted as multiple transactions.

Your second question is a good one, and something I worked on last week in fact for an upcoming PR - an rfm_train_test_split function, because the equivalent function in the legacy lifetimes library has a bug and doesn't aggregate properly.

All transactions occurring in the same time period will have their monetary values summed together for that time period.…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@BeiYaaa
Comment options

@ColtAllen
Comment options

@BeiYaaa
Comment options

@ColtAllen
Comment options

Answer selected by BeiYaaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
duplicate This issue or pull request already exists CLV
2 participants