RuntimeWarning:在true_divide中遇到无效的文本分类值

时间:2019-02-18 21:35:18

标签: python numpy

我正在计算数组给出的概率分布并遇到此错误

C:\Users\malsa876\PycharmProjects\ReqPrioritization\Semi_EM_NB.py:241: RuntimeWarning: invalid value encountered in true_divide
  proba_array = np.true_divide(proba_array_unormalized, np.sum(proba_array_unormalized, axis=1)[:, np.newaxis])

total likelihood: -1053924.5147916302
total likelihood: -1054903.0540410974
total likelihood: -1058234.6120591105
total likelihood: -1059247.4669063047
total likelihood: -1063169.2473161623
total likelihood: -1068871.708044591
total likelihood: -1076802.3646161058
total likelihood: -1084315.921876911
total likelihood: -1086195.0970660546
total likelihood: -1087372.3810061032
total likelihood: -1087940.417901436
total likelihood: -1087940.417901436
stopping time

enter image description here

0 个答案:

没有答案