-
-
Save staricon12/ed14682600a98718baa39adb930edcaa 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
# importing libraries | |
import keras | |
from keras.models import Sequential | |
from keras.layers import Dense | |
from keras.layers import Dropout | |
# creating the model | |
model = Sequential() | |
model.add(Dense(16, input_dim=20, activation='relu')) | |
model.add(Dropout(0.3)) | |
model.add(Dense(12, activation='relu')) | |
model.add(Dropout(0.3)) | |
model.add(Dense(4, activation='softmax')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment