scikit-survival

Fit survival models and evaluate censored time-to-event data with scikit-survival.

18|1|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill scikit-survival-logauaengstrom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/LogauaEngstrom/claude-scientific-skills/tree/main/scientific-skills/scikit-survival
Command: npx skills add https://github.com/LogauaEngstrom/claude-scientific-skills --skill scikit-survival-logauaengstrom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

scikit-survival provides survival analysis tools built on top of scikit-learn, enabling handling of censored time-to-event data, fitting Cox models, ensemble survival methods, and robust evaluation using concordance index and Brier score.

Core Features & Use Cases

  • Model families: CoxPHSurvivalAnalysis, CoxnetSurvivalAnalysis, IPCRidge for regression-type survival, RandomSurvivalForest, GradientBoostingSurvivalAnalysis, ComponentwiseGradientBoostingSurvivalAnalysis, ExtraSurvivalTrees.
  • Advanced capabilities: competing risks handling, non-parametric estimations (Kaplan-Meier, Nelson-Aalen), data preprocessing and integration with pipelines, built-in datasets for practice, and seamless scikit-learn compatibility for cross-validation and pipelines.
  • Real-world scenarios: clinical/biomedical survival studies, epidemiology, pharmacovigilance, and any domain requiring time-to-event analysis with censored data.

Quick Start

Install scikit-survival, load a dataset, fit a CoxPHSurvivalAnalysis model, and evaluate with Uno's C-index to gauge discrimination.

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 requires structuring records in the Surv array format, fitting models like CoxPH or RandomSurvivalForest, and evaluating discrimination using the concordance index to gauge predictive accuracy.

Can I use scikit-learn pipelines for preprocessing and cross-validating survival models?

Scikit-learn pipelines fully support survival analysis workflows, enabling seamless preprocessing, cross-validated evaluation, and direct integration with models like CoxnetSurvivalAnalysis and GradientBoostingSurvivalAnalysis for robust clinical data modeling.

What evaluation metrics are available for time-to-event models with censored data?

Time-to-event models with censored data are primarily evaluated using the concordance index for discrimination and the Brier score for prediction accuracy, allowing you to measure model performance robustly across clinical and epidemiological datasets.

Does this approach support non-parametric estimations like Kaplan-Meier and competing risks?

Non-parametric estimations including Kaplan-Meier and Nelson-Aalen curves are supported alongside competing risks handling, allowing comprehensive time-to-event analysis for biomedical studies without relying solely on semi-parametric Cox models.

What's the best way to fit Cox models for clinical and biomedical time-to-event studies?

Fitting Cox models for clinical time-to-event studies is best handled using CoxPHSurvivalAnalysis for standard regression or CoxnetSurvivalAnalysis for high-dimensional data, providing robust risk estimation for censored biomedical observations.

When should I use ensemble survival methods instead of standard Cox regression?

Ensemble survival methods like RandomSurvivalForest and GradientBoosting are preferred over standard Cox regression when handling complex non-linear relationships in time-to-event data, offering superior flexibility for high-dimensional censored datasets.