Skip to content

Instantly share code, notes, and snippets.

@arseniyturin
Last active November 10, 2019 01:49
Show Gist options
  • Save arseniyturin/0f550f54f1262ca9ee9926421929d06d to your computer and use it in GitHub Desktop.
Save arseniyturin/0f550f54f1262ca9ee9926421929d06d to your computer and use it in GitHub Desktop.
model = Sequential()
model.add(Conv1D(filters=500, kernel_size=10, activation='relu', input_shape=(n_steps, n_features)))
model.add(MaxPooling1D(pool_size=10))
model.add(Flatten())
model.add(Dense(500, activation='relu'))
model.add(Dense(100, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
model.compile(optimizer='adam', loss='mse')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment