假设我有以下数据集:
headache diabetes pressure case
patient 1 0 1 1 sick
........ . . . .
......... . . . .
patient n 0 0 0 not sick
如何在python中计算这三个属性的后验概率和条件概率? 我使用了以下代码:
我有个错误:
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
TypeError: '(slice(None, None, None), 0)' is an invalid key
目前没有回答
相关问题 更多 >
编程相关推荐