reporter.py 文件源码

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

项目:postlearn 作者: TomAugspurger 项目源码 文件源码
def plot_grid_scores(model, x, y=None, hue=None, row=None, col=None, col_wrap=None,
                     **kwargs):
    '''
    Wrapper around seaborn.factorplot.

    Parameters
    ----------
    model : Pipeline or Estimator
    x, hue, row, col : str
        parameters grid searched over
    y : str
        the target of interest, default `'mean_'`

    Returns
    -------
    g : seaborn.FacetGrid
    '''
    scores = unpack_grid_scores(model)
    y = y or 'mean_'
    return sns.factorplot(x=x, y=y, hue=hue, row=row, col=col, data=scores,
                          col_wrap=col_wrap, **kwargs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号