PREDICT
command.
For example, to predict total purchases per user over the next 30 days, the target is “sum of purchases over the next 30 days.”
SUM(TRANSACTIONS.PRICE, 0, 30)
→ Sums purchase values over the next 30 days.FOR EACH CUSTOMERS.CUSTOMER_ID
→ Predicts for each customer.SUM()
aggregation operator allows you to predict the total number of sales each customer will make in the next 30 days.
2020-01-01 00:00:00
, Kumo will aggregate all rows with timestamps t where 2020-01-11 00:00:00 < t <= 2020-01-31 00:00:00
.
When using aggregation with targets, both start and end values should be non-negative integers, and end values should be greater than start values.
SUM()
– Total value over time.COUNT()
– Number of occurrences over time.2020-01-01
:
10, 30
will predict transactions values from 2020-01-11 to 2020-01-31
.days
(default)months
hours
WHERE
)AND
/OR
)