scikit-survival

Analyze time-to-event outcomes with censored data using scikit-survival.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/must1f/Dissertaion-Project --skill scikit-survival-must1f
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/must1f/Dissertaion-Project/tree/main/.agents/skills/scikit-survival
Command: npx skills add https://github.com/must1f/Dissertaion-Project --skill scikit-survival-must1f

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

scikit-survival provides Python tools to perform survival analysis on censored data, enabling time-to-event modeling with Cox, random survival forests, SVMs, and other advanced methods.

Core Features & Use Cases

  • Fitting multiple model families for survival analysis on censored data (CoxPHSurvivalAnalysis, CoxnetSurvivalAnalysis, IPCRidge, RandomSurvivalForest, GradientBoostingSurvivalAnalysis, FastSurvivalSVM, FastKernelSurvivalSVM).
  • Evaluating models with concordance index, Uno's C-index, time-dependent AUC, and Brier score, including training/test split and cross-validation workflows.
  • Handling competing risks with cumulative incidence functions and cause-specific hazard modeling.
  • Data loading, preprocessing, and integration with scikit-learn pipelines to streamline end-to-end workflows.

Quick Start

Install scikit-survival, load your data into a Surv object, fit a CoxPHSurvivalAnalysis or RandomSurvivalForest, and evaluate using concordance index or Brier score.

Frequently Asked Questions about scikit-survival

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

FAQPage Schema
How do I perform survival analysis on censored time-to-event data in Python?▼

Survival analysis on censored data fits time-to-event models like CoxPH, RandomSurvivalForest, and SurvivalSVM using scikit-survival. It guides preprocessing, model selection, and evaluation with metrics like the concordance index and Brier score.

Can I evaluate survival models using concordance index and Brier score?▼

Yes, survival models are evaluated using concordance index, Uno's C-index, time-dependent AUC, and Brier score. The toolkit provides training/test split and cross-validation workflows to measure predictive performance on censored outcomes.

What's the best way to handle competing risks with cumulative incidence functions?▼

Competing risks are handled by modeling cumulative incidence functions and cause-specific hazards. This approach isolates event-specific risks when multiple failure types exist, ensuring accurate time-to-event predictions for distinct outcomes.

Does scikit-survival integrate with scikit-learn pipelines for preprocessing?▼

Yes, survival analysis models integrate directly with scikit-learn pipelines to streamline end-to-end workflows. Data loading and preprocessing steps connect seamlessly with fitting Cox models, survival forests, and survival SVMs.

When should I use RandomSurvivalForest instead of CoxPHSurvivalAnalysis for censored data?▼

Use RandomSurvivalForest when capturing complex non-linear relationships in censored data, whereas CoxPHSurvivalAnalysis assumes proportional hazards. Both evaluate time-to-event outcomes but differ in underlying assumptions about hazard rates.

Why does my survival SVM model need specific data handling for censored outcomes?▼

FastSurvivalSVM requires structured Surv objects to distinguish censored observations from event occurrences. Proper data handling ensures the SVM correctly accounts for incomplete event times during model training.