Add Predictions
Apply a trained Predict model to real data inside a Transform pipeline. Adds predictions, confidence scores, and SHAP drivers with no code.
Add Predictions applies a model already trained in Predict to the data flowing through a Transform pipeline. It does not train anything itself: pick a model, pick a version, and Edilitics scores every row, adding the prediction, a confidence score where the task type supports one, and the features that drove each result.
This is the only way a trained Predict model reaches real data. Predict's own interface has no deploy button or batch-scoring screen of its own.
When to Use Add Predictions
Use this operation once you have a model you trust, and want its predictions flowing through a real pipeline rather than sitting in a one-off training report:
- Score every customer for churn risk as part of a pipeline that already cleans and joins your customer table.
- Tag incoming orders with a predicted tier or segment, using a classification model trained on historical orders.
- Flag unusual transactions automatically, using an anomaly detection model, as part of a pipeline that feeds a fraud review dashboard.
- Extend a revenue table with a forecast, using a forecasting model, so the same pipeline that reports historical revenue also projects it forward.
If you have not trained a model yet, start in Predict: pick a task type, train, and review the report before coming back here to apply it.
Sample Dataset
edilitics_sample_orders.csv
500 B2B SaaS orders, H1 2024. This example applies the product_tier classification model trained in the Classification doc. · 500 rows
Relevant columns:
Prop
Type
This example assumes a classification model has already been trained on product_tier as described in Classification, using revenue, units_sold, and region as features.
How to Add Predictions
Open Transform and add the Add Predictions operation
Open the Transform pipeline you want to add predictions to. In the left panel under All Transformations, click Add Predictions.
Select a trained model
Under Select Predictive Model, pick a model. Models trained on the table this pipeline step is currently working with appear grouped under Recommended for Table; every other model you have access to appears under Other Models. Each option shows the model's title, task type, and target column.
Choose a model version
Under Model Version, pick a specific version, shown as v{N} · {algorithm} ({metric}: {score}), with a ★ Champion marker on whichever version is currently active. Or pick Always use latest version at the top of the list to automatically track whichever version is champion each time the pipeline runs, even after a future retrain.
A pinned version number stays frozen at that version until you reopen this step and change it, no matter how many times the model is retrained afterward. Always use latest version is the only option that keeps a scheduled pipeline current with a scheduled retrain automatically.
Map any missing features and set an output prefix
Schema Validation shows how many of the model's expected features are present in the current table. If any are missing, a mapping row appears for each one with a Map to → column picker, so you can point it at a differently-named column instead of renaming your data.
Enter an Output Column Prefix, for example tier_pred. This becomes the prefix for every new column this step adds.
Save and preview
Click Save & Preview. The new columns appear in the data grid alongside your existing data.
What Gets Added
The columns this operation adds depend on the model's task type.
Adds the predicted label, a confidence probability for each class, and up to 2 SHAP driver columns per row.
| Column | Contains |
|---|---|
{prefix} | The predicted category |
{prefix}_prob_{class} | Confidence probability for each class (just the positive class for a 2-category target) |
{prefix}_top_drivers | The features that most influenced this row's prediction |
{prefix}_driver_1_feature, {prefix}_driver_1_impact | The single strongest driver for this row, and its effect |
{prefix}_driver_2_feature, {prefix}_driver_2_impact | The second strongest driver for this row, and its effect |
SHAP driver columns are only added for tables up to 100,000 rows. Above that, every other column still gets added, but the 5 driver columns are skipped so the operation finishes in reasonable time on very large tables.
Adds the predicted number and up to 2 SHAP driver columns per row.
| Column | Contains |
|---|---|
{prefix} | The predicted value |
{prefix}_top_drivers, {prefix}_driver_1_feature, {prefix}_driver_1_impact, {prefix}_driver_2_feature, {prefix}_driver_2_impact | The features that most influenced this row's prediction |
SHAP driver columns are only added for tables up to 100,000 rows. Above that, every other column still gets added, but the 5 driver columns are skipped so the operation finishes in reasonable time on very large tables.
Adds a single cluster assignment. No SHAP drivers; clustering has no target to explain.
| Column | Contains |
|---|---|
{prefix}_cluster | Which cluster this row was assigned to |
Adds a flag and a score. No SHAP drivers.
| Column | Contains |
|---|---|
{prefix}_is_anomaly | True or false |
{prefix}_score | How unusual this row is; higher means more unusual |
Adds one column, and which column depends on which algorithm won. No SHAP drivers, no confidence probabilities for either.
| Column | Contains |
|---|---|
{prefix}_risk_score | Cox Proportional Hazards champion: this row's relative risk of the event happening |
{prefix}_predicted_median_duration | Weibull AFT champion: this row's predicted median time to the event |
Forecasting works differently from every other task type. Instead of adding columns to your existing rows, it appends new rows after the latest date already in your table, one row per future period (or per series, if the model uses a Series ID).
| Column | Contains |
|---|---|
{prefix} | The forecast value for that future period |
{prefix}_lower_bound, {prefix}_upper_bound | The forecast's confidence interval |
If the model was trained with driver columns, fill those columns in for the future rows yourself, for example by concatenating a plan or calendar table before this step; Edilitics fills the forecast target, not your own driver values. Existing historical rows get these new columns as null.
Before & After
Input (3 rows, product_tier model applied, Output Column Prefix: tier_pred):
| order_id | revenue | units_sold | region |
|---|---|---|---|
| ORD-2024-0001 | 6,420.50 | 12 | North America |
| ORD-2024-0042 | 38,915.00 | 45 | Europe |
| ORD-2024-0087 | 72,300.75 | 88 | Asia Pacific |
After Add Predictions:
| order_id | tier_pred | tier_pred_prob_Growth | tier_pred_prob_Starter | tier_pred_prob_Enterprise | tier_pred_top_drivers |
|---|---|---|---|---|---|
| ORD-2024-0001 | Starter | 0.18 | 0.71 | 0.11 | revenue, units_sold |
| ORD-2024-0042 | Growth | 0.64 | 0.22 | 0.14 | revenue, region |
| ORD-2024-0087 | Enterprise | 0.09 | 0.05 | 0.86 | revenue, units_sold |
Original columns are unchanged. Every new column uses the prefix you set.
Operation Reference
Prop
Type
Frequently Asked Questions
Next Steps
Predict overview
Train a model before applying it here: the full training-to-deploy loop.
Classification
Train the classification model used in this example.
Concat
Combine a plan or calendar table with your data before applying a Forecasting model.
Need help? Email support@edilitics.com with your workspace, job ID, and context. We reply within one business day.
Last updated on
Flatten
Expand nested JSON, struct, and list columns into flat columns. Explode a list into rows, split it into columns, or just count its items.
Code Editor
Write Python scripts directly inside your Transform pipeline. Polars 2.0, NumPy, SciPy, math, re, and Polars selectors preloaded. Test before saving. No imports required.