Skip to content

Instantly share code, notes, and snippets.

@staricon12
Created July 13, 2021 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staricon12/ed14682600a98718baa39adb930edcaa to your computer and use it in GitHub Desktop.
Save staricon12/ed14682600a98718baa39adb930edcaa to your computer and use it in GitHub Desktop.
# 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