Created
May 23, 2017 14:07
-
-
Save shgidi/60b8e28325a7ebd2a6a2396c9e02e150 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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