> This page is for Kumo Engine.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/sdgm/llms.txt.

# Outputs

> **Prerelease documentation**
>
> This Kumo Studio information is prerelease and is not yet supported. Stay tuned for the Docker and Kubernetes releases.

Each batch prediction runs your selected predictive query and produces a table containing entity primary key IDs and the prediction output.

The columns in the output table depend on the task type and whether the prediction is temporal.
For temporal task types (temporal regression, temporal binary or multiclass classification, ranking, and temporal link prediction), the output also includes an anchor time column.
Anchor time represents the start of the prediction horizon and is configured in your batch prediction job.
If no anchor time is specified, Kumo defaults to the latest timestamp in the target formula's fact table.

Before generating predictions, Kumo automatically refreshes all data in your graph to ensure the output uses the latest available data, unless the data was recently refreshed.

You can check what the output looks like under the **Output table schema** tab.

![Output table schema tab showing prediction output preview](/sdgm/_fern-files/_img/7fbc69055b16b9c0c77f98977022a405f46ff910110862c334077492d1f431aa.webp)

### Example Prediction Output: Static (Non-Temporal) Binary Classification

Consider the following prediction output for whether a customer will like a particular item on your website:

| ENTITY | SCORE    |
| ------ | -------- |
| 0      | 0.700517 |
| 1      | 0.601757 |
| 2      | 0.446016 |

The `ENTITY` column contains the primary key IDs from the table that stores whether a customer liked a particular item (along with the `item_id` and `customer_id`).
The `SCORE` column is the predicted probability that the query evaluates to `true`.

See [Predictive Query](/sdgm/kumo-engine/kumo-studio-guide-coming-soon/preliminary-documentation/train-model/predictive-query/predictive-query).

### Example Prediction Output: Temporal Binary Classification

If October 17, 2022 is the last date in your data source, and you are predicting whether a customer churns tomorrow (October 18, 2022) for each of your 10,000 customers, the prediction output table looks like the following:

| ENTITY | TIMESTAMP  | TARGET_PRED | False_PROB | True_PROB |
| ------ | ---------- | ----------- | ---------- | --------- |
| 0      | 2022-10-18 | False       | 0.700517   | 0.299483  |
| 1      | 2022-10-18 | False       | 0.601757   | 0.398243  |
| 2      | 2022-10-18 | True        | 0.446016   | 0.553984  |

The `False_PROB` and `True_PROB` columns show the predicted probability that the customer does not churn and churns, respectively.
The classification threshold you configure in the batch prediction job determines the cutoff for a positive prediction.
Based on this threshold, Kumo sets `TARGET_PRED` to `True` (churn) or `False` (no churn).

See [Probability of Liking an Item](/sdgm/kumo-engine/get-started-with-kumo-engine/workflows-and-solutions/predictive-query-examples#probability-of-liking-an-item-non-temporal-classification).

### Example Prediction Output: Static (Non-Temporal) Regression

If you are predicting the age of your customers (a *regression* task), the batch prediction output looks like the following:

| ENTITY | TARGET_PRED |
| ------ | ----------- |
| 0      | 29          |
| 1      | 17          |
| 2      | 40          |

The `TARGET_PRED` column contains the predicted age for each customer.

If you train the model with the `multi_quantile` option, the output also includes quantile columns:

| ENTITY | TARGET_PRED | q_0.005 | q_0.01 | ... | q_0.995 |
| ------ | ----------- | ------- | ------ | --- | ------- |
| 0      | 29          | 24.0    | 25.0   | ... | 35.0    |
| 1      | 17          | 14.0    | 14.0   | ... | 22.0    |
| 2      | 40          | 34.0    | 35.0   | ... | 47.0    |

`TARGET_PRED` is the median prediction.
The `q_*` columns provide quantile estimates ranging from `q_0.005` through `q_0.995`.

See [Age Prediction](/sdgm/kumo-engine/get-started-with-kumo-engine/workflows-and-solutions/predictive-query-examples#age-prediction-regression).

### Example Prediction Output: Temporal Regression

To predict the amount of money a customer would spend on October 18 (a *temporal regression* task), the batch prediction output looks like the following:

| ENTITY | TIMESTAMP  | TARGET_PRED |
| ------ | ---------- | ----------- |
| 0      | 2024-10-18 | 20.398209   |
| 1      | 2024-10-18 | 5.238759    |
| 2      | 2024-10-18 | 0.000000    |

The `TARGET_PRED` column contains the predicted amount each customer will spend on October 18, 2024.

With the `multi_quantile` option, temporal regression output keeps the timestamp and adds the same 27 quantile columns:

| ENTITY | TIMESTAMP  | TARGET_PRED | q_0.005 | q_0.01 | ... | q_0.995 |
| ------ | ---------- | ----------- | ------- | ------ | --- | ------- |
| 0      | 2024-10-18 | 20.398209   | 12.10   | 13.25  | ... | 34.90   |
| 1      | 2024-10-18 | 5.238759    | 0.00    | 0.10   | ... | 13.40   |
| 2      | 2024-10-18 | 0.000000    | 0.00    | 0.00   | ... | 7.80    |

See [Lifetime Value](/sdgm/kumo-engine/get-started-with-kumo-engine/workflows-and-solutions/predictive-query-examples#lifetime-value-temporal-regression).

### Example Prediction Output: Static (Non-Temporal) Link Prediction

To predict the top ten unique items each customer is likely to purchase (a *static link prediction* task), the batch prediction output looks like the following:

| ENTITY | CLASS     | SCORE        |
| ------ | --------- | ------------ |
| 1      | 733749001 | 0.6874649124 |
| 1      | 534746502 | 0.6624874491 |
| 1      | 733001749 | 0.6746829124 |
| 1      | 800441502 | 0.6846829493 |
| 1      | 534746492 | 0.6874624491 |
| 1      | 464953472 | 0.6874491236 |
| 1      | 850244001 | 0.6875469162 |
| 1      | 759871002 | 0.6834917462 |
| 1      | 46494643  | 0.6874624491 |
| 1      | 746534492 | 0.8746749124 |

See [Item-to-Item Similarity](/sdgm/kumo-engine/get-started-with-kumo-engine/workflows-and-solutions/predictive-query-examples#item-to-item-similarity-static-link-prediction).

### Example Prediction Output: Temporal Link Prediction

To predict the unique items each customer is likely to purchase in the next 30 days (a *temporal link prediction* task), the batch prediction output looks like the following:

| ENTITY | CLASS     | SCORE        | TIMESTAMP  |
| ------ | --------- | ------------ | ---------- |
| 0      | 733749001 | 0.6846829493 | 2022-10-18 |
| 1      | 850244001 | 0.6874624491 | 2022-10-18 |
| 2      | 759871002 | 0.6624874491 | 2022-10-18 |

See [Item Recommendation](/sdgm/kumo-engine/get-started-with-kumo-engine/workflows-and-solutions/predictive-query-examples#item-recommendation-temporal-link-prediction).