TensorBoard - 在同一张图上绘制训练和验证损失? [英] TensorBoard - Plot training and validation losses on the same graph?

查看:107
本文介绍了TensorBoard - 在同一张图上绘制训练和验证损失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在同一图上同时绘制训练损失和验证损失?

Is there a way to plot both the training losses and validation losses on the same graph?

很容易为它们中的每一个单独提供两个单独的标量摘要,但这会将它们放在单独的图形上.如果两者都显示在同一张图中,则更容易看出它们之间的差距以及它们是否由于过度拟合而开始发散.

It's easy to have two separate scalar summaries for each of them individually, but this puts them on separate graphs. If both are displayed in the same graph it's much easier to see the gap between them and whether or not they have begin to diverge due to overfitting.

有没有内置的方法来做到这一点?如果没有,解决方法?非常感谢!

Is there a built in way to do this? If not, a work around way? Thank you much!

推荐答案

我一直在做的解决方法是使用两个 SummaryWriter 分别用于训练集和交叉验证集的不同日志目录.你会看到这样的:

The work-around I have been doing is to use two SummaryWriter with different log dir for training set and cross-validation set respectively. And you will see something like this:

这篇关于TensorBoard - 在同一张图上绘制训练和验证损失?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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