plot.py 文件源码

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

项目:adversarial-autoencoder 作者: musyoku 项目源码 文件源码
def scatter_z(z_batch, filename="z"):
    if dir is None:
        raise Exception()
    try:
        os.mkdir(dir)
    except:
        pass
    fig = pylab.gcf()
    fig.set_size_inches(20.0, 16.0)
    pylab.clf()
    for n in range(z_batch.shape[0]):
        result = pylab.scatter(z_batch[n, 0], z_batch[n, 1], s=40, marker="o", edgecolors='none')
    pylab.xlabel("z1")
    pylab.ylabel("z2")
    pylab.savefig(filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号