对不起,我是个新手,但我尝试运行一些代码,得到退出代码0(没有错误),但我没有看到任何输出(在Python控制台中)我正在使用带有lifelines包的PyCharm Python3.7
from lifelines import KaplanMeierFitter
durations = [5,6,6,2.5,4,4]
event_observed = [1, 0, 0, 1, 1, 1]
## create a kmf object
kmf = KaplanMeierFitter()
## Fit the data into the model
kmf.fit(durations, event_observed,label='Kaplan Meier Estimate')
## Create an estimate
kmf.plot(ci_show=False) 发布于 2020-04-19 10:59:41
设法弄清楚了!所需的plt.show()
https://stackoverflow.com/questions/61298850
复制相似问题