[英]Why is the tensorflow version I use in my notebook different from the version I use in my environment?
[英]Can I use histogram visualitation for tensorflow in my python notebook?
我想使用使用 Tensorflow 的图表(见图),但在 示例中,我绘制了 Tensorfow 板上的直方图。 如何使用库在我自己的笔记本中绘图?
import tensorflow as tf
tf.plothistogram(...)
注意:我已经在我的笔记本中安装了 Tensorflow 库
不幸的是,构建直方图等的代码是 Tensorboard 的一部分,而不是 Tensorflow。 您可以使用matplotlib.pyplot 之类的东西自己编写代码,但您需要做一些工作。
您需要在训练期间手动获取您感兴趣的值并存储它们,然后在最后绘制它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.