Advertisement

keras模型可视化pydot_ng和graphviz的安装与配置(Windows10)

阅读量:

通过调用keras中提供的plot_model函数,可对模型结构进行可视化呈现

复制代码
 from keras.utils import plot_model

    
 plot_model(model, to_file='model.png')
    
    
    
    

执行过程出现异常情况

复制代码
 ---------------------------------------------------------------------------

    
 ImportError                               Traceback (most recent call last)
    
 <ipython-input-40-762315582316> in <module>
    
      43 
    
      44 # Plot model graph
    
 ---> 45 plot_model(model, show_shapes=True, show_layer_names=True, to_file='model.png')
    
      46 Image(retina=True, filename='model.png')
    
  
    
 E:\Software

全部评论 (0)

还没有任何评论哟~