Last active
February 10, 2018 15:29
-
-
Save NMZivkovic/be9b305c66e53d136f89c603e414fb4a 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
# Creating a model | |
model = Sequential() | |
model.add(Dense(10, input_dim=4, activation='relu')) | |
model.add(Dense(10, activation='relu')) | |
model.add(Dense(3, activation='softmax')) | |
# Compiling model | |
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment