scikit-survival

Model censored time-to-event data with scikit-survival in Python.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Comprehensive survival analysis toolkit for Python using scikit-survival, enabling analysts to model censored time-to-event data, compare models, and interpret risk predictions.

Core Features & Use Cases

  • CoxPHSurvivalAnalysis and CoxnetSurvivalAnalysis for standard and penalized Cox modeling
  • Ensemble methods such as RandomSurvivalForest and GradientBoostingSurvivalAnalysis
  • Survival SVMs (FastSurvivalSVM, FastKernelSurvivalSVM) for non-linear relationships
  • Evaluation with concordance index (Harrell's and Uno's), time-dependent AUC, and Brier score
  • Data preprocessing, competing risks support via references, and scikit-learn pipeline integration

Quick Start

Load your dataset, fit a CoxPHSurvivalAnalysis model, and generate risk scores for evaluation.

Frequently Asked Questions about scikit-survival

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

FAQPage Schema
How do I model censored time-to-event data using scikit-learn pipelines?

Survival analysis with scikit-survival models censored time-to-event data by integrating directly into scikit-learn pipelines. It supports Cox models, ensemble survival methods, and survival SVMs using NumPy and pandas inputs.

What is the best way to evaluate survival models across different time horizons?

Evaluating survival models across time horizons uses the concordance index, time-dependent AUC, and Brier score. These metrics measure risk prediction accuracy and discriminatory power for censored time-to-event data.

Can I use Random Survival Forests and Gradient Boosting for non-linear survival analysis?

Yes, scikit-survival includes ensemble methods like RandomSurvivalForest and GradientBoostingSurvivalAnalysis, alongside Survival SVMs such as FastKernelSurvivalSVM, to effectively model non-linear relationships in time-to-event data.

When do I need penalized Cox models instead of standard CoxPHSurvivalAnalysis?

Penalized Cox modeling via CoxnetSurvivalAnalysis is needed when handling high-dimensional censored data or preventing overfitting, extending standard CoxPHSurvivalAnalysis by applying regularization to time-to-event risk predictions.

Does scikit-survival support competing risks for time-to-event modeling?

scikit-survival provides references for competing risks support while focusing on standard survival analysis workflows. The toolkit models censored data and generates risk scores using Cox models, survival SVMs, and ensemble methods.