LQF_Machine_Learning_E…
LQF Machine Learning Expert Guide - Routed skill for ML/Statistical Modeling with Critical Discussion Mode. Triggers on: machine…
Comprehensive toolkit for survival analysis and time-to-event modeling in Python using scikit-survival. Use this skill when working with censored survival data, performing time-to-event analysis, fitting Cox models, Random Survival Forests, Gradient Boosting models, or Survival
Claude Code
$ npx -y skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival --agent claude-code
Codex
$ npx skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival -a codex -y
Cursor
$ npx skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival -a cursor -y
Gemini CLI
$ npx skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival -a gemini-cli -y
GitHub Copilot
$ npx skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival -a github-copilot -y
OpenCode
$ npx skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival -a opencode -y
Windsurf
$ npx skills add foryourhealth111-pixel/Vibe-Skills --skill scikit-survival -a windsurf -y
name: scikit-survival description: Comprehensive toolkit for survival analysis and time-to-event modeling in Python using scikit-survival. Use this skill when working with censored survival data, performing time-to-event analysis, fitting Cox models, Random Survival Forests, Gradient Boosting models, or Survival SVMs, evaluating survival predictions with concordance index or Brier score, handling competing risks, or implementing any survival analysis workflow with the scikit-survival library.
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).
Use this skill when:
scikit-survival provides multiple model families, each suited for different scenarios:
**Use for**: Standard survival analysis with interpretable coefficients
**See**: `references/cox-models.md` for detailed guidance on Cox models, regularization, and interpretation
**Use for**: High predictive performance with complex non-linear relationships
**See**: `references/ensemble-models.md` for comprehensive guidance on ensemble methods, hyperparameter tuning, and when to use each model
**Use for**: Medium-sized datasets with margin-based learning
**See**: `references/svm-models.md` for detailed SVM guidance, kernel selection, and hyperparameter tuning
Start ├─ High-dimensional data (p > n)? │ ├─ Yes → CoxnetSurvivalAnalysis (elastic net) │ └─ No → Continue │ ├─ Need interpretable coefficients? │ ├─ Yes → CoxPHSurvivalAnalysis or ComponentwiseGradientBoostingSurvivalAnalysis │ └─ No → Continue │ ├─ Complex non-linear relationships expected? │ ├─ Yes │ │ ├─ Large dataset (n > 1000) → GradientBoostingSurvivalAnalysis │ │ ├─ Medium dataset → RandomSurvivalForest or FastKernelSurvivalSVM │ │ └─ Small dataset → RandomSurvivalForest │ └─ No → CoxPHSurvivalAnalysis or FastSurvivalSVM │ └─ For maximum performance → Try multiple models and compare
Before modeling, properly prepare survival data:
from sksurv.util import Surv
# From separate arrays
y = Surv.from_arrays(event=event_array, time=time_array)
# From DataFrame
y = Surv.from_dataframe('event', 'time', df)1. **Handle missing values**: Imputation strategies for features 2. **Encode categorical variables**: One-hot encoding or label encoding 3. **Standardize features**: Critical for SVMs and regularized Cox models 4. **Validate data quality**: Check for negative times, sufficient events per feature 5. **Train-test split**: Maintain similar censoring rates across splits
**See**: `references/data-handling.md` for complete preprocessing workflows, data validation, and best practices
Proper evaluation is critical for survival models. Use appropriate metrics that account for censoring:
Primary metric for ranking/discrimination:
from sksurv.metrics import concordance_index_censored, concordance_index_ipcw # Harrell's C-index c_harrell = concordance_index_censored(y_test['event'], y_test['time'], risk_scores)[0] # Uno's C-index (recommended) c_uno = concordance_index_ipcw(y_train, y_test, risk_scores)[0]
Evaluate discrimination at specific time points:
from sksurv.metrics import cumulative_dynamic_auc times = [365, 730, 1095] # 1, 2, 3 years auc, mean_auc = cumulative_dynamic_auc(y_train, y_test, risk_scores, times)
Assess both discrimination and calibration:
from sksurv.metrics import integrated_brier_score ibs = integrated_brier_score(y_train, y_test, survival_functions, times)
**See**: `references/evaluation-metrics.md` for comprehensive evaluation guidance, metric selection, and
Intelligent Skill routing and workflow orchestration for AI agents — +21.12 pp reward, −29.6% tokens on SkillsBench with DeepSeekV4Flash-VE.
LQF Machine Learning Expert Guide - Routed skill for ML/Statistical Modeling with Critical Discussion Mode. Triggers on: machine…
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental…
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting,…
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request…
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+…
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.…
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…