Created
January 7, 2019 12:53
-
-
Save nbortolotti/300077fb770a2d93de22c8ff2ac8d1a4 to your computer and use it in GitHub Desktop.
Keras Model definition
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
model = tf.keras.Sequential([ | |
tf.keras.layers.Dense(16, input_dim=4), | |
tf.keras.layers.Dense(3, activation=tf.nn.softmax), | |
]) | |
model.compile(loss='categorical_crossentropy', | |
optimizer='sgd', | |
metrics=['accuracy']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment