test_funcs.py 文件源码

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

项目:evalset 作者: sigopt 项目源码 文件源码
def __init__(self, dim=3):
        assert dim == 3
        centers = numpy.array([
            [.1, .8, .3],
        ])
        e_mat = numpy.array([
            [5, 5, 5],
        ])
        coefs = numpy.array([-5])

        def kernel(x):
            r2 = self.dist_sq(x, centers, e_mat)
            return numpy.exp(-r2)

        super(McCourt14, self).__init__(dim, kernel, e_mat, coefs, centers)
        self.min_loc = [.1, .8, .3]
        self.fmin = -5
        self.fmax = 0.00030641748
        self.classifiers = ['boring', 'unimodal']
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号