自动将类似 Tensorboard 的损失图保存到图像文件中 [英] Automatically save Tensorboard-like plot of loss to image file

查看:49
本文介绍了自动将类似 Tensorboard 的损失图保存到图像文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用 tensorflow 预制估计器 (tf.estimator.DNNRegressor) 来预测粒子的运动.

我想将平均损失图的图像(例如一个张量板显示)保存到每个模型的文件夹中.

Tensorboard 非常适合在训练期间监控这一点,但我想保存图像以供将来参考(例如,直观地比较不同的方法)

有没有简单的方法可以做到这一点?我可以保存不同时间的评估结果并使用matplotlib,但是我还没有找到任何关于如何从regressor.train 方法中获取损失的信息.

解决方案

是的,目前,您可以将 loss/other_metric 历史记录的 .svg 下载为

I am currently trying to predict the movement of a particle using a tensorflow premade Estimator (tf.estimator.DNNRegressor).

I want to save an image of the average loss plot, like the one tensorboard displays, into each model's folder.

Tensorboard is pretty good to monitor this during training, but I want to save an image for future reference (e.g. comparing different approaches visually)

Is there an easy way to do this? I could save the results of the evaluation at different times and use matplotlib, but I haven't found anything on how to get the loss from the regressor.train method.

解决方案

Yes, currently, you can download the .svg of loss/other_metric history as @Jdehesa pointed out in the comment:

  1. Check Show data download links;

  2. You can see a download symbol on the bottom of the figure;

  3. See the yellow marks in the figure if you can't locate them.

这篇关于自动将类似 Tensorboard 的损失图保存到图像文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆