Preface
Keras provides a functional plot_model of neural network visualization, and can store the visualization results locally. Use the following methods:
From keras.utils import Plot_model
Plot_model (Encoder_model, to_file= ' encomodel.png ', show_shapes=true)
The author encountered such a problem in the course of using
runtimeerror:failed to import Pydot. Must install Pydot and Graphviz for Pydotprint to work
I see this error, I would like to directly on the PIP install Pydot and pip install Graphviz should be OK, but after the installation is still an error.
Later found that the cause of the error is not Pydot, but because Graphviz need to install binary execution file, so also need to go to the official website next Graphviz installation package installation steps
Windows users directly to the official website http://www.graphviz.org/, find the appropriate installation package download after installation can be.
Using the Homebrew command to install between Mac users, enter the following command in the terminal:
Brew Install Graphviz
After the installation is complete, the normal use of
If you don't have a classmate who has homebrew installed, you can refer to the following for installation:
Homebrew, Brew, is the software package management tool on Mac OS X, can easily install software or uninstall software in Mac, it can be said that homebrew is apt-get, yum artifact under Mac.
Homebrew installation is very simple, open the terminal copy, paste the following command, enter
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"