Placeholder: Task taxonomy diagram showing temporal vs static tasks
Temporal Tasks (Forecast)
All temporal tasks predict future outcomes over a defined time horizon using historical data in relational tables. Every temporal prediction is defined by:- Target: What is being predicted (an aggregation expression)
- Entity: Who the prediction is for (a table primary key)
- Horizon: When the prediction applies (a future time window)
<start> and <end> define the future time window relative to “now”, and <unit> is the time granularity (e.g., days, hours, minutes).
Forecast: Regression
Predict a continuous numeric value for an entity over a future time horizon. Use case: Demand forecasting, revenue prediction, quantity estimation. Supported aggregations:SUM, AVG, COUNT, MAX, MIN
Forecast: Binary Classification
Predict whether an entity will or will not experience an event within a future time window. This is defined by applying a boolean condition to an aggregation expression. Use case: Customer churn prediction, event occurrence prediction. Supported aggregations:SUM, AVG, COUNT, MAX, MIN (with a boolean condition such as = 0, > 100)
= 0, > 100, etc.) on the aggregation makes this a binary classification task.
Output: Boolean (True/False) and probability per entity.
Metrics: AUC-ROC, Log Loss, Precision, Recall, F1-Score.
Forecast: Multi-Class Classification
Predict which class or state an entity will belong to at a future point in time. UseFIRST() to predict the first value that will occur in the window, or LAST() to predict the final value.
Use case: Tier migration, lifecycle stage prediction, feature engagement.
Supported aggregations: FIRST, LAST
Recommendations
Predict a ranked list of items an entity is most likely to interact with over a future time window. UseLIST_DISTINCT() with RANK TOP N to get the top N recommended items.
Use case: Product recommendations, content ranking, next best action.
Supported aggregations: LIST_DISTINCT with RANK TOP N
Recall@K, Precision@K, NDCG@K.
Multi-Horizon Regression (Forecasting)
Predict a numeric value for an entity across multiple future time steps. This produces a time series of predictions. Use case: Multi-step demand forecasting, time series prediction. Supported aggregations:SUM, AVG, COUNT, MAX, MIN
Placeholder: Multi-horizon forecasting diagram showing multiple future prediction steps
FORECAST N TIMEFRAMES clause tells KumoRFM to produce N predictions, each separated by the time window specified in the aggregation (7 days in this example). So FORECAST 60 TIMEFRAMES with a 7-day window predicts out 60 × 7 = 420 days total.
Output: Time-indexed numeric values (one per horizon).
Metrics: MAE@h, RMSE@h, MAPE@h, Mean MAE, Mean RMSE.
Static Tasks
Static tasks infer latent or unknown entity attributes without modeling temporal evolution. There is no time horizon — the prediction is about the current state of the entity based on its attributes and relational context. Every static prediction is defined by: Target × Entity (no horizon). The general PQL pattern for static tasks is:Static Regression
Infer a continuous numeric attribute of an entity. Use case: Age estimation, price imputation, value scoring. Supported target type: Numeric columnsStatic Binary Classification
Infer whether an entity belongs to one of two classes based on its attributes. Use case: Fraud detection, quality classification. Supported target type: Boolean columnsStatic Multi-Class Classification
Infer which single class an entity belongs to from a set of possible classes. Use case: Customer segmentation, category prediction. Supported target type: Categorical columnsSummary
| Task Type | PQL Pattern | Output | Category |
|---|---|---|---|
| Temporal Regression | PREDICT SUM(t.col, 0, N, days) FOR ... | Numeric | Temporal |
| Temporal Binary Classification | PREDICT COUNT(t.*, 0, N, days) = 0 FOR ... | Boolean + Probability | Temporal |
| Temporal Multi-Class Classification | PREDICT FIRST(t.col, 0, N, days) FOR ... | Class + Probabilities | Temporal |
| Recommendations | PREDICT LIST_DISTINCT(t.col, 0, N, days) RANK TOP K FOR ... | Ranked item list | Temporal |
| Multi-Horizon Forecasting | PREDICT SUM(t.col, 0, N, days) FORECAST K TIMEFRAMES FOR ... | Time-indexed numerics | Temporal |
| Static Regression | PREDICT t.numeric_col FOR ... | Numeric | Static |
| Static Binary Classification | PREDICT t.bool_col FOR ... | Boolean + Probability | Static |
| Static Multi-Class | PREDICT t.categorical_col FOR ... | Class + Probabilities | Static |