scikit-survival
scikit-survival is a Python library for survival analysis that handles censored data in time-to-event modeling. It offers Cox proportional hazards models, ensemble methods like Random Survival Forests and Gradient Boosting, and Survival SVMs, with evaluation metrics including concordance index and Brier score. Use it for competing risks analysis, Kaplan-Meier estimation, and any survival analysis workflow.
scikit-survival lets you build and evaluate survival models that handle censored time-to-event data using Cox, ensemble, and SVM approaches.
AI-generated summary based on this skill's SKILL.md
Install
synthetic-sciences/openscience/scikit-survival · repository language: TypeScript
git clone https://github.com/synthetic-sciences/openscience
cp -r openscience/backend/cli/skills/biology/scikit-survival ~/.claude/skills/scikit-survivalFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is scikit-survival used for in survival analysis?
scikit-survival is a Python library for survival analysis that handles censored data in time-to-event modeling. It offers Cox proportional hazards models, ensemble methods like Random Survival Forests and Gradient Boosting, and Survival SVMs, with evaluation metrics including concordance index and Brier score. Use it for competing risks analysis, Kaplan-Meier estimation, and any survival analysis workflow.
How does scikit-survival handle censored data analysis?
scikit-survival provides specialized preprocessing and validation tools for survival datasets with proper censoring handling. It supports right-censored data structures and integrates censoring information directly into model training and evaluation, ensuring accurate time-to-event predictions even when some subjects' event times are unknown or incomplete.
What survival model types can scikit-survival compare?
scikit-survival enables comparison of multiple survival model types including Cox proportional hazards regression, Random Survival Forests, Gradient Boosting survival models, and Survival SVMs. You can evaluate each model's performance to identify the best approach for your specific time-to-event prediction task.
Which evaluation metrics does scikit-survival calculate?
scikit-survival calculates key survival metrics: concordance index (C-index) for ranking accuracy, Brier score for prediction error, and time-dependent AUC for assessing discrimination at specific time points. These metrics enable rigorous evaluation of survival model performance on censored data.
Can scikit-survival estimate non-parametric survival curves?
Yes, scikit-survival supports non-parametric survival curve estimation through Kaplan-Meier and Nelson-Aalen estimators. It also handles competing risks analysis, allowing you to model scenarios where multiple distinct event types can occur and may prevent observation of other events.
How do I get started with scikit-survival for time to event modeling?
scikit-survival provides tutorials and documentation for time-to-event modeling workflows. Start by preprocessing your censored dataset, choose a model type (Cox, ensemble, or SVM), train it on your data, then evaluate using concordance index or Brier score. The library integrates with scikit-learn conventions for familiar usage patterns.
SKILL.md
rendered from the published skill — quoted content, verbatim
scikit-survival: Survival Analysis in Python
Overview
scikit-survival is a Python library for survival analysis built on top of scikit-learn. It provides specialized tools for time-to-event analysis, handling the unique challenge of censored data where some observations are only partially known.
Survival analysis aims to establish connections between covariates and the time of an event, accounting for censored records (particularly right-censored data from studies where participants don't experience events during observation periods).
When to Use This Skill
Use this skill when:
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 7 files
backend/cli/skills/biology/scikit-survival/SKILL.md
backend/cli/skills/biology/scikit-survival/references/competing-risks.md
backend/cli/skills/biology/scikit-survival/references/cox-models.md
backend/cli/skills/biology/scikit-survival/references/data-handling.md
backend/cli/skills/biology/scikit-survival/references/ensemble-models.md
backend/cli/skills/biology/scikit-survival/references/evaluation-metrics.md
backend/cli/skills/biology/scikit-survival/references/svm-models.md