Created
December 25, 2017 10:47
-
-
Save sagarhowal/dc4c656995f11fbcf013d41c44caea2d to your computer and use it in GitHub Desktop.
ANN Design and Compiling
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
# Adding the input layer and the first hidden layer | |
classifier.add(Dense(units = 16, kernel_initializer = 'uniform', activation = 'relu', input_dim = 30)) | |
# Adding the second hidden layer | |
classifier.add(Dense(units = 16, kernel_initializer = 'uniform', activation = 'relu')) | |
# Adding the output layer | |
classifier.add(Dense(units = 1, kernel_initializer = 'uniform', activation = 'sigmoid')) | |
# Compiling the ANN | |
classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment