Skip to content

Instantly share code, notes, and snippets.

@andrea-dagostino
Created November 21, 2022 19:09
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 andrea-dagostino/55449684c292c0e3473731d37f835a37 to your computer and use it in GitHub Desktop.
Save andrea-dagostino/55449684c292c0e3473731d37f835a37 to your computer and use it in GitHub Desktop.
tf_seq
model = keras.Sequential(
[
layers.Dense(256, input_dim=4, activation="relu", name="input")
layers.Dense(128, activation="relu", name="layer1"),
layers.Dense(64, activation="relu", name="layer2"),
# ...
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment