scikit-survival

Fits Cox, Random Survival Forest, Gradient Boosting, and SVM survival models in Python using scikit-survival.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolkit for survival analysis and time-to-event modeling in Python, enabling users to analyze censored data and build predictive models.

Core Features & Use Cases

  • Survival Modeling: Fit Cox models, Random Survival Forests, Gradient Boosting, and Survival SVMs.
  • Data Handling: Preprocess survival data, create survival outcomes, and validate data quality.
  • Evaluation: Assess model performance using concordance index, Brier score, and time-dependent AUC.
  • Use Case: Analyze patient data to predict time to disease recurrence, accounting for censored observations, and evaluate model performance using robust metrics.

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 time-to-event 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 outcomes. The scikit-survival toolkit provides the necessary functions to preprocess data, fit models, and evaluate results.

What machine learning models can I use for time-to-event modeling?

For time-to-event modeling, you can fit Cox models, Random Survival Forests, Gradient Boosting, and Survival SVMs. These models handle censored observations and predict the time until a specific event occurs.

How do I evaluate the performance of a Cox model with censored observations?

Evaluate a Cox model with censored observations using metrics like the concordance index, Brier score, and time-dependent AUC. These metrics measure how well the model predicts the ranking and probability of survival over time.

Can I use scikit-survival to handle competing risks in survival data?

Yes, scikit-survival supports handling competing risks in survival data. The toolkit allows you to model time-to-event outcomes when multiple distinct events can occur, preventing the first event from censoring the others.

What is the best way to predict disease recurrence time using machine learning?

Predicting disease recurrence time is best achieved by fitting survival models to patient data. You can use Random Survival Forests or Gradient Boosting to account for censored observations and estimate the time to recurrence.

Does scikit-survival require specific data preprocessing for survival outcomes?

Yes, it requires creating specific survival outcomes and validating data quality before fitting models. The toolkit provides functions to preprocess data into the required structured format for time-to-event modeling.