Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created May 6, 2020 02:08
Show Gist options
  • Save DanielDaCosta/b9d37739093e6f6678c05dc9766659b6 to your computer and use it in GitHub Desktop.
Save DanielDaCosta/b9d37739093e6f6678c05dc9766659b6 to your computer and use it in GitHub Desktop.
Model Architecture Keras
main_input = Input(shape=(MAXLEN,), dtype='int32', name='main_input')
x = Embedding(input_dim=vocabulary_size, output_dim=50, input_length=MAXLEN)(main_input)
x = Dropout(0.3)(x)
x = Conv1D(64, 5, activation='relu')(x)
x = MaxPooling1D(pool_size=4)(x)
x = LSTM(100)(x)
x = Dropout(0.3)(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment