-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I didn't like how summary_from_transaction was squashing orders from …
…the same period to a single order. That didn't really make sense. Mmm wait, I need to think more about this...
- Loading branch information
1 parent
446b6e9
commit 08695a4
Showing
2 changed files
with
77 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
08695a4
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.
This change creates a lot of problems when there are several orders in a short period of time. For example:
import pandas as pd
from lifetimes.utils import summary_data_from_transaction_data
yields
and to my knowledge, cases where frequency > recency will break the fitting procedure.
08695a4
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.
Lame, looks like my test coverage isn't good enough. Thank your for the bug report - Do you mind turning this into an issue so it's not missed?
08695a4
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.
Sure, will do later.