pred_score <- c(11.645667, 6.809667, 8.220667, 8.097667, 12.434333) time <- c(60, 30,…
- User
pred_score <- c(11.645667, 6.809667, 8.220667, 8.097667, 12.434333) time <- c(60, 30, 45, 24, 60) event <- c(0, 1, 1, 1, 0)用这组数据算下C-index
Assistant
我来帮您计算这组数据的C-index(一致性指数)。
C-index用于评估生存分析模型的预测能力,它衡量的是模型预测的风险评分与实际生存时间的一致性。
对于您的数据:
- pred_score: 预测风险评分
- time: 生存时间
- event: 事件状态(1=发生事件,0=删失)
计算步骤:
-
首先找出所有可比较的配对:
- 配对要求:至少有一个发生事件(event=1)
- 且事件发生时间不同
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.