test_helpers.py 文件源码

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

项目:ChainConsumer 作者: Samreay 项目源码 文件源码
def test_extents_weighted():
    xs = np.random.uniform(low=-4, high=4, size=100000)
    weights = norm.pdf(xs)
    low, high = get_extents(xs, weights)
    threshold = 0.5
    assert np.abs(low + 4) < threshold
    assert np.abs(high - 4) < threshold
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号