test_space.py 文件源码

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

项目:scikit-optimize 作者: scikit-optimize 项目源码 文件源码
def test_real_bounds():
    # should give same answer as using check_limits() but this is easier
    # to read
    a = Real(1., 2.1)
    assert_false(0.99 in a)
    assert_true(1. in a)
    assert_true(2.09 in a)
    assert_true(2.1 in a)
    assert_false(np.nextafter(2.1, 3.) in a)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号