scikit-survival

Fit scikit-survival Cox and ensemble models on censored time-to-event data.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/HaykTarkhanyan/dst_research --skill scikit-survival-hayktarkhanyan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/HaykTarkhanyan/dst_research/tree/main/.claude/skills/scikit-survival
Command: npx skills add https://github.com/HaykTarkhanyan/dst_research --skill scikit-survival-hayktarkhanyan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

scikit-survival enables survival analysis for censored time-to-event data in Python, providing domain-specific models and evaluation tools for healthcare, reliability, and research applications.

Core Features & Use Cases

  • Model families: CoxPHSurvivalAnalysis, CoxnetSurvivalAnalysis, IPCRidge; ensemble methods such as RandomSurvivalForest and GradientBoostingSurvivalAnalysis; survival SVMs including FastSurvivalSVM and FastKernelSurvivalSVM.
  • Evaluation and preprocessing: data handling, censoring-aware metrics (concordance index, Uno's C-index, integrated Brier score), and survival curve estimation; coping with competing risks and non-parametric estimators.
  • Real-world use: build predictive survival models for patient outcomes, time-to-event analyses in engineering, and risk scoring with calibrated probabilities.

Quick Start

Load a survival dataset, fit a CoxPHSurvivalAnalysis model, and inspect the resulting 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 perform survival analysis on censored time-to-event data in Python?

Survival analysis on censored time-to-event data in Python is performed using scikit-survival to fit models like CoxPHSurvivalAnalysis, evaluate with concordance index, and estimate survival curves. It supports biomedical, reliability, and research applications.

Can I use Random Survival Forest and Gradient Boosting for time-to-event analysis?

Yes, time-to-event analysis supports ensemble methods like RandomSurvivalForest and GradientBoostingSurvivalAnalysis. These models handle censored data directly, providing risk scoring and survival curve estimation for complex datasets.

What evaluation metrics are available for censored survival models?

Censored survival models are evaluated using metrics like the concordance index, Uno's C-index, and integrated Brier score. These metrics assess model discrimination and calibration accuracy for time-to-event predictions.

Does scikit-survival support survival SVMs for risk scoring?

Yes, scikit-survival supports survival SVMs through FastSurvivalSVM and FastKernelSurvivalSVM. These models enable efficient risk scoring and survival prediction on high-dimensional censored time-to-event data.

How do I handle penalized Cox models for high-dimensional survival data?

Penalized Cox models for high-dimensional survival data are handled using CoxnetSurvivalAnalysis. This model applies elastic-net regularization to Cox proportional hazards, preventing overfitting while estimating risk scores.

What are the limitations of using Cox models for survival analysis?

Cox models assume proportional hazards, which limits their use when hazard ratios change over time. For non-proportional hazards or competing risks, non-parametric estimators or ensemble survival methods like RandomSurvivalForest may be more appropriate.