Skip to content

Instantly share code, notes, and snippets.

@jeetaf
Last active June 29, 2021 11:25
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 jeetaf/a0f32d45690d3142e503372e1c194ed3 to your computer and use it in GitHub Desktop.
Save jeetaf/a0f32d45690d3142e503372e1c194ed3 to your computer and use it in GitHub Desktop.
epochs = 50
model = Sequential()
model.add(Conv1D(filters=32, kernel_size=2, activation='relu', input_shape = (30,1)))
model.add(BatchNormalization())
model.add(Dropout(0.2))
model.add(Conv1D(filters=64, kernel_size=2, activation='relu'))
model.add(BatchNormalization())
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(64, activation='relu'))
model.add(Dropout(0.5))
model.add(Dense(1, activation='sigmoid'))
model.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment