Skip to content

Instantly share code, notes, and snippets.

@shgidi
Created May 23, 2017 14:07
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 shgidi/60b8e28325a7ebd2a6a2396c9e02e150 to your computer and use it in GitHub Desktop.
Save shgidi/60b8e28325a7ebd2a6a2396c9e02e150 to your computer and use it in GitHub Desktop.
#simple model
model = Sequential([
#Embedding(vocab_size, vec_size, input_length=seq_len,weights=[emb]),
#Flatten(),
Dense(100, input_dim=test_data.shape[1], init='uniform', activation='relu'),
#Dropout(0.7),
Dense(1, activation='sigmoid')])
model.compile(loss='binary_crossentropy', optimizer=Adam(), metrics=['accuracy'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment