pipeline.py 文件源码

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

项目:syracuse_public 作者: dssg 项目源码 文件源码
def plot_predict_proba(y_pred_probs, clf, pdf=None):
    """Plots the predict proba distribution"""
    fig, ax = plt.subplots(1, figsize=(18, 8))
    sns.set_style("white")
    sns.set_context("poster",
                    font_scale=2.25,
                    rc={"lines.linewidth": 1.25, "lines.markersize": 8})
    sns.distplot(y_pred_probs)
    plt.xlabel('predict_proba')
    plt.ylabel('frequency')
    plt.title(clf + ' proba')
    if pdf:
        pdf.savefig()
        plt.close()
    else:
        plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号