How can a neural network architecture be visualized with Keras?
问题 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 = 'model-301.hdf5' # Load network with open(model_file_path) as f: yaml_string = f.read() model = model_from_yaml(yaml_string) model.load_weights(weights_file_path) model.compile(optimizer='adagrad', loss='binary_crossentropy') # Visualize from keras.utils.visualize_util import plot However, this gives an error: Traceback (most recent call