Regression Recipes
Predict a continuous value per customer — total spend, item quantity, or visit count.
Common use cases
- Customer lifetime value (LTV) — total future spend
- Purchase count — number of future transactions
- Average order value — mean basket size
- Days to next purchase — time until next activity
- Credit card spend — forecast card expenditure over a period
Ready-to-run solutions
| Recipe | Industry | Description |
|---|---|---|
| Credit Card Spend | Finance | Forecast total card expenditure in a period |
| Purchase Value, Quantity, or Visits | Retail | Estimate spend, item count, or visit count |
See also: Practical guide
For the full training script, API reference, and default metrics, see the Regression implementation guide.
Select simple counter-baselines on validation
For regression, compare zero, the last observed value (or last complete equivalent window), and an entity's historical mean over comparable windows. For counts, include the historical weekly mean scaled to the forecast horizon. Use only history available at each cutoff. For ranking, compare catalogue popularity and, where applicable, a last-basket/repurchase ranking with the same candidate filters and k.
Choose the baseline and any window, threshold or tie rule on validation, freeze them, and compare model and baseline on the same untouched test cohort and denominator. Never choose the baseline on test. A smoke run beating repeated history can still lose to zero or a historical mean; successful execution alone is not predictive improvement.