keras.utils.vis_utils模块提供了画出Keras模型的函数(利用graphviz)
from keras.utils import plot_model
plot_model(model, to_file='model.png')
安装如下模块:
pip install pydot-ng
pip install graphviz
pip install pydot
重启Anaconda 依然报错:
在OSError: pydot failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH.
需配置环境变量, stackoverflow中查到解决方法:
conda install python-graphviz
利用 conda 解决依赖问题。
原链接:
添加链接描述
478

被折叠的 条评论
为什么被折叠?



