自动将类似 Tensorboard 的损失图保存到图像文件中 [英] Automatically save Tensorboard-like plot of loss to image file
问题描述
我目前正在尝试使用 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:
Check
Show data download links
;You can see a download symbol on the bottom of the figure;
See the yellow marks in the figure if you can't locate them.
这篇关于自动将类似 Tensorboard 的损失图保存到图像文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!