scikit-survival

Model censored survival data with scikit-survival workflows.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/JosephWoodall/noosphere --skill scikit-survival-josephwoodall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/JosephWoodall/noosphere/tree/main/.agent/skills/scikit-survival
Command: npx skills add https://github.com/JosephWoodall/noosphere --skill scikit-survival-josephwoodall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Time-to-event data requires specialized analysis; scikit-survival provides a comprehensive Python-based workflow to model censored survival data, compare Cox, ensemble, and SVM approaches, and evaluate predictions with proper metrics.

Core Features & Use Cases

  • Supports CoxPHSurvivalAnalysis, CoxnetSurvivalAnalysis, IPCRidge for Cox-based modeling, plus ensemble methods like RandomSurvivalForest, GradientBoostingSurvivalAnalysis, ComponentwiseGradientBoostingSurvivalAnalysis, and ExtraSurvivalTrees, as well as survival SVM variants (FastSurvivalSVM, FastKernelSurvivalSVM, HingeLossSurvivalSVM, NaiveSurvivalSVM) and the ClinicalKernelTransform kernel for mixed data.
  • Provides integrated preprocessing, data handling, and evaluation utilities (concordance index, time-dependent AUC, Brier score) and guidance for competing risks, non-parametric estimation, and model comparison.
  • Real-world scenarios include clinical prognosis, reliability engineering, and biomedical research requiring time-to-event modeling with censored data.

Quick Start

Install scikit-survival, load a survival dataset, and fit a CoxPH model to get risk scores.

Frequently Asked Questions about scikit-survival

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

FAQPage Schema
How do I handle censored time-to-event data for survival analysis in Python?

Survival analysis of censored time-to-event data uses scikit-survival workflows to fit Cox models, ensemble approaches, and survival SVMs directly within sklearn pipelines. It provides specialized preprocessing utilities to handle right-censored records before generating risk scores.

Can I compare Random Survival Forest and Cox model performance for clinical prognosis?

You can compare Cox models against ensemble methods like Random Survival Forest using scikit-survival evaluation metrics such as concordance index, time-dependent AUC, and Brier score. This allows robust performance benchmarking for clinical prognosis tasks.

What's the best way to evaluate survival model predictions with proper metrics?

Evaluating survival model predictions uses proper metrics like the concordance index, time-dependent AUC, and Brier score provided by scikit-survival. These metrics correctly account for censored data compared to standard regression scoring.

Does scikit-survival work with standard sklearn workflows for data preprocessing?

scikit-survival integrates with standard sklearn workflows for data preprocessing, model fitting, and evaluation. Survival models like CoxPHSurvivalAnalysis and GradientBoostingSurvivalAnalysis function as sklearn estimators within existing pipelines.

When should I use survival SVM variants instead of Cox models for time-to-event modeling?

Use survival SVM variants like FastSurvivalSVM instead of Cox models when handling high-dimensional time-to-event data or applying custom kernels for mixed data types. Cox models are preferred for direct interpretability of hazard ratios in biomedical research.

Do I need Python and scikit-survival installed to model competing risks?

Modeling competing risks and non-parametric estimation requires Python and scikit-survival installation. The environment provides the necessary utilities to handle complex survival endpoints beyond standard right-censored data.