Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created August 11, 2019 19:41
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 NMZivkovic/6ea070feb6477c875634b772c0b2ac1f to your computer and use it in GitHub Desktop.
Save NMZivkovic/6ea070feb6477c875634b772c0b2ac1f to your computer and use it in GitHub Desktop.
import keras.layers as L
import keras.models as M
my_input = L.Input(shape=(100,))
intermediate = L.Dense(10, activation='relu')(my_input)
my_output = L.Dense(1, activation='softmax')(intermediate)
model = M.Model(input=my_input, output=my_output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment