如何计算一个numpy ndarray的熵率?

时间:2019-03-21 16:53:21

标签: python numpy

对于随机变量序列,首先将其转换为numpy ndarray。然后我要计算entropy rate?有好的方法吗?不是熵。

此外,模型生成的变量是随机的。简单来说,我创建一个列表,然后将其转换为numpy ndarray。

import numpy as np
list_num = [4,6,2,8,1,0,10,2,9]
a = np.asarray(list_num)
a.shape
#compute the extropy rate of a

0 个答案:

没有答案