run.py 文件源码

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

项目:opminreplicability 作者: epochx 项目源码 文件源码
def __iter__(self):
        """Iterate over the points in the grid.

        Returns
        -------
        params : iterator over dict of string to any
            Yields dictionaries mapping each estimator parameter to one of its
            allowed values.
        """
        for p in self.param_grid:
            # Always sort the keys of a dictionary, for reproducibility
            items = sorted(p.items())
            if not items:
                yield {}
            else:
                keys, values = zip(*items)
                for v in product(*values):
                    params = dict(zip(keys, v))
                    yield params
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号