scikit-survival

Fit survival models and evaluate censored time-to-event data in Python.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Rowtion/Bioclaw --skill scikit-survival-rowtion
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/Rowtion/Bioclaw/tree/main/scientific-skills/scikit-survival
Command: npx skills add https://github.com/Rowtion/Bioclaw --skill scikit-survival-rowtion

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers users to perform sophisticated survival analysis and time-to-event modeling in Python, overcoming the complexities of censored data and enabling robust predictions.

Core Features & Use Cases

  • Model Diverse Survival Scenarios: Fit Cox proportional hazards models, Random Survival Forests, Gradient Boosting models, and Survival SVMs.
  • Handle Censored Data: Accurately analyze data where the exact event time is unknown.
  • Evaluate Model Performance: Utilize metrics like C-index, time-dependent AUC, and Brier score for comprehensive assessment.
  • Use Case: A researcher studying patient outcomes after a new treatment can use this Skill to build a model that predicts survival time, accounts for patients who dropped out of the study, and identifies key prognostic factors.

Quick Start

Use the scikit-survival skill to fit a Cox proportional hazards model to the breast cancer dataset and evaluate its performance using the concordance index.

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 with censored data in Python?▼

Survival analysis with censored data in Python is performed using scikit-survival, which fits models like Cox proportional hazards and Random Survival Forests to accurately analyze records where the exact event time is unknown.

What metrics can I use to evaluate time-to-event model performance?▼

Time-to-event model performance is evaluated using metrics like the concordance index (C-index), time-dependent AUC, and Brier score, which provide comprehensive assessment for survival models handling censored data.

Can I fit a Random Survival Forest or Gradient Boosting model for biostatistics data?▼

Yes, you can fit Random Survival Forests and Gradient Boosting models for biostatistics data, alongside Survival SVMs and Cox models, to handle complex time-to-event modeling and identify prognostic factors.

How do I build a Cox proportional hazards model and interpret prognostic factors?▼

To build a Cox proportional hazards model, you fit the model to your dataset using scikit-survival, which supports data preprocessing, model selection, and interpretation to identify key prognostic factors for survival analysis.

What is the best way to handle time-to-event modeling when patients drop out of a study?▼

The best way to handle time-to-event modeling when patients drop out is utilizing survival analysis techniques designed for censored data, ensuring accurate predictions and robust analysis even when exact event times are unknown.

When should I use Survival SVMs instead of Cox models for time-to-event analysis?▼

You should use Survival SVMs instead of Cox models when your time-to-event analysis requires handling complex, non-linear relationships in survival data, as SVMs offer an alternative machine learning approach to traditional proportional hazards assumptions.