Created
April 10, 2018 15:31
-
-
Save hsiaoer/56b989cf78060e93dbdef1de1efb5ef4 to your computer and use it in GitHub Desktop.
mwitiderrick-intro-make-classifier
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
def make_classifier(): | |
classifier = Sequential() | |
classiifier.add(Dense(3, kernel_initializer = ‘uniform’, activation = ‘relu’, input_dim=5)) | |
classiifier.add(Dense(3, kernel_initializer = ‘uniform’, activation = ‘relu’)) | |
classifier.add(Dense(1, kernel_initializer = ‘uniform’, activation = ‘sigmoid’)) | |
classifier.compile(optimizer= ‘adam’,loss = ‘binary_crossentropy’,metrics = [‘accuracy’]) | |
return classifier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment