Survival
Train a no-code survival analysis model to predict time until an event, like a return or churn. 2 algorithms compared automatically.
Survival analysis predicts how long until an event happens: how many days until a customer churns, how many days until an order is returned, how many days until a subscription lapses. It is distinct from Regression because it needs two columns together: a duration, and whether the event actually happened by the end of that duration.
When to Use Survival
Use Survival when the question is about timing until an event, not just whether the event happens:
- Churn timing: not just whether a customer will churn, but how many days of tenure typically precede it.
- Return or cancellation windows: how many days after an order ships does a return typically happen, and which order characteristics raise or lower that risk?
- Subscription lapses: how long do accounts typically stay active before lapsing, and what predicts an early lapse?
- Equipment or asset life: how long until a piece of equipment typically needs replacement or maintenance?
If you only want to know whether an event happens, not when, Classification with a binary target is simpler. If you want to predict a number with no event-timing structure, use Regression.
How Survival Works
Survival tries 2 algorithms against your data, every time, regardless of which training strategy you pick: Cox Proportional Hazards and Weibull AFT. They are not two versions of the same idea; they model the problem differently.
Cox Proportional Hazards asks how much each feature scales the instantaneous risk of the event, at any point in time, relative to a baseline. It assumes that a feature's relative effect on risk stays constant over the observation period, an assumption called proportional hazards.
Weibull AFT asks a different question: how much does each feature stretch or compress the time to the event itself. A feature with a time ratio above 1 means rows with more of that feature tend to take longer to reach the event; below 1, they tend to reach it sooner. This model does not assume proportional hazards, so it can fit your data better when that assumption does not hold.
Edilitics fits both and keeps whichever ranks risk more accurately on data it has not seen, measured by Concordance Index. Unlike every other task type, the training strategy you pick (Fast Prototype, Balanced, or Best Quality) makes no difference here: both algorithms run with the same settings at every tier, since neither has a wider or narrower search to run.
Preparing Your Data
Survival analysis needs a specific pair of columns together, which makes data preparation more important here than for most other task types.
What you should check:
- You have a duration column: a continuous numeric value measuring time, for example days since the order shipped, or tenure in days.
- You have a binary event column: did the event happen, or not, by the end of that duration. A return flag, a cancellation flag, or a boolean churn indicator all work.
- At least 20 usable rows remain after removing rows with a null duration or event value.
What Edilitics handles for you:
- ID-like columns are excluded from feature selection automatically.
- Columns that would leak the event are flagged and excluded.
- The number of features you can select depends on your plan. 50 columns on Launch, 100 on Scale, 200 on Pinnacle, unlimited on Enterprise.
Sample Dataset
edilitics_sample_orders_h2.csv
250 B2B SaaS orders, H2 2024. Event column for this example: return_flag (35 returned, 215 not returned). · 250 rows
Relevant columns:
Prop
Type
This sample has no incomplete or still-pending orders. In a real churn or subscription dataset, some rows typically have no event yet, simply because the observation window has not finished for them; Survival analysis is built to use those rows too, not just the ones with a resolved outcome.
How to Train a Survival Model
Prepare a duration column
Build a numeric duration column before training, for example days between order_date and delivery_date, using Transform's Datetime Delta operation.
Choose Survival, a duration, and an event column
On the Goal step, select Survival (Time-to-Event). Pick your duration column, and return_flag as the event column.
Select predictor features
On the Features step, choose the columns the model should learn from, for example delivery_partner or region. ID-like columns and any column that would leak the event are excluded automatically.
Pick a training strategy and launch
Choose Fast Prototype, Balanced, or Best Quality, then click Start AutoML Training. Both algorithms run the same way at every tier.
Review the report
Once training finishes, open the model's Run History and the Report tab. Review the champion's feature effects before deciding whether the model is ready to use.
What Gets Tried
Survival evaluates 2 algorithms, at every training strategy.
Prop
Type
Unlike every other task type, Fast Prototype, Balanced, and Best Quality all run the same 2 algorithms with the same settings for Survival. Neither algorithm has a wider or narrower search to run, so the training strategy you pick makes no difference to what gets tried.
The champion is whichever candidate scores highest Concordance Index on held-out data.
What the Report Shows
A survival run's Report tab has 2 parts:
- Leaderboard: both algorithms, their Concordance Index, and their rank. The top row is the champion.
- Feature effects: what the champion shows here depends on which algorithm won. A Cox Proportional Hazards champion shows hazard ratios, each feature's effect on risk, with a 95% confidence interval and a flag on any feature where the proportional-hazards assumption may not hold. A Weibull AFT champion shows time ratios instead, each feature's effect on the time to the event, also with a confidence interval.
Every report also includes Run Diagnostics and a Training Data Profile, regardless of task type.
Operation Reference
Prop
Type
Frequently Asked Questions
Next Steps
Classification
Predict whether an event happens at all, without modelling the timing.
Predict overview
The full training-to-deploy loop: iterate, review, retrain, and apply.
No-Code Operations
Build a duration column with Datetime Delta before training a survival model.
Need help? Email support@edilitics.com with your workspace, job ID, and context. We reply within one business day.
Last updated on