plotting.py 文件源码

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

项目:fang 作者: rgrosse 项目源码 文件源码
def show_comparison(expt_base, algorithms, subset, ymin=None, ymax=None):
    expt_names = ['/'.join([expt_base, alg]) for alg in algorithms]
    labels = [ALGORITHM_LABELS[alg] for alg in algorithms]
    plot_log_probs(expt_names, subset=subset, labels=labels)
    pylab.xlim(1e1, 1e5)
    if ymin is None:
        ymin, ymax = get_ylim(expt_base)
    pylab.ylim(ymin, ymax)
    pylab.xlabel('Wall clock time (seconds)', fontsize='x-large')
    pylab.ylabel('{} log-probabilities'.format({'train': 'Training', 'test': 'Test'}[subset]),
                 fontsize='x-large')
    pylab.tight_layout()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号