1from keras.models import Sequential
2from keras.layers import Dense
3from keras.utils.vis_utils import plot_model
4model = Sequential()
5model.add(Dense(2, input_dim=1, activation='relu'))
6model.add(Dense(1, activation='sigmoid'))
7plot_model(model, to_file='model_plot.png', show_shapes=True, show_layer_names=True)
8
1from keras.models import Sequential
2from keras.layers import Dense
3from keras.utils.vis_utils import plot_model
4
5model = Sequential()
6model.add(Dense(2, input_dim=1, activation='relu'))
7model.add(Dense(1, activation='sigmoid'))
8plot_model(model, to_file='model_plot.png', show_shapes=True, show_layer_names=True)