Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save this-is-richard/3d94d06c4000b5187ecce69ad7fcd4d2 to your computer and use it in GitHub Desktop.

Select an option

Save this-is-richard/3d94d06c4000b5187ecce69ad7fcd4d2 to your computer and use it in GitHub Desktop.
model = models.Sequential()
model.add(layers.Dense(32, activation='relu', input_shape=(num_input_features,)))
model.add(layers.Dense(32, activation='relu'))
model.add(layers.Dense(num_classes, activation='softmax'))
model.compile(optimizer='rmsprop', loss='categorical_crossentropy')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment