scikit-survival
scikit-survival 0.28.0 enables you to construct, tune, and assess survival workflows for right-censored outcomes using Cox models, ensemble methods, and kernel-based approaches. The skill enforces leakage-safe data splits, preprocessing pipelines, and proper metric selection—discrimination, calibration, and prediction error—while handling competing risks through nonparametric cumulative incidence.
scikit-survival lets you build and evaluate right-censored survival models using Cox regression, forests, boosting, and SVMs with leakage-safe pipelines.
AI-generated summary based on this skill's SKILL.md
Install
K-Dense-AI/scientific-agent-skills/scikit-survival · repository language: Python
git clone https://github.com/K-Dense-AI/scientific-agent-skills
cp -r scientific-agent-skills/skills/scikit-survival ~/.claude/skills/scikit-survivalFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What survival analysis models does scikit-survival support?
scikit-survival 0.28.0 enables you to build and evaluate right-censored survival models using Cox proportional hazards, random survival forests, gradient boosting survival analysis, and Cox SVM. Each approach handles censoring natively and integrates with scikit-learn pipelines for leakage-safe preprocessing and nested model selection workflows.
How do you prevent data leakage in survival preprocessing?
scikit-survival enforces leakage-safe data splits and preprocessing pipelines to prevent information from the test set influencing training. Use nested cross-validation for hyperparameter tuning and ensure all transformations—imputation, scaling, feature selection—are fit only on training folds before applying to held-out data.
What censoring-aware evaluation metrics does scikit-survival compute?
scikit-survival 0.28.0 computes discrimination metrics like IPCW concordance index and time-dependent AUC, calibration assessments, and prediction error measures such as Brier score. These metrics account for right censoring and competing risks, enabling rigorous model comparison on survival outcomes.
How do you handle competing risks and estimate cumulative incidence?
scikit-survival handles competing risks by computing cumulative incidence functions for each event type nonparametrically. This allows you to estimate the probability of a specific event occurring before competing events, essential for realistic risk prediction in multi-event survival settings.
Can scikit-survival integrate with scikit-learn pipelines for survival prediction?
Yes. scikit-survival models follow scikit-learn's estimator interface and work seamlessly in Pipeline objects. This integration enables you to chain preprocessing, feature engineering, and survival model fitting while maintaining leakage-free cross-validation and hyperparameter tuning.
Does scikit-survival offer command-line tools for survival workflows?
scikit-survival 0.28.0 includes local CLI tools for survival data validation and reporting, supporting automated workflows for preprocessing checks, model evaluation, and result generation outside interactive notebooks.
SKILL.md
rendered from the published skill — quoted content, verbatim
scikit-survival
Scope
Use this skill for scikit-survival 0.28.0 workflows involving:
- right-censored structured outcomes;
- Cox PH, Coxnet, IPC ridge, survival trees, forests, boosting, and SVMs;
- discrimination, prediction error, calibration-oriented checks, and time-dependent prediction;
- nonparametric cumulative incidence with competing risks;
- scikit-learn pipelines, nested model selection, and reproducible reports.
scikit-survival primarily models right-censored outcomes. Its built-in competing-risk support is nonparametric cumulative incidence; it does not provide Fine-Gray regression. Do not present model output as clinical advice, causal evidence,
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 13 files
skills/scikit-survival/SKILL.md
skills/scikit-survival/references/competing-risks.md
skills/scikit-survival/references/cox-models.md
skills/scikit-survival/references/data-handling.md
skills/scikit-survival/references/ensemble-models.md
skills/scikit-survival/references/evaluation-metrics.md
skills/scikit-survival/references/svm-models.md
skills/scikit-survival/scripts/_common.py
skills/scikit-survival/scripts/competing_risk_cif.py
skills/scikit-survival/scripts/evaluate_survival_metrics.py
skills/scikit-survival/scripts/model_report.py
skills/scikit-survival/scripts/train_survival_model.py
skills/scikit-survival/scripts/validate_survival_csv.py