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

查看:853
本文介绍了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天全站免登陆