AttributeError:模块“tensorflow\u docs”没有属性“plots”

2024-06-26 00:23:14 发布

您现在位置:Python中文网/ 问答频道 /正文

this tutorial by Google中运行代码时出现一些错误。 当我运行以下代码时:

plotter = tfdocs.plots.HistoryPlotter(metric = 'binary_crossentropy', smoothing_std=10)
plotter.plot(size_histories)
plt.ylim([0.5, 0.7])

它给了我以下错误:

AttributeError: module 'tensorflow_docs' has no attribute 'plots'

如何解决此问题


Tags: 代码by错误googlethismetrictutorialstd