Fix CLV metric reliability for customer segmentation - #88
Draft
ijac13 wants to merge 73 commits into
Draft
Conversation
Signed-off-by: Even Wei <shinycockorach@gmail.com>
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
…hop-data Generate more raw jaffle shop data
Signed-off-by: Even Wei <shinycockorach@gmail.com>
…-and-segments Add tests to customer_order_pattern and customer_segments
Signed-off-by: Even Wei <shinycockorach@gmail.com>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
…ction-template-for-jaffle-shop-demo [Feature] drc-307 prepare GitHub action template for jaffle shop demo
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
[Chore] Update recce ci to use official recce
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
…preset-checks-for-demo-project [Infra] DRC-359 Add preset checks for Recce CI
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
…mary-in-ci-process [Feature] DRC-389 Setup recce ci with summary command
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
…e-the-document-of-new-command-recce-summary [Feature] Update Recce CI workflow script
Signed-off-by: popcorny <celu@infuseai.io>
…kageyml-to-jaffle_shop_duckdb Add packages.yml
Signed-off-by: popcorny <celu@infuseai.io>
Fix CLV column type to bigint
Signed-off-by: popcorny <celu@infuseai.io>
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
…le-shop-to-use-the-cloud-mode [Chore] Update the jaffle shop to use the cloud mode
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
…ckdb-file [Chore] Move preparation task into a script
Signed-off-by: Kent Huang <kent@infuseai.io>
…oud-setup-flow-to-tell-users-to-setup-their Feature/drc 521 update recce cloud setup flow to tell users to setup their
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
[Chore] Update Recce preset checks
Signed-off-by: Kent Huang <kent@infuseai.io>
…ecce [Infra] Update devcontainer.json for recce
Signed-off-by: even-wei <evenwei@infuseai.io>
Signed-off-by: even-wei <evenwei@infuseai.io>
…e-ci-in-pr1 Update CI config
Update requirements
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
Signed-off-by: Wei-Chun, Chang <wcchang@infuseai.io>
…cce-instance-from-cloud-20241023 Install dependency based on project config
- Always check is the base branch is up-to-date Signed-off-by: Kent Huang <kent@infuseai.io>
…the-base-is-outdated [Infra] Update GitHub Action for PR
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: popcorny <celu@infuseai.io>
…n-the-base-prep-job-every-week Make the base update at lease per week basis
- Add clv_net_returns excluding return amounts from lifetime value - Add days_since_last_order and recency segments (Active/Recent/Lapsing/Dormant) - Add marketing segments combining value and recency (VIP Active, VIP At-Risk, etc.) - Replace static value thresholds with dynamic percentile-based segmentation - Add documentation and tests for new columns in schema.yml Impact: 57 customers reclassified, $312K returns excluded from CLV calculations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
Were you meaning to create the PR in this repo? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem: "High-value" customers not converting - CLV metric unreliable for Marketing targeting.
Root causes fixed:
Changes
clv_net_returnsexcluding return amounts from lifetime value calculationdays_since_last_orderandrecency_segment(Active/Recent/Lapsing/Dormant)Impact
Reviewer Checklist (for Marketing)
dbt buildand querycustomer_segmentsto validate segment distribution🤖 Generated with Claude Code