scikit-survival

Model censored time-to-event data with Cox, ensemble, and SVM survival analysis in Python.

48|6|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill scikit-survival-qinyan-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/qinyan-ai/qinyan-academic-skills/tree/main/skills/09-%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E4%B8%8E%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/scikit-survival
Command: npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill scikit-survival-qinyan-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Survival analysis in Python with censored data is supported by a library that provides Cox models, ensemble methods, and survival-related estimators, enabling researchers to build, evaluate, and compare time-to-event models.

Core Features & Use Cases

  • Cox proportional hazards models for standard survival analysis and penalized alternatives.
  • Ensemble methods like Random Survival Forests and Gradient Boosting for non-linear relationships.
  • Survival SVMs for margin-based risk scoring.
  • Evaluation metrics including concordance index, time-dependent AUC, and Brier score.

Use cases include clinical prognosis, biomedical studies, and reliability engineering where time-to-event outcomes with censoring are analyzed.

Quick Start

Install scikit-survival, load a dataset, and fit a CoxPHSurvivalAnalysis model to begin.

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 in Python with censored time-to-event data?

You can perform survival analysis in Python using scikit-survival, which fits censored time-to-event data via CoxPHSurvivalAnalysis, ensemble methods, and survival SVMs.

What's the best way to model non-linear relationships in survival analysis data?

To model non-linear relationships in survival analysis, ensemble methods like Random Survival Forests and Gradient Boosting capture complex patterns that standard Cox models miss.

How do I evaluate the performance of a Cox proportional hazards model?

Evaluate Cox proportional hazards models using metrics like the concordance index, time-dependent AUC, and Brier score to measure discrimination and calibration of risk predictions.

Can I use survival analysis for reliability engineering and clinical prognosis predictions?

Yes, survival analysis applies to reliability engineering and clinical prognosis by modeling time-to-event outcomes with censoring to estimate component failure risks and patient survival probabilities.

How do I handle margin-based risk scoring for survival data?

Handle margin-based risk scoring for survival data using FastSurvivalSVM and FastKernelSurvivalSVM estimators, which apply support vector machine approaches to censored time-to-event outcomes.

When should I use penalized Cox models instead of standard survival analysis approaches?

Use penalized alternatives like CoxnetSurvivalAnalysis instead of standard CoxPHSurvivalAnalysis when dealing with high-dimensional data to apply regularization and prevent overfitting in survival analysis.