摘要: ython计算KL散度import numpy as np import scipy.stats x = [np.random.randint(1,11) for i in range(10)] print(x) print(np.sum(x)) px = x/np.sum(x)#归一化 print(px) y = [np.random.randint(1, 11) for i in ran... 阅读全文
posted @ 2018-01-08 10:18 白菜hxj 阅读(3066) 评论(0) 推荐(0) 编辑