Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created October 10, 2020 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/5b0122f21ef04762e86e4344a86c134d to your computer and use it in GitHub Desktop.
Save amankharwal/5b0122f21ef04762e86e4344a86c134d to your computer and use it in GitHub Desktop.
from keras.models import Sequential
from keras.layers import Dense
from ann_visualizer.visualize import ann_viz
model = Sequential()
model.add(Dense(units=4,activation='relu',
input_dim=7))
model.add(Dense(units=4,activation='sigmoid'))
model.add(Dense(units=2,activation='relu'))
ann_viz(model, view=True, filename="example", title="Example ANN")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment