根据医生的说法
它返回生存函数的概率数组。在绘制此图时,x轴是哪个时间框架?
在docs页面上给出了一个绘图示例,如下所示
for fn in surv_funcs:
plt.step(fn.x, fn(fn.x), where="post")
plt.ylim(0, 1)
plt.show() 这部分描述了什么(plt.step(fn.x, fn(fn.x), where="post"))?
发布于 2022-08-17 14:40:11
for fn in surv_funcs:
plt.step(fn.x, fn(fn.x), where="post")
plt.ylim(0, 1)
plt.show() 这适用于CoxPH或任何假设PH的生存模型。predict_survival_function()在CoxPH中返回的数组将是一个具有X和Y值的数组,用于随机森林使用:
for i, s in enumerate(surv_funcs):
plt.step(rsf_estimator.event_times_, s, where="post", label=str(i))
plt.ylabel("survival probabilities")
plt.xlabel("time")
plt.title("Predicted survival curve using Random Forest ")
plt.legend()
plt.grid(True)https://stackoverflow.com/questions/73387627
复制相似问题