-
-
Save amankharwal/46587fca3125f8cee2e0c3cc4e1c7cbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.models import Sequential | |
from keras.layers import Dense, Activation | |
model = Sequential() | |
model.add(Dense(64, input_dim=2)) | |
model.add(Activation("relu")) | |
model.add(Dense(32)) | |
model.add(Activation("relu")) | |
model.add(Dense(16)) | |
model.add(Activation("relu")) | |
model.add(Dense(2)) | |
model.add(Activation("softmax")) | |
model.compile(optimizer="adam", loss="categorical_crossentropy", metrics=["accuracy"]) | |
model.summary() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment