Last active
August 12, 2020 17:27
-
-
Save NimishMishra/558d68f410745c9bbae4fa4b8a0d63be 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
inputs = Input(...) | |
layer_2 = Dense(4, ...)(inputs) | |
layer_3 = Linear(name= "layer_3")(layer_2) | |
layer_4 = Linear(name="layer_4")(layer_3) | |
layer_5 = Linear(name="layer_5")(layer_4) | |
layer_6 = Linear(name="layer_6")(layer_5) | |
output = Dense(...,activation='softmax')(layer_6) | |
model = Model(inputs=inputs, outputs=output) | |
# OR | |
model = Sequential() | |
model.add(Input(...)) | |
model.add(Dense(4, ...)) | |
model.add(Linear(name= "layer_3")) | |
model.add(Linear(name= "layer_4")) | |
model.add(Linear(name= "layer_5")) | |
model.add(Linear(name= "layer_6")) | |
model.add(Dense(...,activation='softmax')) | |
model.compile(..., run_eagerly=True) | |
model.fit(...) | |
model.evaluate(...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment