samplers.py 文件源码

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

项目:Tizona 作者: emcastillo 项目源码 文件源码
def __init__(self, experiment, args, job_module_config):
        super(self.__class__, self).__init__(experiment, args, job_module_config)
        # pre-format the experiment dict
        # Sklearn needs all the params to be in a  list for the grid to work
        # properly
        for param in experiment['params']:
            if type(experiment['params'][param]) is not list:
                experiment['params'][param] = [experiment['params'][param] ]

        self.searcher = ParameterGrid(experiment['params'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号