Cox survival cindex

From XuShuwenn/RedAct · View interactive version

Cox survival cindex is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Fit a Cox proportional hazards model with scikit-survival on tabular survival data and report a robust, verified concordance index.

How to use this skill

Skill file

Cox PH Concordance Index from CSV (scikit-survival)

Reliable workflow to fit a Cox proportional hazards (CPH) model using scikit-survival on a CSV dataset and compute the concordance index (C-index). Emphasizes schema validation, numerically stable fitting, and output verification.

When to Use

Use this skill when the user asks to:

Core Workflow

  1. Load and validate input data
  1. Prepare survival target and features
  1. Fit a stable Cox PH model
  1. Compute the concordance index
  1. Write the required output

"Concordance index: X.XXXX"

Verification

Perform these checks to ensure correctness and task compliance:

Common Pitfalls

Success Criteria

Optional Script Usage

The included helper script automates the full workflow with robust fallbacks.

Example:

Optional flags:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.