scikit-survival

Build censored-data survival models with scikit-survival for Cox, ensemble, and SVM approaches.

4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/shushuzn/Rairos --skill scikit-survival-shushuzn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/shushuzn/Rairos/tree/main/skills/scikit-survival
Command: npx skills add https://github.com/shushuzn/Rairos --skill scikit-survival-shushuzn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

scikit-survival helps you perform time-to-event (survival) analysis when outcomes are censored, so you can model how features affect event risk without discarding incomplete observations.

Core Features & Use Cases

  • Fitting survival models for censored data: Build Cox proportional hazards models (standard and penalized), accelerated failure time variants, and survival SVMs.
  • High-performance non-linear modeling: Use ensemble methods such as Random Survival Forests and Gradient Boosting for complex feature–time relationships.
  • Evaluating survival predictions correctly: Measure discrimination and calibration using Uno/Harrell C-index variants, time-dependent AUC, and Brier/Integrated Brier scores.
  • Handling competing risks: Estimate cumulative incidence functions for mutually exclusive event types and avoid incorrect Kaplan-Meier interpretations.
  • Typical use case: You have a clinical dataset with right-censoring and covariates (e.g., age, stage, biomarkers) and you need to compare multiple survival models and select the best-performing approach using IPCW C-index and Integrated Brier Score.

Quick Start

Use the scikit-survival skill to fit a Cox model on your structured survival dataset created with sksurv.util.Surv and then evaluate it using Uno’s concordance index.

Frequently Asked Questions about scikit-survival

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a survival model with right-censored clinical data in scikit-learn?

Build survival models with right-censored clinical data by creating structured arrays using sksurv.util.Surv, then fitting Cox proportional hazards or Random Survival Forests directly within scikit-learn workflows.

What is the correct way to evaluate survival model predictions for censored data?

Evaluate survival model predictions for censored data using IPCW-based concordance indices like Uno's C-index, time-dependent AUC, and Brier scores to measure discrimination and calibration correctly.

Can I model competing risks using survival analysis without incorrect Kaplan-Meier interpretations?

Model competing risks by estimating cumulative incidence functions for mutually exclusive event types, which correctly handles competing risk probabilities and avoids incorrect Kaplan-Meier interpretations.

Does scikit-survival support non-linear feature relationships for time-to-event analysis?

Scikit-survival supports non-linear feature relationships for time-to-event analysis through ensemble methods like Random Survival Forests and Gradient Boosting survival models.

Why do I need structured arrays for censored outcomes in survival analysis?

Structured arrays are required for censored outcomes in survival analysis to properly pair event occurrence indicators with observed times, ensuring models correctly interpret incomplete observations.

What is the best way to compare multiple survival models on a clinical dataset?

Compare multiple survival models on a clinical dataset by fitting Cox, ensemble, and survival SVM variants, then ranking their performance using Integrated Brier Score and IPCW C-index metrics.