plots.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:information_bottleneck_implementation 作者: AmirErez 项目源码 文件源码
def get_hist_density(data, nbins=25):
    y, x = np.histogram(data, nbins)
    x = x[1:] - 0.5*(x[1] - x[0])
    p = y / trapz(y, x)
    return [p, x]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号