test_funcs.py 文件源码

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

项目:evalset 作者: sigopt 项目源码 文件源码
def __init__(self, func, noise_type, level, verify=True):
        assert isinstance(func, TestFunction)
        if level <= 0:
            raise ValueError('Noise level must be positive, level={0}'.format(level))
        super(Noisifier, self).__init__(func.dim, verify)
        self.bounds, self.min_loc, self.fmax, self.fmin = func.bounds, func.min_loc, func.fmax, func.fmin
        self.type = noise_type
        self.level = level
        self.func = func
        self.classifiers = list(set(self.classifiers) | set(['noisy']))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号