How can a neural network architecture be visualized with Keras?

后端 未结 2 693
栀梦
栀梦 2021-02-15 14:16

I tried the following:

#!/usr/bin/env python

import keras
from keras.models import model_from_yaml

model_file_path = \'model-301.yaml\'
weights_file_path = \'m         


        
相关标签:
2条回答
  • 2021-02-15 14:36

    If you have not already installed pydot python package - try to install it. If you have pydot reinstallation should help with your problem.

    0 讨论(0)
  • 2021-02-15 14:45

    The problem is also referenced on the issues page of the keras project. You need to install a version of pydot <= 1.1.0 because the function find_graphviz was removed in version 1.2.0. Alternatively you could install pydot-ng instead, which is recommended by the keras developers.

    0 讨论(0)
提交回复
热议问题