scikit-survival

Fit Cox models and evaluate survival predictions with scikit-survival.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/felixboehm/biochem-allergy --skill scikit-survival-felixboehm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/felixboehm/biochem-allergy/tree/main/.claude/skills/scikit-survival
Command: npx skills add https://github.com/felixboehm/biochem-allergy --skill scikit-survival-felixboehm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolkit for advanced survival analysis and time-to-event modeling in Python, enabling robust analysis of censored data.

Core Features & Use Cases

  • Model Diverse Survival Data: Fit Cox models, Random Survival Forests, Gradient Boosting, and Survival SVMs.
  • Handle Censoring: Accurately analyze data where the event time is not fully observed.
  • Evaluate Performance: Assess models using concordance index, Brier score, and time-dependent AUC.
  • Use Case: Analyze patient data to predict time to disease recurrence, accounting for patients who are still event-free at the end of the study.

Quick Start

Use the scikit-survival skill to fit a Cox proportional hazards model to the provided dataset.

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

Survival analysis on censored data in Python is performed by fitting models like Cox proportional hazards or Random Survival Forests to time-to-event datasets. This Skill provides the toolkit to fit these models and accurately handle right-censored observations where event times are incomplete.

What is the best way to evaluate time-to-event model performance?

Evaluating time-to-event model performance is best done using the concordance index, Brier score, and time-dependent AUC. These metrics assess how well survival models predict event ordering and accuracy over time, specifically accounting for censored data in the evaluation.

Can I use Random Survival Forests and Gradient Boosting for time-to-event modeling?

Random Survival Forests and Gradient Boosting can be used for time-to-event modeling alongside Survival SVMs and Cox models. This toolkit implements these machine learning algorithms to process censored data and predict survival times without relying solely on proportional hazards assumptions.

Does scikit-survival support Cox proportional hazards models for disease recurrence prediction?

scikit-survival supports Cox proportional hazards models for predicting disease recurrence and other time-to-event outcomes. It allows you to fit Cox models to patient datasets, effectively accounting for patients who remain event-free at the end of a study period.

When should I use Survival SVMs instead of a Cox model for censored data?

Survival SVMs should be used instead of a Cox model when you need machine learning approaches that relax the proportional hazards assumption. This toolkit provides both options, allowing you to compare traditional statistical models against advanced SVMs for your specific censored dataset.

How do I calculate the concordance index for a survival model?

Calculating the concordance index for a survival model involves comparing predicted risk scores against actual observed event times. This toolkit provides built-in evaluation metrics to compute the concordance index, measuring the model's ability to correctly rank survival times despite censored observations.