scikit-survival

Train and evaluate censored time-to-event survival models in Python using scikit-survival.

Updated May 24, 2026
One-click install
npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill scikit-survival-estrella-231
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/Estrella-231/Mathematical_modeling_tongmeng/tree/main/.agents/skills/scikit-survival
Command: npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill scikit-survival-estrella-231

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

scikit-survival helps you build accurate time-to-event (survival) models when your dataset contains censored observations, so predictions remain valid even though not everyone experiences the event during follow-up.

Core Features & Use Cases

  • Fit time-to-event models for censored data: build Cox proportional hazards variants, survival SVMs, and ensemble survival models (e.g., Random Survival Forest, Gradient Boosting).
  • Handle competing risks analysis: estimate cumulative incidence functions with competing event types using dedicated non-parametric utilities.
  • Evaluate predictions with survival-appropriate metrics: use concordance (Harrell/Uno), time-dependent AUC, and Brier/Integrated Brier scores.
  • Use Case: You have patient follow-up data where some outcomes are censored and you want to compare models predicting event risk while reporting discrimination and calibration with censoring-corrected metrics.

Quick Start

Use the skill to fit a Cox proportional hazards model on your censored dataset and report Uno’s C-index to assess discrimination.

Frequently Asked Questions about scikit-survival

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

FAQPage Schema
How do I train a survival model on censored time-to-event data in Python?▼

You can train a survival model on censored time-to-event data in Python by creating Surv outcomes and fitting an estimator like Cox proportional hazards, Random Survival Forest, or survival SVMs using scikit-survival to handle censored observations directly.

What metrics are used to evaluate survival analysis models with censored data?▼

Survival analysis models with censored data are evaluated using censoring-aware metrics such as Harrell's or Uno's concordance index, time-dependent AUC, and Brier or Integrated Brier scores to assess discrimination and calibration.

Can I estimate cumulative incidence functions for competing risks analysis?▼

Yes, you can estimate cumulative incidence functions for competing risks analysis by using dedicated non-parametric utilities that handle competing event types within the scikit-survival framework.

What is the best way to compare Cox proportional hazards and Random Survival Forests?▼

To compare Cox proportional hazards and Random Survival Forests, fit both estimators on your censored dataset and evaluate their discrimination using Uno's C-index to determine which model predicts event risk more accurately.

Does scikit-survival support Gradient Boosting survival models and survival SVMs?▼

Yes, scikit-survival supports Gradient Boosting survival models and survival SVMs, allowing you to fit ensemble and margin-based estimators on censored time-to-event datasets for predicting event risk.